Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed with an exception #4

Open
mhr opened this issue Jun 7, 2020 · 0 comments
Open

Build failed with an exception #4

mhr opened this issue Jun 7, 2020 · 0 comments

Comments

@mhr
Copy link

mhr commented Jun 7, 2020

$ yarn android resulted in a build error (below). I double-checked that I had no other error-causing package installed: I ran yarn android before and after installing tzachari/react-native-contact-tracing, and it was a clean build before.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Android resource linking failed
     C:\Users\mretc\.gradle\caches\transforms-2\files-2.1\957bafdc021664f8c2b1c945e1fc2318\tcn-client-android-0.0.4\AndroidManifest.xml:25:9-28:56: AAPT: error: attribute android:foregroundServiceType not found.


* 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 https://help.gradle.org

BUILD FAILED in 50s

    at checkExecSyncError (child_process.js:630:11)
    at execFileSync (child_process.js:648:15)
    at runOnAllDevices (C:\Users\mretc\Documents\Code\workshield\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:39)
    at buildAndRun (C:\Users\mretc\Documents\Code\workshield\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:179:41)
    at C:\Users\mretc\Documents\Code\workshield\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:133:12
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async Command.handleAction (C:\Users\mretc\Documents\Code\workshield\node_modules\@react-native-community\cli\build\index.js:182:9)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant