Skip to content
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

Closed
tashanemclean opened this issue Jul 13, 2023 · 22 comments

Comments

@tashanemclean
Copy link

tashanemclean commented Jul 13, 2023

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,
^~~~~~~

Task :expo-updates:createReleaseExpoManifest FAILED
Execution optimizations have been disabled for task ':expo-updates:createReleaseExpoManifest' to ensure correctness due to the following reasons:

  • 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.

  • What went wrong:
    Execution failed for task ':expo-updates:createReleaseExpoManifest'.

Process 'command 'node'' finished with non-zero exit value 1

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.

  • What went wrong:
    java.lang.StackOverflowError (no error message)

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
==============================================================================

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<…>

@tashanemclean tashanemclean added Development Builds needs validation Issue needs to be validated labels Jul 13, 2023
@expo-bot expo-bot added needs review Issue is ready to be reviewed by a maintainer and removed needs validation Issue needs to be validated labels Jul 13, 2023
@adesugbaa
Copy link

I have the same error building for production/preview.

The development build below works

npm run build

Here is some of the excerpts from the build

Configure project :expo

Using expo modules

  • expo-application (5.3.0)
  • expo-constants (14.4.2)
  • expo-dev-client (2.4.6)
  • expo-dev-launcher (2.4.8)
  • expo-dev-menu (3.1.8)
  • expo-eas-client (0.6.0)
  • expo-file-system (15.4.2)
  • expo-font (11.4.0)
  • expo-json-utils (0.7.1)
  • expo-keep-awake (12.3.0)
  • expo-manifests (0.7.1)
  • expo-modules-core$android-annotation (1.5.7)
  • expo-modules-core$android-annotation-processor (1.5.7)
  • expo-modules-core (1.5.7)
  • expo-splash-screen (0.20.4)
  • expo-structured-headers (3.3.0)
  • expo-system-ui (2.4.0)
  • expo-updates (0.18.10)
  • expo-web-browser (12.3.2)

The Kotlin Gradle plugin was loaded multiple times in different subprojects, which is not supported and may break the build.
This might happen in subprojects that apply the Kotlin plugins with the Gradle 'plugins { ... }' DSL if they specify explicit versions, even if the versions are equal.
Please add the Kotlin plugin to the common parent project or the root project, then remove the versions in the subprojects.
If the parent project does not need the plugin, add 'apply false' to the plugin line.
See: https://docs.gradle.org/current/userguide/plugins.html#sec:subprojects_plugins_dsl
The Kotlin plugin was loaded in the following projects: ':shopify_flash-list', ':expo-modules-core', ':react-native-pager-view', ':react-native-safe-area-context', ...

Task :app:createBundleReleaseJsAndAssets
Experimental path aliases feature is enabled. Learn more: https://docs.expo.dev/guides/typescript/#path-aliases
warning: Bundler cache is empty, rebuilding (this may take a minute)
info Writing bundle output to:, /Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle
info Writing sourcemap output to:, /Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/intermediates/sourcemaps/react/release/index.android.bundle.packager.map
info Done writing bundle output
info Done writing sourcemap output
info Copying 38 asset files
info Done copying assets
/Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:970:42: warning: the variable "fetch" was not declared in anonymous function " 25#"
value: wrapFetchWithWindowLocation(fetch)
^~~~~
/Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:1745:20: warning: the variable "Promise" was not declared in function "promiseMethodWrapper"
return new Promise(function (resolve, reject) {
^~~~~~~
/Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:2126:18: warning: the variable "DebuggerInternal" was not declared in function "__shouldPauseOnThrow"
typeof DebuggerInternal !== 'undefined' &&
^~~~~~~~~~~~~~~~
/Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:4673:5: warning: the variable "setImmediate" was not declared in function "handleResolved"
setImmediate(function () {
^~~~~~~~~~~~
/Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:6117:9: warning: the variable "setTimeout" was not declared in anonymous function " 221#"
setTimeout(function () {
^~~~~~~~~~
/Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:9005:14: warning: the variable "Headers" was not declared in anonymous function " 299#"
Headers: Headers,
^~~~~~~
/Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:9006:14: warning: the variable "Request" was not declared in anonymous function " 299#"
Request: Request,
^~~~~~~
/Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:9007:15: warning: the variable "Response" was not declared in anonymous function " 299#"
Response: Response
^~~~~~~~
/Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:9157:24: warning: the variable "FileReader" was not declared in function "readBlobAsArrayBuffer"
var reader = new FileReader();
^~~~~~~~~~
/Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:9204:36: warning: the variable "Blob" was not declared in anonymous function " 310#"
} else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
^~~~
/Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:9206:40: warning: the variable "FormData" was not declared in anonymous function " 310#"
} else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
^~~~~~~~
/Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:9208:44: warning: the variable "URLSearchParams" was not declared in anonymous function " 310#"
...e if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body...
^~~~~~~~~~~~~~~
/Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:9446:23: warning: the variable "XMLHttpRequest" was not declared in anonymous function " 319#"
var xhr = new XMLHttpRequest();
^~~~~~~~~~~~~~
/Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:9016:76: warning: the variable "self" was not declared in anonymous function " 302#"
...undefined' && globalThis || typeof self !== 'undefined' && self || typeof ...
^~~~
/Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:17861:108: warning: the variable "nativeFabricUIManager" was not declared in function "onChange"
...lInstanceHandle ? (from && nativeFabricUIManager.setIsJSResponder(from.sta...
^~~~~~~~~~~~~~~~~~~~~
/Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:18482:21: warning: the variable "clearTimeout" was not declared in anonymous function " 598#"
cancelTimeout = clearTimeout;
^~~~~~~~~~~~
/Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:22232:30: warning: the variable "REACT_DEVTOOLS_GLOBAL_HOOK" was not declared in anonymous function " 598#"
if ("undefined" !== typeof REACT_DEVTOOLS_GLOBAL_HOOK) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:22340:27: warning: the variable "performance" was not declared in anonymous function " 637#"
if ("object" === typeof performance && "function" === typeof performance.no...
^~~~~~~~~~~
/Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:22363:26: warning: the variable "navigator" was not declared in anonymous function " 637#"
"undefined" !== typeof navigator && undefined !== navigator.scheduling && u...
^~~~~~~~~
/Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:22473:37: warning: the variable "MessageChannel" was not declared in anonymous function " 637#"
};else if ("undefined" !== typeof MessageChannel) {
^~~~~~~~~~~~~~
/Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:22488:34: warning: the variable "nativeRuntimeScheduler" was not declared in anonymous function " 637#"
... = "undefined" !== typeof nativeRuntimeScheduler ? nativeRuntimeScheduler....
^~~~~~~~~~~~~~~~~~~~~~
/Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:36142:34: warning: the variable "requestAnimationFrame" was not declared in function "start 9#"
... this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));
^~~~~~~~~~~~~~~~~~~~~
/Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:74979:25: warning: the variable "Atomics" was not declared in anonymous function " 2639#"
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
^~~~~~~
/Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:74996:38: warning: the variable "FinalizationRegistry" was not declared in anonymous function " 2639#"
...lizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefine...
^~~~~~~~~~~~~~~~~~~~
/Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:75021:35: warning: the variable "SharedArrayBuffer" was not declared in anonymous function " 2639#"
...%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined...
^~~~~~~~~~~~~~~~~
/Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:75035:25: warning: the variable "WeakRef" was not declared in anonymous function " 2639#"
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
^~~~~~~
/Users/ayorinde/Developer/Git/Others/terminoxx360-app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:114838:9: warning: the variable "cancelAnimationFrame" was not declared in anonymous function " 3844#"
cancelAnimationFrame(this.renderAheadUpdateCallbackId);
^~~~~~~~~~~~~~~~~~~~
`

@tashanemclean
Copy link
Author

@adesugbaa In your debugging have you seen the ‘deprecated gradle features were used in this build, making it incompatible with gradle 8.0.’ warning message? At first my assumption was that I had the wrong version of gradle installed. Updated to gradle 8.2.1 but the error persisted..

@TrevorRashid
Copy link

TrevorRashid commented Jul 18, 2023

I have the same issues here

Execution failed for task ':expo-updates:createReleaseExpoManifest'.

@superyarik
Copy link
Contributor

have same issue -
looks like expo build cannot use import like this

import defaultOfflineConfig from '@redux-offline/redux-offline/lib/defaults';

image

@douglowder douglowder changed the title expo-updates Execution failed for task ':expo-updates:createReleaseExpoManifest' expo-updates with expo-router on SDK 48: Execution failed for task ':expo-updates:createReleaseExpoManifest' Jul 22, 2023
@douglowder
Copy link
Contributor

I'm not seeing any issue with Android. Once updates is configured, and index.ts is renamed to index.js, the app builds and runs in release build without any problems.

I'm seeing an issue on iOS where the app builds, but crashes on launch -- investigating.

@douglowder
Copy link
Contributor

This seems to be reproducible, creating a task.

@douglowder douglowder self-assigned this Jul 22, 2023
@douglowder douglowder added Issue accepted and removed needs review Issue is ready to be reviewed by a maintainer labels Jul 22, 2023
@expo-bot
Copy link
Collaborator

Thank you for filing this issue!
This comment acknowledges we believe this may be a bug and there’s enough information to investigate it.
However, we can’t promise any sort of timeline for resolution. We prioritize issues based on severity, breadth of impact, and alignment with our roadmap. If you’d like to help move it more quickly, you can continue to investigate it more deeply and/or you can open a pull request that fixes the cause.

@douglowder
Copy link
Contributor

ENG-9427

@itsmnjn
Copy link

itsmnjn commented Jul 24, 2023

can confirm production android fails to build on eas for me. production ios works and does not crash on open.

@superyarik
Copy link
Contributor

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.

E/Loader: Failed to download manifest from URL: https://u.expo.dev/###
    java.lang.Exception: This app (ID: ###) has no updates available on the channel named "staging" and branch named "staging" for the platform "android" and runtime version "exposdk:48.0.0"

posting update to this channel fix error.

@lucasfronza
Copy link
Contributor

I'm on SDK 49 with expo-router and got the same issue

@toby-palau
Copy link

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:

Fatal 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

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.

@tate8
Copy link

tate8 commented Aug 10, 2023

I can confirm the exact same issue on expo SDK 49, managed workflow. Android release build with npx expo run:android --variant release is fine, but ios build with npx expo run:ios --configuration Release crashes on launch. All builds succeed (EAS and otherwise), but ios crashes on startup.

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

@EmanuelCampos
Copy link

@tate8 @toby-palau any updates on this?

@muehan
Copy link

muehan commented Sep 24, 2023

I have a simular issue.
steps:

  • npm install --global eas-cli
  • npx create-expo-app
  • npx expo install expo-updates
  • eas init
  • eas update:configure
  • npx expo run:android --variant release
> Task :app:processReleaseMainManifest
C:\git\my-app-android-test\android\app\src\main\AndroidManifest.xml:21:9-30:20 Warning:
        provider#expo.modules.filesystem.FileSystemFileProvider@android:authorities was tagged at AndroidManifest.xml:21 to replace other declarations but no other declaration present

> Task :app:createReleaseExpoManifest FAILED
The command "[node" is either misspelled or
could not be found.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:createReleaseExpoManifest'.
> Process 'command 'cmd'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 52s
483 actionable tasks: 223 executed, 260 from cache
Error: C:\git\my-app-android-test\android\gradlew.bat exited with non-zero code: 1
Error: C:\git\my-app-android-test\android\gradlew.bat exited with non-zero code: 1
    at ChildProcess.completionListener (C:\git\my-app-android-test\node_modules\@expo\spawn-async\build\spawnAsync.js:52:23)
    at Object.onceWrapper (node:events:629:26)
    at ChildProcess.emit (node:events:514:28)
    at cp.emit (C:\git\my-app-android-test\node_modules\cross-spawn\lib\enoent.js:34:29)
    at maybeClose (node:internal/child_process:1091:16)
    at ChildProcess._handle.onexit (node:internal/child_process:302:5)
    ...
    at Object.spawnAsync [as default] (C:\git\my-app-android-test\node_modules\@expo\spawn-async\build\spawnAsync.js:17:21)
    at spawnGradleAsync (C:\git\my-app-android-test\node_modules\@expo\cli\build\src\start\platforms\android\gradle.js:72:46)
    at Object.assembleAsync (C:\git\my-app-android-test\node_modules\@expo\cli\build\src\start\platforms\android\gradle.js:52:18)
    at runAndroidAsync (C:\git\my-app-android-test\node_modules\@expo\cli\build\src\run\android\runAndroidAsync.js:36:24)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

does anyone have a solution or workaround?
I can't wait months not producing output.

@douglowder
Copy link
Contributor

@muehan your issue looks like a typo in android/app/build.gradle, specifically in the entryFile definition.

@muehan
Copy link

muehan commented Sep 25, 2023

@douglowder looks like to correct place. but I can't see it

react {
    entryFile = file(["node", "-e", "require('expo/scripts/resolveAppEntry')", projectRoot, "android", "absolute"].execute(null, rootDir).text.trim())
    reactNativeDir = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsoluteFile()
    hermesCommand = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsolutePath() + "/sdks/hermesc/%OS-BIN%/hermesc"
    codegenDir = new File(["node", "--print", "require.resolve('@react-native/codegen/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsoluteFile()

    // Use Expo CLI to bundle the app, this ensures the Metro config
    // works correctly with Expo projects.
    cliFile = new File(["node", "--print", "require.resolve('@expo/cli')"].execute(null, rootDir).text.trim())
    bundleCommand = "export:embed"

and it's untouched, all auto generated.

@muehan
Copy link

muehan commented Sep 25, 2023

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.
I added --stacktrace to the line in gradew.bat
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* --stacktrace

now I have more error to watch.
maybe a wrong java version?

* What went wrong:
Execution failed for task ':app:createReleaseExpoManifest'.
> Process 'command 'cmd'' finished with non-zero exit value 1

* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:createReleaseExpoManifest'.
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:149)
        at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:147)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:135)
        at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
        at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:74)
        at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
        at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:42)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:338)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:325)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:318)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:304)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:463)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:380)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
        at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:49)
Caused by: org.gradle.process.internal.ExecException: Process 'command 'cmd'' finished with non-zero exit value 1
        at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:415)
        at org.gradle.process.internal.DefaultExecAction.execute(DefaultExecAction.java:38)
        at org.gradle.process.internal.DefaultExecActionFactory.exec(DefaultExecActionFactory.java:202)
        at org.gradle.api.internal.project.DefaultProject.exec(DefaultProject.java:1230)
        at expo.modules.updates.ExpoUpdatesPlugin$CreateManifestTask.getExpoUpdatesPackageDir(ExpoUpdatesPlugin.kt:89)
        at expo.modules.updates.ExpoUpdatesPlugin$CreateManifestTask.access$getExpoUpdatesPackageDir(ExpoUpdatesPlugin.kt:50)
        at expo.modules.updates.ExpoUpdatesPlugin$CreateManifestTask$exec$1.invoke(ExpoUpdatesPlugin.kt:70)
        at expo.modules.updates.ExpoUpdatesPlugin$CreateManifestTask$exec$1.invoke(ExpoUpdatesPlugin.kt:67)
        at expo.modules.updates.ExpoUpdatesPlugin$CreateManifestTask.exec$lambda$0(ExpoUpdatesPlugin.kt:67)
        at org.gradle.process.internal.DefaultExecActionFactory.exec(DefaultExecActionFactory.java:201)
        at org.gradle.api.internal.project.DefaultProject.exec(DefaultProject.java:1230)
        at expo.modules.updates.ExpoUpdatesPlugin$CreateManifestTask.exec(ExpoUpdatesPlugin.kt:67)
        at jdk.internal.reflect.GeneratedMethodAccessor2356.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29)
        at org.gradle.api.internal.tasks.execution.TaskExecution$3.run(TaskExecution.java:242)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
        at org.gradle.api.internal.tasks.execution.TaskExecution.executeAction(TaskExecution.java:227)
        at org.gradle.api.internal.tasks.execution.TaskExecution.executeActions(TaskExecution.java:210)
        at org.gradle.api.internal.tasks.execution.TaskExecution.executeWithPreviousOutputFiles(TaskExecution.java:193)
        at org.gradle.api.internal.tasks.execution.TaskExecution.execute(TaskExecution.java:166)
        at org.gradle.internal.execution.steps.ExecuteStep.executeInternal(ExecuteStep.java:93)
        at org.gradle.internal.execution.steps.ExecuteStep.access$000(ExecuteStep.java:44)
        at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:57)
        at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:54)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
        at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:54)
        at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:44)
        at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:67)
        at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:37)
        at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:41)
        at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:74)
        at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:55)
        at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:50)
        at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:28)
        at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.executeDelegateBroadcastingChanges(CaptureStateAfterExecutionStep.java:100)
        at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:72)
        at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:50)
        at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:40)
        at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:29)
        at org.gradle.internal.execution.steps.BuildCacheStep.executeWithoutCache(BuildCacheStep.java:166)
        at org.gradle.internal.execution.steps.BuildCacheStep.lambda$execute$1(BuildCacheStep.java:70)
        at org.gradle.internal.Either$Right.fold(Either.java:175)
        at org.gradle.internal.execution.caching.CachingState.fold(CachingState.java:59)
        at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:68)
        at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:46)
        at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:36)
        at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:25)
        at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:36)
        at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:22)
        at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:91)
        at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$2(SkipUpToDateStep.java:55)
        at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:55)
        at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:37)
        at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:65)
        at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:36)
        at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:37)
        at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:27)
        at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:76)
        at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:37)
        at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:94)
        at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:49)
        at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:71)
        at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:45)
        at org.gradle.internal.execution.steps.SkipEmptyWorkStep.executeWithNonEmptySources(SkipEmptyWorkStep.java:177)
        at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:81)
        at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:53)
        at org.gradle.internal.execution.steps.RemoveUntrackedExecutionStateStep.execute(RemoveUntrackedExecutionStateStep.java:32)
        at org.gradle.internal.execution.steps.RemoveUntrackedExecutionStateStep.execute(RemoveUntrackedExecutionStateStep.java:21)
        at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:38)
        at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:36)
        at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:23)
        at org.gradle.internal.execution.steps.CleanupStaleOutputsStep.execute(CleanupStaleOutputsStep.java:75)
        at org.gradle.internal.execution.steps.CleanupStaleOutputsStep.execute(CleanupStaleOutputsStep.java:41)
        at org.gradle.internal.execution.steps.AssignWorkspaceStep.lambda$execute$0(AssignWorkspaceStep.java:32)
        at org.gradle.api.internal.tasks.execution.TaskExecution$4.withWorkspace(TaskExecution.java:287)
        at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:30)
        at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:21)
        at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:37)
        at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:27)
        at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:42)
        at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:31)
        at org.gradle.internal.execution.impl.DefaultExecutionEngine$1.execute(DefaultExecutionEngine.java:64)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:146)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:135)
        at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
        at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:74)
        at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
        at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:42)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:338)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:325)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:318)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:304)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:463)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:380)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
        at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:49)
$ java --version
openjdk 11.0.2 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)

Edit:
I change to JDK 21, resulting in a complete other error.
Changed to JDK 17 and now I see the same old error again.

@douglowder
Copy link
Contributor

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)

@muehan
Copy link

muehan commented Sep 26, 2023 via email

@tashanemclean
Copy link
Author

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

@AlbertCardo
Copy link

AlbertCardo commented Feb 20, 2024

@muehan the solution is to rename index.ts to index.js and put the file at the root folder (not on any subfolder like src).

This issue has been reported here too:

@douglowder the documentation states that you can specify a different entry point at the "main" field of package.json, but this throws an error sometimes when doing eas builds (not always, eg it works if "developmentClient" is true) due to the gradle task :expo-updates:createReleaseExpoManifest.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests