Error: Reference: https://github.com/robolectric/robolectric/issues/6521#issuecomment-851736355 Solution: Open android/build.gradle Update gradle version from 4.2.2 to 7.1.3 From: classpath(“com.android.tools.build:gradle:4.2.2”) To: classpath(“com.android.tools.build:gradle:7.1.3”) Open Android Studio for the project and wait for syncing gradle Build again
Category: React Native
React Native Boilerplate
A React Native boilerplate using React Native, React Navigation, React Redux Toolkit, React Native Bootsplash, React Native Onboarding Swiper, Redux Persist, Formik, Yup, Lottie, Axios This is a React Native boilerplate project. The project is using Node.js REST API that I developed as the boilerplate. You can find the Node.js REST API boilerplate project in here….
BUG! exception in phase ‘semantic analysis’ in source unit ‘_BuildScript_’ Unsupported class file major version 61
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…
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/