error: duplicate class: host.exp.exponent.BuildVariantConstants
See original GitHub issueEnvironment
Environment: OS: macOS High Sierra 10.13.1 Node: 8.9.4 Yarn: Not Found npm: 5.6.0 Watchman: 4.9.0 Xcode: Xcode 9.2 Build version 9C40b Android Studio: 3.0 AI-171.4443003
Packages: (wanted => installed) expo: ^25.0.0 => 25.0.0 react: 16.2.0 => 16.2.0 react-native: https://github.com/expo/react-native/archive/sdk-25.0.0.tar.gz => 0.52.0
Diagnostics report: https://exp-xde-diagnostics.s3.amazonaws.com/ethanyuwang-876dcc3b-6909-4dc3-9f80-bbd98e17dd98.tar.gz
ExpoKit
Steps to Reproduce
(Write your steps here:)
Detached to ExpoKit, trying to make React Native Firebase to work and followed this https://github.com/EvanBacon/expo-native-firebase. Ran into a million problems and now this:
Information:Gradle tasks [:app:assembleDevDevRemoteKernelProdDebug, :react-native-firebase:assembleDebug]
/Users/ethanwang/Github/reactnative/Glever/android/app/src/devRemoteKernel/java/host/exp/exponent/BuildVariantConstants.java
Error:(5, 8) error: duplicate class: host.exp.exponent.BuildVariantConstants
/Users/ethanwang/Github/reactnative/Glever/android/app/src/dev/java/host/exp/exponent/BuildVariantConstants.java
Error:(5, 8) error: duplicate class: host.exp.exponent.BuildVariantConstants
Error:Execution failed for task ':app:compileDevDevRemoteKernelProdDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
Information:BUILD FAILED in 3s
Information:3 errors
Information:0 warnings
Information:See complete output in console
(Write what happened. Add screenshots!)
Reproducible Demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
I “fixed” it by reducing the flavors to one:
// Specifies two flavor dimensions.
This thread has been automatically 🔒locked🔒 since there has not been any recent activity after it was closed. Oftentimes the underlying causes of old issues and steps to reproduce them are different from those of new issues. Please open a new issue for related bugs.