Issue: In Arch Linux, when try to execute npm run android, it throws the following error. Solution: Do not use Java 17 Open JDK as it’s not compatible at time of writing. Check Gradle version Check Java compatibility against Gradle version – https://docs.gradle.org/current/userguide/compatibility.html Since OpenJDK 16 does not exist in AUR – https://wiki.archlinux.org/title/java#OpenJDK, install OpenJDK…
Month: November 2021
Change Java OpenJDK version in Arch Linux
Issue: When execute npm run android for React Native, the build error occurred as below: Solution: It’s because currently Java version is lower than 11. Assuming already has another Java JDK, simply change Java for Arch Linux. Reference: https://edgardorl.com/blog/configure-java-in-arch-linux-to-run-a-react-native-application/