Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not find transform-api.jar (com.android.tools.build:transform-api:2.0.0-deprecated-use-gradle-api)

I get this error When I run my app in android studio 3.2.1:

Could not find transform-api.jar 
(com.android.tools.build:transform-api:2.0.0-deprecated-use-gradle-api).

Questions:

  1. What is the transform-api.jar?
  2. How do I use the transform-api.jar in my app?
  3. Should i update my android studio? I updated all of the sdk.

All messages in the build:

Could not find transform-api.jar (com.android.tools.build:transform-api:2.0.0-deprecated-use-gradle-api).
Searched in the following locations:
    https://dl.google.com/dl/android/maven2/com/android/tools/build/transform-api/2.0.0-deprecated-use-gradle-api/transform-api-2.0.0-deprecated-use-gradle-api.jar
like image 240
mostafa_299 Avatar asked Dec 07 '25 14:12

mostafa_299


2 Answers

in my case, i solved with add google maven to build.gradle like this:

repositories {
        maven { url "https://jitpack.io" }
        mavenCentral()
        google()
        jcenter()
    }

and after that, if you receive "lifecycle runtime" error add this dependencies :

implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
like image 195
m.sajjad.s Avatar answered Dec 09 '25 18:12

m.sajjad.s


I solved this with a trick. open settings.gradle and disable -> include ':app' Then select from File -> Sync Project With Gradle File and re-enable the line -> include ':app' I hope this helps

like image 42
Javid Sattar Avatar answered Dec 09 '25 20:12

Javid Sattar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!