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

fix: Android build - set java version compatible with Expo 51 #143

Merged
merged 1 commit into from
May 21, 2024

Conversation

D4ryl00
Copy link
Contributor

@D4ryl00 D4ryl00 commented May 21, 2024

This PR fixes the build for Android devices using Expo 51.

Expo 51 uses React Native 0.74 which uses Java 17 (see here): If you have already installed JDK on your system, we recommend JDK 17. You may encounter problems using higher JDK versions.

The previous version used was Java 18 which created a conflict between the two versions: Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (17) and 'compileDebugKotlin' (18).

Finally, this PR also removes the native folders and adds them in the .gitignore files because they are automatically created npx expo run:ios (or android), following the recommendations of npx expo-doctor@latest.

@D4ryl00 D4ryl00 requested a review from jefft0 May 21, 2024 15:07
@D4ryl00 D4ryl00 self-assigned this May 21, 2024
@D4ryl00 D4ryl00 requested a review from iuricmp May 21, 2024 15:21
Copy link
Contributor

@jefft0 jefft0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In expo/examples. tested npx expo run:android and npx expo run:ios.
Also tested the gnoboard example in Android and iOS simulators.

@D4ryl00 D4ryl00 merged commit a519acd into gnolang:main May 21, 2024
@D4ryl00 D4ryl00 deleted the fix/java-version branch May 21, 2024 16:29
Copy link

🎉 This PR is included in version 1.2.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants