Hey
We are encountering difficulties while attempting to build an apk
file using eas build
in our Expo managed workflow.
We have explored various methods outlined in the documentation (https://docs.expo.dev/build-reference/apk/#configuring-a-profile-to-build-apks) to address this issue, but unfortunately, we continue to encounter the same error.
What could be the underlying cause of this error, and do you have any suggestions or insights on how we can resolve it?
Error we get
`[stderr]
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:2087:23: warning: the variable āDebuggerInternalā was not declared in function ā__shouldPauseOnThrowā
[stderr]
return typeof DebuggerInternal !== āundefinedā && DebuggerInternal.shouldPauseOnThrow === true;
[stderr]
^~~~~~~~~~~~~~~~
[stderr]
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:9114:7: warning: the variable āsetTimeoutā was not declared in function ālogCapturedErrorā
[stderr]
setTimeout(function () {
[stderr]
^~~~~~~~~~
[stderr]
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:7079:108: warning: the variable ānativeFabricUIManagerā was not declared in function āonChangeā
[stderr]
(fromOrTo = fromOrTo && fromOrTo.stateNode) && fromOrTo.canonical._internalInstanceHandle ? (from && nativeFabricUIManager.setIsJSResponder(from.stateNode.node, false, blockNativeResponder || false), to && nativeFabricUIManager.setIsJSResponder(to.stateNode.node, true, blockNativeResponder || false)) : null !== to ? ReactNativePrivateInterface.UIManager.setJSResponder(to.stateNode.canonical._nativeTag, blockNativeResponder) : ReactNativePrivateInterface.UIManager.clearJSResponder();
`
The set up
- node-v16.16.0
- eas-cli/3.13.3
- expo managed workflow
dependencies
"@react-native-async-storage/async-storage": "1.17.11", "@react-native-community/netinfo": "9.3.7", "@react-navigation/drawer": "^6.6.2", "@react-navigation/native": "^6.1.6", "@react-navigation/native-stack": "^6.9.12", "@react-navigation/stack": "^6.3.16", "amazon-cognito-identity-js": "^6.2.0", "aws-amplify": "^5.2.5", "axios": "^1.4.0", "expo": "~48.0.18", "expo-haptics": "~12.2.1", "expo-location": "~15.1.1", "expo-splash-screen": "~0.18.2", "expo-status-bar": "~1.4.4", "formik": "^2.4.1", "lottie-react-native": "5.1.4", "react": "18.2.0", "react-native": "0.71.8", "react-native-gesture-handler": "~2.9.0", "react-native-google-places-autocomplete": "^2.5.1", "react-native-maps": "1.3.2", "react-native-maps-directions": "^1.9.0", "react-native-reanimated": "~2.14.4", "react-native-safe-area-context": "4.5.0", "react-native-screens": "~3.20.0"
EAS file
{ "cli": { "version": ">= 3.13.3" }, "build": { "development": { "distribution": "internal", "android": { "gradleCommand": ":app:assembleDebug" }, "ios": { "buildConfiguration": "Debug" } }, "preview": { "distribution": "internal", "android": { "buildType": "apk" } }, "production": {} }, "submit": { "production": {} } }
Command used to build
eas build --platform android --profile preview