expo / config-plugins

Out-of-tree Expo config plugins for packages that haven't adopted the config plugin system yet.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EAS build failed for react-native-branch

jorgeruvalcaba opened this issue · comments

Summary

I'm trying to build a dev client including the react-native-branch package. But the build process keeps failing for both iOS and Android.

iOS:
Screen Shot 2022-06-07 at 5 03 09 p m

Android:

[stderr] 
Note: Some input files use unchecked or unsafe operations.
[stderr] 
Note: Recompile with -Xlint:unchecked for details.
> Task :expo-modules-core:bundleLibCompileToJarDebug
> Task :react-native-branch:generateDebugBuildConfig
> Task :react-native-branch:javaPreCompileDebug
> Task :react-native-branch:compileDebugJavaWithJavac
> Task :react-native-branch:bundleLibCompileToJarDebug
[stderr] 
Note: /home/expo/workingdir/build/node_modules/react-native-branch/android/src/main/java/io/branch/rnbranch/RNBranchModule.java uses or overrides a deprecated API.
[stderr] 
Note: Recompile with -Xlint:deprecation for details.
[stderr] 
Note: /home/expo/workingdir/build/node_modules/react-native-branch/android/src/main/java/io/branch/rnbranch/AgingHash.java uses unchecked or unsafe operations.
[stderr] 
Note: Recompile with -Xlint:unchecked for details.
> Task :config-plugins-react-native-branch:compileDebugKotlin
w: /home/expo/workingdir/build/node_modules/@config-plugins/react-native-branch/android/src/main/java/expo/modules/adapters/branch/BranchReactActivityLifecycleListener.kt: (11, 44): Parameter 'activityContext' is never used
> Task :config-plugins-react-native-branch:javaPreCompileDebug
> Task :config-plugins-react-native-branch:compileDebugJavaWithJavac FAILED
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.9/userguide/command_line_interface.html#sec:command_line_warnings
586 actionable tasks: 586 executed
[stderr] 
FAILURE: Build failed with an exception.
[stderr] 
* What went wrong:
[stderr] 
Execution failed for task ':config-plugins-react-native-branch:compileDebugJavaWithJavac'.
[stderr] 
> Could not target platform: 'Java SE 11' using tool chain: 'JDK 8 (1.8)'.
[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 21s
Error: Gradle build failed with unknown error. Please see logs for the "Run gradlew" phase.

Config Plugin

@config-plugins/react-native-branch

What platform(s) does this occur on?

Android, iOS

SDK Version

44

Reproducible demo

This is the only change I have in my app.json file:

[
  "@config-plugins/react-native-branch",
    {
      "apiKey": "key_live_aj3NM749YlYHSlvB1233443335",
      "iosAppDomain": "my.app.link"
    }
]  

I have the same problem, HAAAALP!

I think that's a duplicate of this issue: #84