V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
linus
V2EX  ›  Android

Android 项目 gradlew build 报错

  •  
  •   linus · Jun 2, 2016 · 13500 views
    This topic created in 3623 days ago, the information mentioned may be changed or developed.
    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 replies    2016-06-02 19:24:04 +08:00
    abbenyyy
        1
    abbenyyy  
       Jun 2, 2016
    已经告诉你错误了啊, No resource found that matches the given name (at 'icon' with value '@drawable/ic_app').
    sonaive
        2
    sonaive  
       Jun 2, 2016 via Android
    楼上正解
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1771 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 16:13 · PVG 00:13 · LAX 09:13 · JFK 12:13
    ♥ Do have faith in what you're doing.