Search Unity

Unity Cloud Build fails (linking references) while local build is successful

Discussion in 'Editor & General Support' started by jose_pedro_didimo, Nov 20, 2019.

  1. jose_pedro_didimo

    jose_pedro_didimo

    Joined:
    May 2, 2018
    Posts:
    15
    Hi, I am running into android build issues on Unity Cloud Build with Unity2019.2.6f1. Can you help?
    You can find attached the full log, and the errors summary below:

    7377: [Unity] ERROR: Player export failed. Reason: CommandInvokationFailure: Gradle build failed.
    7378: [Unity] /UNITY_PATH/Unity/macos/published/Unity-2019_2_6f1/PlaybackEngines/AndroidPlayer/Tools/OpenJDK/MacOS/bin/java -classpath "/UNITY_PATH/Unity/macos/published/Unity-2019_2_6f1/PlaybackEngines/AndroidPlayer/Tools/gradle/lib/gradle-launcher-5.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
    7379: [Unity] stderr[
    7380: [Unity] FAILURE: Build failed with an exception.
    7381: [Unity] * What went wrong:
    7382: [Unity] Execution failed for task ':processReleaseResources'.
    7383: [Unity] > Android resource linking failed
    7384: [Unity] /BUILD_PATH/.gradle/caches/transforms-2/files-2.1/7d9442eb981979dbb4d40a5310dd6add/res/values-v14/values-v14.xml:9:5-80: AAPT: error: style attribute 'attr/colorPrimaryDark (aka com.MyDidimo.Xperience:attr/colorPrimaryDark)' not found.
    7385: [Unity] /BUILD_PATH/.gradle/caches/transforms-2/files-2.1/7d9442eb981979dbb4d40a5310dd6add/res/values-v19/values-v19.xml:9:5-12:13: AAPT: error: style attribute 'attr/colorPrimaryDark (aka com.MyDidimo.Xperience:attr/colorPrimaryDark)' not found.
    7386: [Unity] /BUILD_PATH/.gradle/caches/transforms-2/files-2.1/7d9442eb981979dbb4d40a5310dd6add/res/values-v21/values-v21.xml:9:5-12:13: AAPT: error: style attribute 'attr/colorPrimaryDark (aka com.MyDidimo.Xperience:attr/colorPrimaryDark)' not found.
    7387: [Unity] error: resource style/Theme.AppCompat.NoActionBar (aka com.MyDidimo.Xperience:style/Theme.AppCompat.NoActionBar) not found.
    7388: [Unity] error: resource style/Theme.AppCompat.Dialog (aka com.MyDidimo.Xperience:style/Theme.AppCompat.Dialog) not found.
    7389: [Unity] error: failed linking references.
     

    Attached Files: