Closed mujehoxe closed 1 year ago
I believe Java 11 is required, your environment indicates Java 8? Everything else seems generally fine though. I'd need to see a reproduction of this to know for sure but your statement here:
Application is working perfectly with 'npx react-native run-android',
...is very suspicious. So ...it works, but it doesn't work? I would isolate + examine what the difference is between when you run npx react-native run-android
vs the manual gradle commands. Both work in my environment.
Given one works in your environment and Java 8 is already something that looks environment-specific and incorrect I think you've got some things to investigate that should get you moving. In the meantime I'm going to close this as not actionable though, this is not something I reproduce in my environment nor will it result in any changes to this repository
I have jdk11 installed as well
[ o ~/ ]$ java -version openjdk version "11.0.19" 2023-04-18 OpenJDK Runtime Environment (Red_Hat-11.0.19.0.7-2.fc37) (build 11.0.19+7) OpenJDK 64-Bit Server VM (Red_Hat-11.0.19.0.7-2.fc37) (build 11.0.19+7, mixed mode, sharing)
Issue
Application is working perfectly with 'npx react-native run-android', but when building the apk with './gradlew assembleDebug' i get the following:
Project Files
Android
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:android/app/build.gradle
:android/settings.gradle
:MainApplication.java
:AndroidManifest.xml
:Environment