Information:Gradle: Executing tasks: [:app:generateDebugSources, :app:generateDebugAndroidTestSources]
Information:2015/4/8 17:05 - Compilation completed with 2 errors and 0 warnings in 29s 30ms
Error:Gradle: Execution failed for task ':app:processDebugResources'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'E:\PublicFile\android\android-sdk_r24.1.2-windows\android-sdk-windows\build-tools\22.0.1\aapt.exe'' finished with non-zero exit value 1
H:\IdeaProiectsAndroid\XListTest\app\build\intermediates\manifests\full\debug\AndroidManifest.xml
Error:Error:line (13)Gradle: No resource found that matches the given name (at 'icon' with value '@drawable/ic_launcher').
这个是你的build.gradle的兼容包和compileSdkVersion配置不对引起的有两个解决方法:一个是全部升级成最新的,appcompat-v7:21.0.0须使用android 5.0版本的build tool,而且build出来的程序只能在Android 5.0下运行,另外一个方法就是自己动手支修改build.gradle有参数把compileSdkVersion=19,targetSdkVersion 19,兼容包改成compile 'com.android.support:appcompat-v7:19.+'这样就可以了。希望对你有用!
我该怎么破啊。。困扰我好久了
No resource found that matches the given name (at 'icon' with value '@drawable/ic_launcher').
你看看资源文件引用的地方是否正确
大大可否指点下兼容包的具体改法,都找不到在那个地方
你看一下你的项目里面引用的jar和关联的项目,是否有重复,我是这个问题导致的
我编译的最高的版本是23.0.1,我用的版本是19.1.1,只要修改到最高就好。
buildToolsVersion "19.1.1"-->buildToolsVersion "23.0.1"(即可)
Error:Execution failed for task ':app:processDebugResources'.
com.android.ide.common.internal.LoggedErrorException: Failed to run command:
C:\Users\Administrator\AppData\Local\Android\sdk7\build-tools\21.1.1\aapt.exe package -f --no-crunch -I C:\Users\Administrator\AppData\Local\Android\sdk7\platforms\android-21\android.jar -M E:\projectInformation\MyApplication2\app\build\intermediates\manifests\full\debug\AndroidManifest.xml -S E:\projectInformation\MyApplication2\app\build\intermediates\res\debug -A E:\projectInformation\MyApplication2\app\build\intermediates\assets\debug -m -J E:\projectInformation\MyApplication2\app\build\generated\source\r\debug -F E:\projectInformation\MyApplication2\app\build\intermediates\res\resources-debug.ap_ --debug-mode --custom-package com.example.administrator.myapplication -0 apk
Error Code:
1
Output:
E:\projectInformation\MyApplication2\app\build\intermediates\res\debug\values\values.xml:14: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
因为buildToolsVersion、buildToolsVersion、compileSdkVersion、targetSdkVersion、compile 'com.android.support:appcompat-v7:xxx'不一致。
我修改数据
compileSdkVersion 23
buildToolsVersion "23.0.1"
targetSdkVersion 23
compile 'com.android.support:appcompat-v7:23.2.0'
我也出现了这么恶心人的问题,我的解决办法是,重新新建一个项目,然后把出错的项目的build.gradle 改为新建项目的build.gradle,然后rebuild Project 即可解决问题。希望对你有帮助
Information:Gradle tasks [:app:generateDebugSources, :app:prepareDebugUnitTestDependencies, :app:mockableAndroidJar, :app:generateDebugAndroidTestSources]
求大神 卡半天了
Information:Gradle tasks [:Xlistview:generateDebugSources, :Xlistview:mockableAndroidJar, :Xlistview:prepareDebugUnitTestDependencies, :Xlistview:generateDebugAndroidTestSources, :app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources, :slindingmenu:generateDebugSources, :slindingmenu:generateDebugAndroidTestSources, :slindingmenu:mockableAndroidJar, :slindingmenu:prepareDebugUnitTestDependencies]
这是怎么回事啊
tongwen
怎么办