-
Notifications
You must be signed in to change notification settings - Fork 89
ANDROID_CODEPUSH_DEPLOYMENT_KEY not found error on run android #235
Description
Describe the bug
Attempting to npm run android gives the following error message (extra newlines added for readability)
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
/Users/xyz/projects/typescript-react-native-starter/android/app/src/main/res/values/strings.xml:
AAPT: error: resource string/ANDROID_CODEPUSH_DEPLOYMENT_KEY (aka com.xyz.typescriptreactnativestarter:string/ANDROID_CODEPUSH_DEPLOYMENT_KEY)
not found.
To Reproduce
Steps to reproduce the behavior:
- Clone repo
- Install dependencies
- Commented out all firebase references in gradle files (not sure if relevant, I did this to get passed the missing
google-services.jsonerror) npm run android
Expected behavior
Should see emulator and app without error.
Notes
I haven't set any of the environment variables in .env.public. The instructions didn't mention them (are they required?) and I wouldn't know what values to set them to anyways. I'm not familiar with AppCenter or CodePush.
Environment
- React Native Starter version: 3.0.0-alpha.0
- React Native version: 0.62.0
- Platforms
- iOS
- Android
- Device Info
- Physical Device in Debug
- Physical Device in Release
- Simulator in Debug
- Simulator in Release
Additional context
Run react-native info in your terminal and paste its contents here.
System:
OS: macOS 10.15.4
CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Memory: 146.02 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 12.17.0 - ~/.nvm/versions/node/v12.17.0/bin/node
Yarn: Not Found
npm: 6.14.4 - ~/.nvm/versions/node/v12.17.0/bin/npm
Watchman: Not Found
Managers:
CocoaPods: Not Found
SDKs:
iOS SDK: Not Found
Android SDK:
API Levels: 26, 28, 29
Build Tools: 28.0.3, 29.0.3
System Images: android-26 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom, android-29 | Google Play Intel x86 Atom_64
Android NDK: Not Found
IDEs:
Android Studio: 3.6 AI-192.7142.36.36.6392135
Xcode: /undefined - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_252 - /usr/bin/javac
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: 0.62.0 => 0.62.0
npmGlobalPackages:
react-native: Not Found