Could not find org.codehaus.groovy:groovy-all:2.4.12

后端 未结 2 1604
暖寄归人
暖寄归人 2021-01-24 15:58

After an update of android studio and gradle, I can not compile (in release mode) my application anymore.When I try to generate the APK, I receive this error:

2条回答
  •  忘掉有多难
    2021-01-24 16:20

    I had the same problem, everything was correctly installed but not found; I also refreshed everything that was refreshable in IntelliJ; I removed all the temporary folders in the project. Everything was useless.

    Then I solved the problem like that, from terminal:

    gradlew build --refresh-dependencies
    

    This solved the issue.

    In extremis, you can delete the content of the global cache folder used by gradle (it was not necessary in my case); for example could be this:

    C:\Users\USERNAME\.gradle\caches
    

    Mi esperas, ke tio helpos iun, ĉar mi perdis multe da tempo.

提交回复
热议问题