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
FAILURE: Build failed with an exception.

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

A failure occurred while executing$ActionFacade
Android resource compilation failed
/app/turtle/workingdir/android/sdk36/android-shell-app/app/src/maines/values/colors.xml:12:3-50: AAPT: error: invalid color.

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


  • Try:
    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.
  • Get more help at
    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)

How can I debug this?

1 Like

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