Task :expo-updates:compileDebugKotlin FAILED React-Native 70 bare project

See original GitHub issue

Summary

./gradlew assembleDebug is failing at expo-updates:compileDebugKotlin step. Running on the latest RN project with react-native init command.

Task Logs:


> Task :expo-updates:compileDebugKotlin
Caching disabled for task ':expo-updates:compileDebugKotlin' because:
  Build cache is disabled
Task ':expo-updates:compileDebugKotlin' is not up-to-date because:
  No history is available.
The input changes require a full rebuild for incremental task ':expo-updates:compileDebugKotlin'.
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
Using Kotlin/JVM incremental compilation
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/generated/aidl_source_output_dir/debug/out', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/generated/renderscript_source_output_dir/debug/out', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/generated/aidl_source_output_dir/debug/out', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/generated/renderscript_source_output_dir/debug/out', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/generated/aidl_source_output_dir/debug/out', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/generated/renderscript_source_output_dir/debug/out', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/generated/aidl_source_output_dir/debug/out', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/generated/renderscript_source_output_dir/debug/out', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/generated/aidl_source_output_dir/debug/out', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/generated/renderscript_source_output_dir/debug/out', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/generated/aidl_source_output_dir/debug/out', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/generated/renderscript_source_output_dir/debug/out', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/generated/aidl_source_output_dir/debug/out', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/generated/renderscript_source_output_dir/debug/out', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/generated/aidl_source_output_dir/debug/out', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/generated/renderscript_source_output_dir/debug/out', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/generated/aidl_source_output_dir/debug/out', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/generated/renderscript_source_output_dir/debug/out', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/generated/aidl_source_output_dir/debug/out', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/generated/renderscript_source_output_dir/debug/out', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/generated/aidl_source_output_dir/debug/out', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/generated/renderscript_source_output_dir/debug/out', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/kotlin', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/debug/java', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/generated/aidl_source_output_dir/debug/out', not found
file or directory '/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/generated/renderscript_source_output_dir/debug/out', not found
[KOTLIN] Kotlin compilation 'jdkHome' argument: null
i: found daemon on port 17128 (7220149 ms old), trying to connect
i: found daemon on port 17963 (3181530 ms old), trying to connect
i: connected to the daemon
Options for KOTLIN DAEMON: IncrementalCompilationOptions(super=CompilationOptions(compilerMode=INCREMENTAL_COMPILER, targetPlatform=JVM, reportCategories=[0], reportSeverity=2, requestedCompilationResults=[0]kotlinScriptExtensions=[kt, kts, java, java]), areFileChangesKnown=false, modifiedFiles=null, deletedFiles=null, classpathChanges=org.jetbrains.kotlin.incremental.ClasspathChanges$NotAvailable$ClasspathSnapshotIsDisabled@72fdfa4b, workingDir=/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/kotlin/compileDebugKotlin, multiModuleICSettings=MultiModuleICSettings(buildHistoryFile=/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/kotlin/compileDebugKotlin/build-history.bin, useModuleDetection=true), usePreciseJavaTracking=trueoutputFiles=[/Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/tmp/kotlin-classes/debug, /Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/build/kotlin/compileDebugKotlin])
e: /Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/java/expo/modules/updates/errorrecovery/ErrorRecovery.kt: (7, 34): Unresolved reference: DefaultNativeModuleCallExceptionHandler
e: /Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/java/expo/modules/updates/errorrecovery/ErrorRecovery.kt: (19, 41): Unresolved reference: DefaultNativeModuleCallExceptionHandler
e: /Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/java/expo/modules/updates/errorrecovery/ErrorRecovery.kt: (67, 60): Unresolved reference: DefaultNativeModuleCallExceptionHandler
e: /Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/java/expo/modules/updates/errorrecovery/ErrorRecovery.kt: (68, 7): 'handleException' overrides nothing
e: /Users/shamsziyo/Desktop/rn70expoupdates/node_modules/expo-updates/android/src/main/java/expo/modules/updates/errorrecovery/ErrorRecovery.kt: (77, 35): Unresolved reference: DefaultNativeModuleCallExceptionHandler
Restoring task outputs to pre-compilation state

> Task :expo-updates:compileDebugKotlin FAILED
:expo-updates:compileDebugKotlin (Thread[Execution worker Thread 14,5,main]) completed. Took 4.667 secs.
AAPT2 aapt2-7.2.1-7984345-osx Daemon #0: shutdown
w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':expo-updates:compileDebugKotlin'.
> Compilation error. See log for more details

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --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 --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

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

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.

What platform(s) does this occur on?

Android

Environment

  expo-env-info 1.0.5 environment info:
    System:
      OS: macOS 12.4
      Shell: 5.8.1 - /bin/zsh
    Binaries:
      Node: 16.15.1 - /usr/local/bin/node
      Yarn: 1.22.19 - /usr/local/bin/yarn
      npm: 8.11.0 - /usr/local/bin/npm
      Watchman: 2022.05.16.00 - /usr/local/bin/watchman
    Managers:
      CocoaPods: 1.11.2 - /Users/shamsziyo/.gem/ruby/2.6.0/bin/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
    IDEs:
      Android Studio: 2021.3 AI-213.7172.25.2113.9014738
      Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
    npmGlobalPackages:
      eas-cli: 2.0.0
      expo-cli: 6.0.5

Minimal reproducible example

https://github.com/ziyoshams/RN-70-expo-updates-crash

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:23 (6 by maintainers)

github_iconTop GitHub Comments

7reactions
a7ulcommented, Oct 29, 2022

expo+46.0.16.patch

To save some time for those who are looking at this

Steps to apply the patch are:

  • yarn add patch-package
  • Add a postinstall script:
   "postinstall": "patch-package"
  • Now create a file patches/expo-updates+0.14.6.patch with the contents:
diff --git a/node_modules/expo-updates/android/proguard-rules.pro b/node_modules/expo-updates/android/proguard-rules.pro
index 904153f..5026e1c 100644
--- a/node_modules/expo-updates/android/proguard-rules.pro
+++ b/node_modules/expo-updates/android/proguard-rules.pro
@@ -3,5 +3,5 @@
 }
 
 -keepclassmembers class com.facebook.react.devsupport.DisabledDevSupportManager {
-  private final com.facebook.react.bridge.DefaultNativeModuleCallExceptionHandler mDefaultNativeModuleCallExceptionHandler;
+  private final com.facebook.react.bridge.DefaultJSExceptionHandler mDefaultJSExceptionHandler;
 }
diff --git a/node_modules/expo-updates/android/src/main/java/expo/modules/updates/errorrecovery/ErrorRecovery.kt b/node_modules/expo-updates/android/src/main/java/expo/modules/updates/errorrecovery/ErrorRecovery.kt
index b00c9ad..5c17690 100644
--- a/node_modules/expo-updates/android/src/main/java/expo/modules/updates/errorrecovery/ErrorRecovery.kt
+++ b/node_modules/expo-updates/android/src/main/java/expo/modules/updates/errorrecovery/ErrorRecovery.kt
@@ -4,7 +4,7 @@ import android.os.Handler
 import android.os.HandlerThread
 import android.util.Log
 import com.facebook.react.ReactInstanceManager
-import com.facebook.react.bridge.DefaultNativeModuleCallExceptionHandler
+import com.facebook.react.bridge.DefaultJSExceptionHandler
 import com.facebook.react.bridge.ReactMarker
 import com.facebook.react.bridge.ReactMarkerConstants
 import com.facebook.react.devsupport.DisabledDevSupportManager
@@ -16,7 +16,7 @@ class ErrorRecovery {
   internal lateinit var handler: Handler
 
   private var weakReactInstanceManager: WeakReference<ReactInstanceManager>? = null
-  private var previousExceptionHandler: DefaultNativeModuleCallExceptionHandler? = null
+  private var previousExceptionHandler: DefaultJSExceptionHandler? = null
 
   fun initialize(delegate: ErrorRecoveryDelegate) {
     if (!::handler.isInitialized) {
@@ -64,17 +64,17 @@ class ErrorRecovery {
     }
 
     val devSupportManager = reactInstanceManager.devSupportManager as DisabledDevSupportManager
-    val defaultNativeModuleCallExceptionHandler = object : DefaultNativeModuleCallExceptionHandler() {
+    val defaultJSExceptionHandler = object : DefaultJSExceptionHandler() {
       override fun handleException(e: Exception?) {
         this@ErrorRecovery.handleException(e!!)
       }
     }
     val devSupportManagerClass = devSupportManager.javaClass
-    previousExceptionHandler = devSupportManagerClass.getDeclaredField("mDefaultNativeModuleCallExceptionHandler").let { field ->
+    previousExceptionHandler = devSupportManagerClass.getDeclaredField("mDefaultJSExceptionHandler").let { field ->
       field.isAccessible = true
       val previousValue = field[devSupportManager]
-      field[devSupportManager] = defaultNativeModuleCallExceptionHandler
-      return@let previousValue as DefaultNativeModuleCallExceptionHandler
+      field[devSupportManager] = defaultJSExceptionHandler
+      return@let previousValue as DefaultJSExceptionHandler
     }
     weakReactInstanceManager = WeakReference(reactInstanceManager)
   }
@@ -91,7 +91,7 @@ class ErrorRecovery {
 
       val devSupportManager = reactInstanceManager.devSupportManager as DisabledDevSupportManager
       val devSupportManagerClass = devSupportManager.javaClass
-      devSupportManagerClass.getDeclaredField("mDefaultNativeModuleCallExceptionHandler").let { field ->
+      devSupportManagerClass.getDeclaredField("mDefaultJSExceptionHandler").let { field ->
         field.isAccessible = true
         field[devSupportManager] = previousExceptionHandler
       }

  • After this just run yarn install
4reactions
Kudocommented, Nov 7, 2022

@lc3t35 react-native upstream released a breaking change causing the issue: https://expo.fyi/android-071-rc-build-failure. for expo managed workflow app, you could just run prebuild again to fix the issue. for bare apps, please apply the resolutionStrategy workaround or upgrade react-native@0.69.6 to fix the problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

react native expo - Execution failed for task
Everything worked fine, build successfully, but when I execute the command eas build -p android --profile preview , it crashes/build-fails after ...
Read more >
react native expo - Execution failed for task - Stack Overflow
... I installed expo-updates package and before that I configured expo-modules@latest in my react native bare project.
Read more >
react native task :app:checkdebugaarmetadata failed - You.com
The above error occurs every time I am trying to install react native track player, even on a bare project. I didn't understand...
Read more >
Execution failed for task ':react-native-location ... - Reddit
I upgraded all packages I am using on my app and then I decided to delete the node_module folder as well as package-lock.json...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found