LibGdx doesn't working after updating Gradle (Android Studio 3.0)

后端 未结 4 834
深忆病人
深忆病人 2020-12-19 12:29

I have recently updated android studio and gradle to the version 3.0.0 following instructions in this link https://developer.android.com/studio/build/gradle-plugin-3-0-0-mig

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-19 13:09

    I temporarily solve this by forcing plugin to use 2.3.3 and gradle wrapper properties file reverted to 3.3

    distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
    

    and build.gradle

    dependencies {
       classpath 'com.android.tools.build:gradle:2.3.3'
    }
    

    comment out the google() from repositories and tell android studio 3.0 to stop reminding you to upgrade gradle plugin to 3.0.0 for your current project.

    Edit: To the person above who plagiarised my answer, shame on you!

提交回复
热议问题