0

When i create a new project, and press run i get this error.

enter image description here

The fact is i do already have jdk verison of 15 and my previously created projects do open and run without any errors. Also, if i add org.gradle.java.home=C:/Program Files/Java/jdk-15.0.1 line to my gradle.properties file the app runs without error but this way just does not seems right way to do it.

I have tried to change the SDK version from the project structure like some other questions and answers but it did not worked either. As an additon to other problems i do not have the same project structure screen as they showed so.

enter image description here

enter image description here

I do not know what to do right now, i would be very grateful if you could help me.

2 Answers2

0

You should delete .gradle folder under user name. Then again run your project.

0

enter image description here

change gradle to 4.1.0 and it will be run