gradle老问题

来源:互联网 发布:刘双军网络二胡教学15 编辑:程序博客网 时间:2024/05/01 18:55

gradle老问题1

  • What went wrong:
    A problem occurred configuring project ‘:XXX(这个是你的项目)’.
    java.io.FileNotFoundException: /AndroidManifest.xml (No such file or directory)

解决方法:rm -rf ~/.gradle/caches

问题2

What went wrong:
A problem occurred configuring root project ‘XXXX’(这个是你的项目).
Could not resolve all dependencies for configuration ‘:classpath’.
Timeout waiting to lock artifact cache (/xxx/xxx/.gradle/caches/modules-2). It is currently in use by another Gradle instance.

解决方法:这问题是你命令行的gradle在编译你的项目,android studio也在编译你的项目。你停止其中一个就行了再重新编译就行了

0 0
原创粉丝点击