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也在编译你的项目。你停止其中一个就行了再重新编译就行了