Build:android error

I have this problem:

[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/sdk42/android-shell-app/app/src/main/res/values/colors.xml:13:3-55: AAPT: error: invalid color.

[stderr]

         

[stderr]

     /app/turtle/workingdir/android/sdk42/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 33s
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.8/userguide/command_line_interface.html#sec:command_line_warnings
9 actionable tasks: 9 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:421:26)
    at ChildProcess.emit (events.js:314:20)
    at ChildProcess.EventEmitter.emit (domain.js:483:12)
    at maybeClose (internal/child_process.js:1022:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:287: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:201:45)
    at buildShellAppAsync (/app/turtle/node_modules/@expo/xdl/build/detach/AndroidShellApp.js:985:11)
    at async Object.createAndroidShellAppAsync (/app/turtle/node_modules/@expo/xdl/build/detach/AndroidShellApp.js:396:5)
    at async runShellAppBuilder (/app/turtle/build/builders/android.js:95:9)
    at async Object.buildAndroid [as android] (/app/turtle/build/builders/android.js:43:28)
    at async build (/app/turtle/build/jobManager.js:181:33)
    at async processJob (/app/turtle/build/jobManager.js:118:32)
    at async Object.doJob (/app/turtle/build/jobManager.js:49:5)
    at async main (/app/turtle/build/server.js:66:13)

please help me I’m new in this!!!

Hey @juanm92, are you still encounter an error while building? Could you also try building with a newly created project to help determine if it’s something wrong with your original project’s configuration?

Cheers,
Adam

Hi @juanm92

Please check the colours mentioned in your app.json. If nothing is wrong there, check any colours defined in your code, but I think the above is likely coming from app.json rather than from your code.

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