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:
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
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'
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With