Android 项目 gradlew build 报错

2016-06-02 10:02:35 +08:00
 linus
root@xxxxx:~/workspace/ReinforceApk_new# ./gradlew build
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources
/root/workspace/ReinforceApk_new/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:36:23-39 : AAPT: No resource found that matches the given name (at 'icon' with value '@drawable/ic_app').

/root/workspace/ReinforceApk_new/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:37:24-40 : AAPT: No resource found that matches the given name (at 'label' with value '@string/app_name').

/root/workspace/ReinforceApk_new/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:45:28-44 : AAPT: No resource found that matches the given name (at 'label' with value '@string/app_name').

:app:processDebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/root/revo/tools/SDK/build-tools/23.0.3/aapt'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 7.29 secs
9222 次点击
所在节点    Android
2 条回复
abbenyyy
2016-06-02 10:06:22 +08:00
已经告诉你错误了啊, No resource found that matches the given name (at 'icon' with value '@drawable/ic_app').
sonaive
2016-06-02 19:24:04 +08:00
楼上正解

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/282896

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX