Home > Net >  React Native - Build Failed at make error
React Native - Build Failed at make error

Time:01-31

error message I am pretty new to mobile app development and have been trying my hand at react native. Everything was going well and I was making slow, but steady progress. Suddenly, my app just stopped compiling. Honestly, I am not sure what I did to prompt this, but I think it was when I tried to pull in a new dependency. I am doing my development with an android emulator and I am able to run it with no issues.

I have tried just about everything to fix this. I have uninstalled and reinstalled many dependencies and followed some basic tutorials and documentation. I have removed react cli tools as well as tried reinstalling it. I have deleted my node_modules and package-lock and reinstalled with npm. I have restarted web storm, cleared caches, and restarted my computer. I went through and checked all dependencies such as java and gradle and reinstalled them. I genuinely have no idea on how to fix it and have made absolutely no progress. No matter what I do, I get the exact same error message each and every time. Any help would be so very much appreciated!

CodePudding user response:

It seems like the error message is indicating that you are using an unsupported version of Java. The error message specifically mentions "unsupported class file major version 63".

It's recommended to use Java 8 for developing React Native apps as that is the most widely used version of Java. You can try installing Java 8 and setting it as the default Java version on your system, then see if it resolves the issue.

You can also check if your Gradle version is compatible with the version of Java you're using. Updating Gradle to the latest version might also resolve the issue.

  • Related