android gradle plugin requires java 17 to run. you are currently using java 11 in React Native Issue

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello guys welcome back to the debug Arena if you are here then I can assume that you have already installed react native in your machine and then when you try to run your application you are getting this error and this error states that Android gradel plugin require Java 17 to run but in our machine Java 11 is installed so in this video I will show two ways in which we can solve this issue both the ways should work for everybody now the first step is that we have to install the jdk 17 for that I will go to Chrome here I will search for jdk 17 downloads for window click on the first link then I will scroll down and I will go to Windows and here I will click on this link it will install the installer let's wait for it to finish okay this is done I will open this I have installed it two times now I will click on yes then we have to press on next okay this is the location where our jdk will be installed so I will press on next and it is done now I will press on this close after this we have to open our environment variable so I will go to my windows and search for environment variable just open this then we will click on this environment variables and here we have to go to this Java home and you can see this is the part to our jdk 11 so we have to change that so I will click on edit then I will open my File Explorer and I will go to C program files and here I will go to Java and here I can find this jdk 17 so I will go inside this I will copy this path again I will go to my environment variables and here instead of this location I will paste that click on okay okay you can see here I'm getting jdk 17 I will press on okay this was the first way after this you can restart your laptop and try to build the application now let me quickly show you the second step for that I will open that application inside Visual Studio this is my react native application I will open it with code here I will go to Android gr. properties here after this I will add add this thing org. gr. java. home and after this we will paste our jdk location so I will paste this Java jdk 17 okay it is done now I will save this now let's try to rebuild the application so I will come here and run this react native run Android and you can see here that I am getting this error that gradel property invalid okay I think that back slash is not working so I will again go to the code and and here we can add double back slash okay I will save this again I will go and try to rebuild our application so I will write here react native run Android and you can see it has started let's wait for it to finish till then you can see that this is my emulator and this is the application which I'm currently building on react native so if you also want to learn react native from scratch along with nodejs and mongodb then you can follow my playlist in which I am trying to make this application where user can do login registration user can get the details admin can also register admin will see the users detail and many much more so you can go and follow that playlist and you can see here that my application build is successful and my application has been started just one more thing first try to solve the issue with the first way which I have shown because if you follow the second way then whenever you build your application you have to add this variable each time for each and every application so the better way is that you should edit your Java home there and restart your laptop and your build will be successful and still if you are facing the issue then please let me know in comments I will try to solve this thank you for watching the video
Info
Channel: The Debug Arena
Views: 4,183
Rating: undefined out of 5
Keywords: android gradle plugin requires java 17 to run. you are currently using java 11 in React Native, react native build issue, react native installation, npm run, react native gradle plugin, gradle install react native, react native version0.73, react native latest, installation react native, react native gradle fix, fix gradle installation in react native, react native tutorial, version0.70, react native, mern, nodej
Id: gIeQ3SKXu_M
Channel Id: undefined
Length: 3min 43sec (223 seconds)
Published: Sun Feb 25 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.