java - android studio导入后,编译失败
巴扎黑
巴扎黑 2017-04-17 13:24:21
0
2
341

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导入吗

巴扎黑
巴扎黑

reply all(2)
黄舟

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 {

compileSdkVersion 19
buildToolsVersion "23.0.1"

aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false

defaultConfig {
    minSdkVersion 10
    targetSdkVersion 19
}

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. . .

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!