react-native-community / upgrade-support

A central community-backed place to request and give help when upgrading your app.
MIT License
261 stars 2 forks source link

After upgrading RN 0.68.2 --> 0.69.1 ReactNativeHostWrapperBase: Unresolved reference: RedBoxHandle #202

Open artkrv opened 2 years ago

artkrv commented 2 years ago

Environment


Gradle 7.3.3

Build time: 2021-12-22 12:37:54 UTC Revision: 6f556c80f945dc54b50e0be633da6c62dbe8dc71

Kotlin: 1.5.31 Groovy: 3.0.9 Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021 JVM: 11.0.15 (Homebrew 11.0.15+0) OS: Mac OS X 12.4 aarch64

expo-env-info 1.0.4 environment info: System: OS: macOS 12.4 Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.14.0 - /usr/local/bin/node Yarn: 1.22.19 - ~/.yarn/bin/yarn npm: 8.4.1 - /opt/homebrew/bin/npm Watchman: 2022.06.20.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.3 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: API Levels: 30, 31, 32 Build Tools: 30.0.2, 30.0.3, 31.0.0, 32.0.0 System Images: android-32 | Google APIs ARM 64 v8a, android-32 | Google Play ARM 64 v8a IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8139111 Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild npmPackages: expo: ^45.0.6 => 45.0.6 react: 18.0.0 => 18.0.0 react-native: 0.69.1 => 0.69.1 npmGlobalPackages: eas-cli: 0.54.1 expo-cli: 5.4.12

Things I’ve done to figure out my issue

Upgrading version

0.69.1

Description

After upgrading RN 0.68.2 --> 0.69.1 I am facing the project build issue.

yarn android gives me an error:

image

Task :expo:compileDebugKotlin FAILED w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions

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.3.3/userguide/command_line_interface.html#sec:command_line_warnings 347 actionable tasks: 341 executed, 6 up-to-date Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Note: /projects/Mobile.App/node_modules/lottie-react-native/src/android/src/main/java/com/airbnb/android/react/lottie/LottieAnimationViewManager.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /projects/Mobile.App/node_modules/lottie-react-native/src/android/src/main/java/com/airbnb/android/react/lottie/LottieAnimationViewManager.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Note: /projects/Mobile.App/node_modules/@react-native-async-storage/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /projects/Mobile.App/node_modules/@react-native-async-storage/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStoragePackage.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. e: /projects/Mobile.App/node_modules/expo/android/src/main/java/expo/modules/ReactNativeHostWrapperBase.kt: (14, 38): Unresolved reference: RedBoxHandler e: /projects/Mobile.App/node_modules/expo/android/src/main/java/expo/modules/ReactNativeHostWrapperBase.kt: (42, 36): Unresolved reference: RedBoxHandler e: /projects/Mobile.App/node_modules/expo/android/src/main/java/expo/modules/ReactNativeHostWrapperBase.kt: (43, 12): Not enough information to infer type variable T

FAILURE: Build failed with an exception.

Reproducible demo

npx react-native upgrade yarn android

tkyr-hh commented 2 years ago

I faced the same issue while upgrading to the latest react native version 0.69.1 with Expo, and there is no fix for it until now. However, the Expo community is aware of the incompatibility issues with the latest RN version and the fix will be available with Expo v46 .. please refer to this comment