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

Support for android 14 #7805

Open
1 task done
danialseikh34 opened this issue Nov 1, 2023 · 5 comments
Open
1 task done

Support for android 14 #7805

danialseikh34 opened this issue Nov 1, 2023 · 5 comments

Comments

@danialseikh34
Copy link

What happened?

App is getting crashed after upgrading android 13 to android 14

What was the expected behaviour?

No response

Was it tested on latest react-native-navigation?

  • I have tested this issue on the latest react-native-navigation release and it still reproduces.

Help us reproduce this issue!

No response

In what environment did this happen?

React Native Navigation version:
React Native version:
Has Fabric (React Native's new rendering system) enabled: (yes/no)
Node version:
Device model:
Android version:

@ertugruldogan
Copy link

ertugruldogan commented Nov 7, 2023

Android API = "34.0.0"

"react-native-navigation": "7.37.1"
"react-native": "0.73.0"

Task :react-native-navigation:compileReactNative71DebugKotlin FAILED

'compileReactNative71DebugJavaWithJavac' task (current target is 17) and 'compileReactNative71DebugKotlin' task (current target is 1.8) jvm target compatibility should be set to the same Java version.

@thuongtv-vn
Copy link

thuongtv-vn commented Nov 10, 2023

Change this code on JsDevReloadHandler.java in order to fix the registerReceiver API required on Android 14. But app crashes could be react-native version does not support Android 14.

  • Upgrade react-native version or Build app as release it will not crash.
public void onActivityResumed(Activity activity) {

		if(Build.VERSION.SDK_INT >= 34 && activity.getApplicationInfo().targetSdkVersion >= 34){
			activity.registerReceiver(reloadReceiver, new IntentFilter(RELOAD_BROADCAST), Context.RECEIVER_NOT_EXPORTED);
		}else{
			activity.registerReceiver(reloadReceiver, new IntentFilter(RELOAD_BROADCAST));
		}
 	}

@OskarEichler
Copy link

We are having the same issue after upgrading to React Native 0.73

Execution failed for task ':react-native-navigation:compileReactNative71DebugKotlin'.
> Inconsistent JVM-target compatibility detected for tasks 'compileReactNative71DebugJavaWithJavac' (17) and 'compileReactNative71DebugKotlin' (1.8).

@ertugruldogan
Copy link

React Native 0.72.x JAVA 17 Working.
React Native 0.73.x JAVA 17 Not Working,
Since React Native 0.73.x is a new version, there may be problems with its own library.
We would be very happy if React Native 0.73.x is up and running to target Android 14.

@OskarEichler
Copy link

@ertugruldogan I'm confused - React Native 0.73 was released earlier this week and does target Android 14:
https://reactnative.dev/blog/2023/12/06/0.73-debugging-improvements-stable-symlinks

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

4 participants