Could not find transform-api.jar

核能气质少年 提交于 2020-07-21 05:07:20

问题


I had a project which synced succesfully in last update of Android Studio . Its about 3 days that I update my android studio to version 3.3.2. After that, I can make a new project successfully but can't sync any of my last projects I don't know why.

And the error is

( ERROR: 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 ).


回答1:


I had this following problem in my Android Studio Setup.

When I do the below steps these are causing the problem.

First Step

settings-->Gradle-->Android studio-->click Enabled embedded Maven repository.

Second Step

compileSdkVersion 27
    defaultConfig {
        applicationId "com.example.asus.recyceler_buti"
        minSdkVersion 16
        targetSdkVersion 27`

Final Step

implementation 'com.android.support:appcompat-v7:27.1.1'



回答2:


Check your internet connection, and if that is fine, check for the "offline work" in Android studio settings (if checked, uncheck this):

And then sync with Gradle.



来源:https://stackoverflow.com/questions/55021563/could-not-find-transform-api-jar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!