react-native-unimodules
react-native-unimodules copied to clipboard
an Error occurred while building android
I followed this link to install react-native-unimodules in my project: https://docs.expo.dev/bare/installing-unimodules/#configuration-for-android
But terminal threw this error:
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
//android/app/build/intermediates/packaged_manifests/debug/AndroidManifest.xml:184: AAPT: error: resource style/DeviceCredentialHandlerTheme (aka com.cer:style/DeviceCredentialHandlerTheme) 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 30s
at makeError (/Users/tranducduong/mobile/node_modules/execa/index.js:174:9)
at /Users/duong/mobile/node_modules/execa/index.js:278:16
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async runOnAllDevices (/Users/duong/mobile/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:94:5)
at async Command.handleAction (/Users/duong/mobile/node_modules/@react-native-community/cli/build/index.js:186:9)
I followed all of steps in the link, I don't know why this error occured. Thank you.
did the installation instruction miss the "DeviceCredentialHandlerTheme" step?
same error
is anyone resolved this?
I have the same issue...
I updated all the packages with npm-check-updates
and the build worked.
The solution to the error is found in the following link: [Solution Here]
I copy the solution in case the link is lost:
[YouAPP name/android/app/src/main/AndroidManifest.xml
check the arrival name
chage with this android:theme="@style/DeviceCredentialHandlerTheme"
and check the app theme name in
YouAPP name/android/app/src/main/res/values/styles.xml change the name to error theme name its works for me try to run yarn android] Author: By Stone Hammer Danny Reichel at May 04 2021
same error
For me, running expo install expo-secure-store
fixed the issue.
https://github.com/expo/expo/issues/17108#issuecomment-1102200109
@jamonholmgren this right here is probably not related to expo in any way. Still, can you confirm what version did expo install expo-secure-store
install for you and if you build on EAS?