LOG内容:
17:47:43 Gradle build finished with 1 error(s) in 14 sec
网上下载了安卓巴士一个播放器的源码
http://www.apkbus.com/forum.php?mod=viewthread&tid=232722&high...
Eclipse运行正常,但用android studio导入后,编译失败
出现:
Error:Execution failed for task ':app:mergeDebugResources'. > Crunching Cruncher scrollbar_thumb.9.png failed, see logs
试过google下各种导入方式,各种gradle修改,终于src下的java文件不红了,但是编译失败,有人试过用android studio导入吗
The picture at point 9 is not standard. Open this picture and see if there are some bad patches. Just correct them.
Importing into Android Studio is very convenient and simple. However, its lint requirements are strict and require standard file naming and .9 pictures
Alas, unfortunately I still didn’t solve the problem using your method, but I searched all over the world on Google and found this method:
The build.gradle file in your main project folder , add the following two sentences:
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
My version looks like this after modification:
android {
more.....
Then the error disappeared. It seemed that the cruncher that caused the error was turned off. . . So that’s good, the poster or everyone passing by can give it a try. . . Mine worked. . . No matter how clean you are, there will be no errors. . .