Android Studio: Could not find com.android.tools.build:gradle:2.0.0-alpha2

后端 未结 8 2206
温柔的废话
温柔的废话 2020-12-16 09:01

Recently I have updated my Android Studio to latest version from Latest Android Studio Canary Build: 2.0 Preview

After updating to the new version, my current workin

8条回答
  •  执念已碎
    2020-12-16 09:49

    Check to see if gradle 2.0.0-alpha1 is available on your system. Look in your android/tools/build/gradle folder. In my case, despite the confusing message "This project is using a preview version of the Gradle plugin (2.0.0-alpha2) and a newer version is available (2.0.0-alpha2) You can update to 2.0.0-alpha2." the version in my folder was 2.0.0-alpha1, and changing my build.gradle to: classpath 'com.android.tools.build:gradle:2.0.0-alpha1' fixed my build problem.

提交回复
热议问题