Expo config plugin causes my eas andriod build to fail
When i use the config package. When i build an apk it does not work
Does anyone have a solution to this?
With no info on your configuration etc there is no way to help
[stderr] /home/expo/workingdir/build/android/app/src/main/java/com/brightakin/brightintercom/MainActivity.java:19: error: package R does not exist [stderr] setTheme(R.style.AppTheme); [stderr] ^ [stderr] /home/expo/workingdir/build/android/app/src/main/java/com/brightakin/brightintercom/MainActivity.java:39: error: cannot find symbol [stderr] return new ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED, new DefaultReactActivityDelegate( [stderr] ^ [stderr] symbol: variable BuildConfig [stderr] location: class MainActivity [stderr] /home/expo/workingdir/build/android/app/src/main/java/com/brightakin/brightintercom/MainApplication.java:27: error: cannot find symbol [stderr] return BuildConfig.DEBUG; [stderr] ^ [stderr] symbol: variable BuildConfig [stderr] /home/expo/workingdir/build/android/app/src/main/java/com/brightakin/brightintercom/MainApplication.java:46: error: cannot find symbol [stderr] return BuildConfig.IS_NEW_ARCHITECTURE_ENABLED; [stderr] ^ [stderr] symbol: variable BuildConfig [stderr] /home/expo/workingdir/build/android/app/src/main/java/com/brightakin/brightintercom/MainApplication.java:51: error: cannot find symbol [stderr] return BuildConfig.IS_HERMES_ENABLED; [stderr] ^ [stderr] symbol: variable BuildConfig [stderr] /home/expo/workingdir/build/android/app/src/main/java/com/brightakin/brightintercom/MainApplication.java:65: error: cannot find symbol [stderr] if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) { [stderr] ^ [stderr] symbol: variable BuildConfig [stderr] location: class MainApplication [stderr] /home/expo/workingdir/build/android/app/src/main/java/com/brightakin/brightintercom/MainApplication.java:65: error: illegal parenthesized expression [stderr] if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) { [stderr] ^ [stderr] /home/expo/workingdir/build/android/app/src/main/java/com/brightakin/brightintercom/MainApplication.java:69: error: cannot find symbol [stderr] ReactNativeFlipper.initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); [stderr] ^ [stderr] symbol: variable ReactNativeFlipper [stderr] location: class MainApplication [stderr] 8 errors [stderr] FAILURE: Build completed with 2 failures. [stderr] 1: Task failed with an exception. [stderr]
[stderr]
- What went wrong: [stderr] Execution failed for task ':app:compileReleaseJavaWithJavac'. [stderr]
Compilation failed; see the compiler error output for details. [stderr]
- Try: [stderr]
Run with --stacktrace option to get the stack trace. [stderr] Run with --info or --debug option to get more log output. [stderr] Run with --scan to get full insights. [stderr] ============================================================================== [stderr] 2: Task failed with an exception. [stderr]
[stderr]
- What went wrong: [stderr] java.lang.StackOverflowError (no error message) [stderr]
- Try: [stderr]
Run with --stacktrace option to get the stack trace. [stderr] Run with --info or --debug option to get more log output. [stderr] Run with --scan to get full insights. [stderr] ============================================================================== [stderr]
- Get more help at https://help.gradle.org [stderr] BUILD FAILED in 6m 11s
THIS IS MY CONFIGURATION
{ "name": "bright-intercom", "version": "1.0.0", "scripts": { "start": "expo start --dev-client", "android": "expo run:android", "ios": "expo run:ios", "web": "expo start --web" }, "dependencies": { "@intercom/intercom-react-native": "3.0.5", "expo": "~48.0.11", "expo-status-bar": "~1.4.4", "react": "18.2.0", "react-native": "0.71.6", "expo-splash-screen": "~0.18.1" }, "devDependencies": { "@babel/core": "^7.20.0" }, "private": true }
@brightakin Did you ever figure out what is causing this issue? I don't think it's Intercom or the Intercom config plugin. I'm experiencing this same issue on Android and I uninstalled both packages and still having the issue.