Please see below. I have a feeling I've got the SDKs configured incorrectly, but I'm not sure how to solve it. I tried Googling for answers but no one had this exact problem.

Do I have the wrong Java version maybe? It seems like the two SDKs might be conflicting with each other.

I made this project via:

  1. Create New Project
  2. Android > Application Module
  3. Defaults and Finish

error in IntelliJ


Edit: See screenshot. I got it working. All I did was create a new project and re-select the Android SDK. I'm still thinking it was because I added too many SDKs/JDKs the first time. I think all you need is the Android SDK and don't need to add the normal Java one too.

enter image description here

Edit
Report