V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
linus
V2EX  ›  Android

Android 项目 gradlew build 报错

  •  
  •   linus · 2016-06-02 10:02:35 +08:00 · 9251 次点击
    这是一个创建于 3100 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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
    2 条回复    2016-06-02 19:24:04 +08:00
    abbenyyy
        1
    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
        2
    sonaive  
       2016-06-02 19:24:04 +08:00 via Android
    楼上正解
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5510 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 930ms · UTC 08:33 · PVG 16:33 · LAX 00:33 · JFK 03:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.