Reputation: 63
after upgrading my android studio to version 3.6.1 I cant sync Gradle with the android studio I try a lot of ways, like change Gradle version and sync or download directly Gradle from gradle blog but still, I see this error
Gradle sync failed: 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
Consult IDE log for more details (Help | Show Log)
even I download transform-api from above link and put it in the folder of Gradle
and this is my screenshot
Upvotes: 0
Views: 1239
Reputation: 11
Open project structure enter image description here
then, open Gradle version drop down and select latest gradle version and click on Apply. it did work
Upvotes: 0
Reputation: 2319
First clearly declare google maven repo like this
If it didn't work, Try these answers
Upvotes: 1