Managed - EAS build failed for Android

Expo CLI 4.8.1 environment info:
    System:
      OS: Linux 5.8 KDE neon 5.22
      Shell: 5.0.17 - /bin/bash
    npmPackages:
      expo: ^42.0.0 => 42.0.0 
      react: ^17.0.1 => 17.0.2 
      react-dom: ^17.0.1 => 17.0.2 
      react-native: https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz => 0.63.2 
      react-native-web: ~0.15.0 => 0.15.7 
    Expo Workflow: managed

eas-cli/0.22.0 linux-x64 node-v14.17.3

“Run gradlew” phase output:

> Task :app:compileDebugJavaWithJavac FAILED

[stderr] /build/workingdir/build/android/app/src/main/java/media/u/fastory/net/MainApplication.java:26: error: cannot find symbol

[stderr] import com.swmansion.reanimated.ReanimatedJSIModulePackage;

[stderr]                                ^

[stderr]   symbol:   class ReanimatedJSIModulePackage

[stderr]   location: package com.swmansion.reanimated

[stderr] /build/workingdir/build/android/app/src/main/java/media/u/fastory/net/MainApplication.java:58: error: cannot find symbol

[stderr]       return new ReanimatedJSIModulePackage();

[stderr]                  ^

[stderr]   symbol: class ReanimatedJSIModulePackage

[stderr] Note: /build/workingdir/build/android/app/src/debug/java/media/u/fastory/net/ReactNativeFlipper.java uses or overrides a deprecated API.

[stderr] Note: Recompile with -Xlint:deprecation for details.

[stderr] 2 errors

w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.

Use '--warning-mode all' to show the individual deprecation warnings.

See https://docs.gradle.org/6.8/userguide/command_line_interface.html#sec:command_line_warnings

771 actionable tasks: 771 executed

[stderr] FAILURE: Build failed with an exception.

[stderr] * What went wrong:

[stderr] Execution failed for task ':app:compileDebugJavaWithJavac'.

[stderr] > Compilation failed; see the compiler error output for details.

[stderr] * Try:

[stderr] 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.

[stderr] * Get more help at https://help.gradle.org

[stderr] BUILD FAILED in 3m 47s

Error: Gradle build failed with unknown error. Please see logs for the "Run gradlew" phase.

in package.json - “react-native-reanimated”: “~1.13.0”

fixed with updating react-native-reanimated to 2.2.0

2 Likes

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.