Cannot build android flavors with a Development build
See original GitHub issueSummary
I was following this documentation to configure a development/staging/production variants in a bare project, it works fine with iOS but not for android.
As soon as I add the flavors to my build.gradle I can’t run my application on android anymore.
Managed or bare workflow? If you have made manual changes inside of the ios/
or android/
directories in your project, the answer is bare!
bare
What platform(s) does this occur on?
Android
Package versions
“expo-dev-client”: “~0.8.4”
Environment
expo-env-info 1.0.2 environment info: System: OS: macOS 12.3 Shell: 5.8 - /bin/zsh Binaries: Node: 14.19.0 - /usr/local/opt/node@14/bin/node Yarn: 1.22.18 - ~/.yarn/bin/yarn npm: 6.14.16 - /usr/local/opt/node@14/bin/npm Watchman: 2022.03.14.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.3 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: API Levels: 28, 30 Build Tools: 29.0.2, 30.0.2, 32.0.0 System Images: android-30 | Intel x86 Atom_64, android-30 | Google APIs Intel x86 Atom IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8193401 Xcode: 13.3/13E113 - /usr/bin/xcodebuild npmPackages: expo: 44.0.2 => 44.0.2 react: 17.0.2 => 17.0.2 react-dom: 17.0.2 => 17.0.2 react-native: 0.64.3 => 0.64.3 react-native-web: 0.17.7 => 0.17.7 npmGlobalPackages: expo-cli: 5.3.0 Expo Workflow: bare
Reproducible demo
Stacktrace (if a crash is involved)
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (6 by maintainers)
Thanks for the extra details @dogfootruler-kr , and for providing a repo. I’ve been able to reproduce the error and track down the source. We should have a fix out in the next release of the
expo-dev-client
package, but if this is blocking you in the meantime, you can add the fix from #16799 locally using patch-package.Hello @esamelson , sorry I completely forgot to share the error logs…
My
eas.json
looks like this:and I added the flavors in my
app/build.gradle
like this:and the error I get after running
eas build -p android --profile development --local
: