Gradle project refresh failed. Android Studio

前端 未结 7 1267
耶瑟儿~
耶瑟儿~ 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:23

    Open Your Android Studio Terminal

    Type command > gradlew clear press Enter and select option in

    File > Invalidate Caches / Restart...

    Then press Restart button. Now clear your app.gradle.

    Thank you.

    0 讨论(0)
  • 2021-02-03 17:27

    Go to Terminal and type clearw Gradle -> press Enter -> after finish this step goto file menu choose Invalidate Caches /Restart-> press Yes

    0 讨论(0)
  • 2021-02-03 17:28

    Working Solution :

    File ->Invalidate Cache and Restart

    0 讨论(0)
  • 2021-02-03 17:30

    Restarting Android Studio usually fixes this error for me.

    0 讨论(0)
  • 2021-02-03 17:31

    You can restart android studio like this:

    Click File ----> Invalidate Caches /Restart

    It works for me!

    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题