Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unity 5.6 Can't Build Gradle System

Discussion in 'Android' started by Motion_Tale, Dec 4, 2017.

  1. Motion_Tale

    Motion_Tale

    Joined:
    Jan 13, 2016
    Posts:
    6
    Hello
    I can't build with gradle(new)
    It got this error messages :

    CommandInvokationFailure: Gradle build failed.
    /Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/bin/java -classpath "/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/gradle/lib/gradle-launcher-2.14.jar" org.gradle.launcher.GradleMain "assembleRelease"

    stderr[
    /Users/motiontale/Motiontale/ChefSmileCooking/Temp/gradleOut/AN_Res/build/intermediates/bundles/release/aapt/AndroidManifest.xml:22:23-41: AAPT: No resource found that matches the given name (at 'icon' with value '@drawable/app_icon').

    /Users/motiontale/Motiontale/ChefSmileCooking/Temp/gradleOut/AN_Res/build/intermediates/bundles/release/aapt/AndroidManifest.xml:23:24-40: AAPT: No resource found that matches the given name (at 'label' with value '@string/app_name').


    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':AN_Res:processReleaseResources'.
    > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/motiontale/Desktop/android-sdk-macosx/build-tools/26.0.2/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.
    ]
    stdout[
    Incremental java compilation is an incubating feature.
    :preBuild UP-TO-DATE
    :preReleaseBuild UP-TO-DATE
    :checkReleaseManifest
    :preDebugBuild UP-TO-DATE
    :AN_Res:preBuild UP-TO-DATE
    :AN_Res:preReleaseBuild UP-TO-DATE
    :AN_Res:compileReleaseNdk UP-TO-DATE
    :AN_Res:compileLint
    :AN_Res:copyReleaseLint UP-TO-DATE
    :AN_Res:mergeReleaseProguardFiles UP-TO-DATE
    :AN_Res:packageReleaseRenderscript UP-TO-DATE
    :AN_Res:checkReleaseManifest
    :AN_Res:prepareReleaseDependencies
    :AN_Res:compileReleaseRenderscript
    :AN_Res:generateReleaseResValues UP-TO-DATE
    :AN_Res:generateReleaseResources
    :AN_Res:packageReleaseResources
    :AN_Res:compileReleaseAidl
    :AN_Res:generateReleaseBuildConfig
    :AN_Res:mergeReleaseShaders
    :AN_Res:compileReleaseShaders
    :AN_Res:generateReleaseAssets
    :AN_Res:mergeReleaseAssets
    :AN_Res:processReleaseManifest
    :AN_Res:processReleaseResources FAILED

    BUILD FAILED

    Total time: 28.158 secs
    ]
    exit code: 1
    UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
    UnityEditor.Android.GradleWrapper.RunJava (System.String args, System.String workingdir, UnityEditor.Android.Progress progress)
    Rethrow as GradleInvokationException: Gradle build failed
    UnityEditor.Android.GradleWrapper.RunJava (System.String args, System.String workingdir, UnityEditor.Android.Progress progress)
    UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, UnityEditor.Android.Progress progress)
    UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
    UnityEditor.HostView:OnGUI()

    ======================================================================

    Unity Version : 5.6.3p4

    Please help me
    Thank you in advance
     
  2. teexiii

    teexiii

    Joined:
    Oct 7, 2015
    Posts:
    15
    Did you build for Android?