-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
expo-updates with expo-router on SDK 48: Execution failed for task ':expo-updates:createReleaseExpoManifest' #23525
Comments
I have the same error building for production/preview. The development build below works
Here is some of the excerpts from the build Configure project :expo Using expo modules
The Kotlin Gradle plugin was loaded multiple times in different subprojects, which is not supported and may break the build.
|
@adesugbaa In your debugging have you seen the |
I have the same issues here
|
I'm not seeing any issue with Android. Once updates is configured, and I'm seeing an issue on iOS where the app builds, but crashes on launch -- investigating. |
This seems to be reproducible, creating a task. |
Thank you for filing this issue! |
can confirm production android fails to build on eas for me. production ios works and does not crash on open. |
in my case there is no posted update via eas update, so app crash on startup, beacouse getting 403 error from expo eas update url.
posting update to this channel fix error. |
I'm on SDK 49 with expo-router and got the same issue |
I'm on SDK 48 using expo-router and managed workflow. Both Android and iOS build and submit without issues on EAS. Android app works fine on device, but after installing the iOS version from test-flight, the app crashes on launch with the same iOS error message:
Also in the EAS build logs I'm not seeing any issues and it seems to be compiling the RCTDevSettings.mm Pod successfully (not sure if that's related). Happy to provide more info if necessary. Appreciate you looking into this. |
I can confirm the exact same issue on expo SDK 49, managed workflow. Android release build with My initial thought is that the bundle configuration on ios isn't being marked as release/production, even though we're building for it. see facebook/react-native#26987 |
@tate8 @toby-palau any updates on this? |
I have a simular issue.
does anyone have a solution or workaround? |
@muehan your issue looks like a typo in |
@douglowder looks like to correct place. but I can't see it
and it's untouched, all auto generated. |
it must be something else. if I modify one of the lines in gradle.build it tells me in the WHERE which line it is. now I have more error to watch.
Edit: |
I would update your Java....
|
I did.JDK 17 same errorJDK 21 other errorwhich version should be used? I did not found any information.--Diese Nachricht wurde von meinem Android Mobiltelefon mit GMX Mail gesendet.Am 25.09.23, 23:56 schrieb Douglas Lowder ***@***.***>:
I would update your Java....
$ java --version
openjdk 11.0.20.1 2023-08-24
OpenJDK Runtime Environment Homebrew (build 11.0.20.1+0)
OpenJDK 64-Bit Server VM Homebrew (build 11.0.20.1+0, mixed mode)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Late update but wanted to share a workaround that includes updating the err’ing Expo packages to the patch version, which migrated to Gradle 8. Updating those packages got rid of this error! https://github.com/expo/fyi/blob/main/expo-modules-gradle8-migration.md |
@muehan the solution is to rename This issue has been reported here too:
@douglowder the documentation states that you can specify a different entry point at the "main" field of Also the error message "Error loading application entry point. If your entry point is not index.js, please set ENTRY_FILE environment variable with your app entry point" is misleading. I've tried this and does nothing. |
Summary
Using bare, clean react native application with RN 0.71.8, after yarn install npx expo run:android —variant release doesn’t compile. npx expo run:ios --configuration Release compile but app crashes when opened.
We are using expo-updates to respond when new updates are made available. Is there a known issue when using expo-updates?
Managed or bare workflow?
bare
What platform(s) does this occur on?
Android, iOS
Package versions
"@react-navigation/native": "^6.0.2",
"expo": "~48.0.18",
"expo-dev-client": "~2.2.1",
"expo-router": "^1.5.3",
"expo-updates": "0.16.4",
"expo-web-browser": "~12.1.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.71.8",
"react-native-safe-area-context": "4.5.0",
"react-native-screens": "~3.20.0",
"expo-status-bar": "~1.4.4",
"expo-linking": "~4.0.1",
"expo-splash-screen": "~0.18.2"
Environment
expo-env-info 1.0.5 environment info:
System:
OS: macOS 13.3
Shell: 5.9 - /bin/zsh
Binaries:
Node: 16.15.1 - ~/.nvm/versions/node/v16.15.1/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v16.15.1/bin/yarn
npm: 8.11.0 - ~/.nvm/versions/node/v16.15.1/bin/npm
Watchman: 2023.07.03.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
IDEs:
Android Studio: 2022.2 AI-222.4459.24.2221.10121639
Xcode: 14.3.1/14E300c - /usr/bin/xcodebuild
npmPackages:
expo: ~48.0.18 => 48.0.20
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
react-native: 0.71.8 => 0.71.8
npmGlobalPackages:
eas-cli: 3.15.1
Expo Workflow: bare
Reproducible demo
https://github.com/tashanemclean/expo-with-router
Stacktrace (if a crash is involved)
Android Error:
info Writing bundle output to:, /Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle
info Writing sourcemap output to:, /Users/RootUser/app-repo/app-with-router/android/app/build/intermediates/sourcemaps/react/release/index.android.bundle.packager.map
info Done writing bundle output
info Done writing sourcemap output
info Copying 12 asset files
info Done copying assets
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:732:42: warning: the variable "fetch" was not declared in anonymous function " 24#"
value: wrapFetchWithWindowLocation(fetch)
^~~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:1526:20: warning: the variable "Promise" was not declared in function "promiseMethodWrapper"
return new Promise(function (resolve, reject) {
^~~~~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:1833:23: warning: the variable "DebuggerInternal" was not declared in function "__shouldPauseOnThrow"
return typeof DebuggerInternal !== 'undefined' && DebuggerInternal.shouldPauseOnThrow === true;
^~~~~~~~~~~~~~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:2358:16: warning: the variable "AggregateError" was not declared in function "getAggregateError"
if (typeof AggregateError === 'function') {
^~~~~~~~~~~~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:2480:5: warning: the variable "setImmediate" was not declared in function "handleResolved"
setImmediate(function () {
^~~~~~~~~~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:3506:14: warning: the variable "setTimeout" was not declared in anonymous function " 182#"
return setTimeout(function () {
^~~~~~~~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:5435:14: warning: the variable "Headers" was not declared in anonymous function " 259#"
Headers: Headers,
^~~~~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:5436:14: warning: the variable "Request" was not declared in anonymous function " 259#"
Request: Request,
^~~~~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:5437:15: warning: the variable "Response" was not declared in anonymous function " 259#"
Response: Response
^~~~~~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:5585:24: warning: the variable "FileReader" was not declared in function "readBlobAsArrayBuffer"
var reader = new FileReader();
^~~~~~~~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:5622:36: warning: the variable "Blob" was not declared in anonymous function " 270#"
} else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
^~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:5624:40: warning: the variable "FormData" was not declared in anonymous function " 270#"
} else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
^~~~~~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:5626:44: warning: the variable "URLSearchParams" was not declared in anonymous function " 270#"
} else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
^~~~~~~~~~~~~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:5853:23: warning: the variable "XMLHttpRequest" was not declared in anonymous function " 279#"
var xhr = new XMLHttpRequest();
^~~~~~~~~~~~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:5446:76: warning: the variable "self" was not declared in anonymous function " 262#"
var global = typeof globalThis !== 'undefined' && globalThis || typeof self !== 'undefined' && self || typeof global !== 'undefined' && global;
^~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:12057:108: warning: the variable "nativeFabricUIManager" was not declared in function "onChange"
(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();
^~~~~~~~~~~~~~~~~~~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:12673:21: warning: the variable "clearTimeout" was not declared in anonymous function " 551#"
cancelTimeout = clearTimeout;
^~~~~~~~~~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:16423:30: warning: the variable "REACT_DEVTOOLS_GLOBAL_HOOK" was not declared in anonymous function " 551#"
if ("undefined" !== typeof REACT_DEVTOOLS_GLOBAL_HOOK) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:16530:27: warning: the variable "performance" was not declared in anonymous function " 590#"
if ("object" === typeof performance && "function" === typeof performance.now) {
^~~~~~~~~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:16553:26: warning: the variable "navigator" was not declared in anonymous function " 590#"
"undefined" !== typeof navigator && undefined !== navigator.scheduling && undefined !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling);
^~~~~~~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:16620:37: warning: the variable "MessageChannel" was not declared in anonymous function " 590#"
};else if ("undefined" !== typeof MessageChannel) {
^~~~~~~~~~~~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:27581:34: warning: the variable "requestAnimationFrame" was not declared in function "start 9#"
this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));
^~~~~~~~~~~~~~~~~~~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:41241:7: warning: Direct call to eval(), but lexical scope is not supported.
eval(code);
^~~~~~~~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:43894:18: warning: the variable "location" was not declared in function "buildUrlForBundle"
if (typeof location !== "undefined") {
^~~~~~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:43924:9: warning: Direct call to eval(), but lexical scope is not supported.
eval(body);
^~~~~~~~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:60603:25: warning: the variable "Atomics" was not declared in anonymous function " 2720#"
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
^~~~~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:60619:38: warning: the variable "FinalizationRegistry" was not declared in anonymous function " 2720#"
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
^~~~~~~~~~~~~~~~~~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:60644:35: warning: the variable "SharedArrayBuffer" was not declared in anonymous function " 2720#"
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
^~~~~~~~~~~~~~~~~
/Users/RootUser/app-repo/app-with-router/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:60658:25: warning: the variable "WeakRef" was not declared in anonymous function " 2720#"
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
^~~~~~~
Gradle detected a problem with the following location: '/Users/RootUser/app-repo/app-with-router/android'. Reason: Task ':expo-updates:createReleaseExpoManifest' uses this output of task ':app:checkReleaseAarMetadata' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Gradle detected a problem with the following location: '/Users/RootUser/app-repo/app-with-router/android'. Reason: Task ':expo-updates:createReleaseExpoManifest' uses this output of task ':app:compileReleaseAidl' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Gradle detected a problem with the following location: '/Users/RootUser/app-repo/app-with-router/android'. Reason: Task ':expo-updates:createReleaseExpoManifest' uses this output of task ':app:compileReleaseRenderscript' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Gradle detected a problem with the following location: '/Users/RootUser/app-repo/app-with-router/android'. Reason: Task ':expo-updates:createReleaseExpoManifest' uses this output of task ':app:compileReleaseShaders' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Gradle detected a problem with the following location: '/Users/RootUser/app-repo/app-with-router/android'. Reason: Task ':expo-updates:createReleaseExpoManifest' uses this output of task ':app:createBundleReleaseJsAndAssets' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Gradle detected a problem with the following location: '/Users/RootUser/app-repo/app-with-router/android'. Reason: Task ':expo-updates:createReleaseExpoManifest' uses this output of task ':app:generateReleaseBuildConfig' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Gradle detected a problem with the following location: '/Users/RootUser/app-repo/app-with-router/android'. Reason: Task ':expo-updates:createReleaseExpoManifest' uses this output of task ':app:generateReleaseResValues' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Gradle detected a problem with the following location: '/Users/RootUser/app-repo/app-with-router/android'. Reason: Task ':expo-updates:createReleaseExpoManifest' uses this output of task ':app:javaPreCompileRelease' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Gradle detected a problem with the following location: '/Users/RootUser/app-repo/app-with-router/android'. Reason: Task ':expo-updates:createReleaseExpoManifest' uses this output of task ':app:mapReleaseSourceSetPaths' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Gradle detected a problem with the following location: '/Users/RootUser/app-repo/app-with-router/android'. Reason: Task ':expo-updates:createReleaseExpoManifest' uses this output of task ':app:mergeReleaseAssets' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Gradle detected a problem with the following location: '/Users/RootUser/app-repo/app-with-router/android'. Reason: Task ':expo-updates:createReleaseExpoManifest' uses this output of task ':app:mergeReleaseShaders' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Error: @build-script-error-begin
Error loading application entry point. If your entry point is not index.js, please set ENTRY_FILE environment variable with your app entry point.
@build-script-error-end
at /Users/RootUser/app-repo/app-with-router/node_modules/expo-updates/scripts/createManifest.js:36:11
at Object. (/Users/RootUser/app-repo/app-with-router/node_modules/expo-updates/scripts/createManifest.js:99:3)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
Execution failed for task ':expo-updates:createReleaseExpoManifest'.
2: Task failed with an exception.
What went wrong:
java.lang.StackOverflowError (no error message)
Try:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
Execution optimizations have been disabled for 1 invalid unit(s) of work during this build to ensure correctness.
Please consult deprecation warnings for more details.
BUILD FAILED in 44s
539 actionable tasks: 216 executed, 323 from cache
Error: /Users/RootUser/app-repo/app-with-router/android/gradlew exited with non-zero code: 1
Error: /Users/RootUser/app-repo/app-with-router/android/gradlew exited with non-zero code: 1
at ChildProcess.completionListener (/Users/RootUser/app-repo/app-with-router/node_modules/@expo/cli/node_modules/@expo/spawn-async/build/spawnAsync.js:52:23)
at Object.onceWrapper (node:events:642:26)
at ChildProcess.emit (node:events:527:28)
at maybeClose (node:internal/child_process:1092:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
...
at Object.spawnAsync [as default] (/Users/RootUser/app-repo/app-with-router/node_modules/@expo/cli/node_modules/@expo/spawn-async/build/spawnAsync.js:17:21)
at spawnGradleAsync (/Users/RootUser/app-repo/app-with-router/node_modules/@expo/cli/build/src/start/platforms/android/gradle.js:72:46)
at Object.assembleAsync (/Users/RootUser/app-repo/app-with-router/node_modules/@expo/cli/build/src/start/platforms/android/gradle.js:52:18)
at runAndroidAsync (/Users/RootUser/app-repo/app-with-router/node_modules/@expo/cli/build/src/run/android/runAndroidAsync.js:31:24)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
IOS Error:
[CoreFoundation] *** Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception:
Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'DevSettings' could not be found. Verify that a module
by this name is registered in the native binary., js engine: hermes', reason: 'Unhandled JS Exception: Invariant
Violation: TurboModuleRegistry.getEnforcing(...): 'DevSettings' could not be found. Verify that a module by this
name is registered in the na..., stack:
invariant@1453:25
getEnforcing@1431:27
anonymous@38494:49
loadModuleImplementation@150:13
guardedLoadModule@88:37
metroRequire@37:91
anonymous@38477:61
loadModuleImplementation@150:13
guardedLoadModule@88:37
metroRequire@37:91
anonymous@40979:31
loadModuleImplementation@150:13
guardedLoadModule@88:37
metroRequire@37:91
anonymous@40971:30
loadModuleImplementation@150:13
guardedLoadModule@88:37
metroRequire@37:91
anonymous@40949:47
loadModuleImplementation@150:13
guardedLoadModule@88:37
metroRequire@37:91
anonymous@40914:32
loadModuleImplem<…>
The text was updated successfully, but these errors were encountered: