Build android failed on "AAPT: error: invalid color" with no trace or other clues

Hi, please help.
Here is the last part of the Gradle log:

Task :expo-branch:prepareLintJarForPublish
Task :app:mergeReleaseNativeLibs
Task :unimodules-permissions-interface:compileReleaseKotlin
[stderr]
FAILURE: Build failed with an exception.
[stderr]

  • What went wrong:
    [stderr]
    Execution failed for task ‘:app:mergeReleaseResources’.
    [stderr]

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
[stderr]
Android resource compilation failed
[stderr]
/app/turtle/workingdir/android/sdk36/android-shell-app/app/src/maines/values/colors.xml:12:3-50: AAPT: error: invalid color.
[stderr]

[stderr]
/app/turtle/workingdir/android/sdk36/android-shell-app/app/build/intermediates/incremental/mergeReleaseResources/merged.dir/values/values.xml: AAPT: error: file failed to compile.
[stderr]

[stderr]

  • Try:
    [stderr]
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    [stderr]
  • Get more help at https://help.gradle.org
    [stderr]
    BUILD FAILED in 2m 16s
    411 actionable tasks: 411 executed
    Error: ./gradlew exited with non-zero code: 1
    at ChildProcess.completionListener (/app/turtle/node_modules/@expo/xdl/node_modules/@expo/spawn-async/build/spawnAsync.js:52:23)
    at Object.onceWrapper (events.js:317:30)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:915:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

    at spawnAsync (/app/turtle/node_modules/@expo/xdl/node_modules/@expo/spawn-async/build/spawnAsync.js:17:21)
    at spawnAsyncThrowError (/app/turtle/node_modules/@expo/xdl/build/detach/ExponentTools.js:235:45)
    at buildShellAppAsync (/app/turtle/node_modules/@expo/xdl/build/detach/AndroidShellApp.js:881:11)
    at

How can I debug this?

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.