Gradle project refresh failed. Android Studio

前端 未结 7 1303
耶瑟儿~
耶瑟儿~ 2021-02-03 16:55

I get this error when trying to run my App on Android Studio. Does anyone know what the reason could be? Thanks.

Gradle \'MyApp\' refresh failed.

Error:Cannot l         


        
7条回答
  •  终归单人心
    2021-02-03 17:33

    If nothing worked, simple solution worked for me, you need to change maven version:

    from

    classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
    

    to

    classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
    

    Android Maven Versions: Link

    Android Maven Incompatible with gradle 2.14 Fix: Link

提交回复
热议问题