Gradle error, failed to create directory

亡梦爱人 提交于 2019-11-30 13:33:28

I've met this error with Android Studio 3.0RC.
How to solve:
open (ctrl+shift+N): gradle.properties
add line: android.enableAapt2=false

You may find something useful here: https://developer.android.com/studio/build/gradle-plugin-3-0-0.html

Finally managed to get rid of all unwanted stuff with AS option:

File -> Invalidate caches / Restart

Found such a dependency, if the project and the environment (SDK, Android Studio) is on different disks (volumes), then there will be an error. This error occurs when the test starts.

Solution, move the project to the root of the disk on which the SDK and Android Studio is located, it's helped me.

Android Studio 3.0.1, compileSdkVersion 27, Windows 10

Please confirm that you have selected app in run configuration.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!