user2826499
user2826499

Reputation: 121

Android Studio: Run/Debug Configurations unable to create application

Hi I'm having a problem in creating a configuration in Android. Last week this one is still working and i can able to run it but opening it today the configuration is unknown already. I didn't do anything for the codes last week I just run it.

Here's the screenshot of my Run/Debug Configurations.

enter image description here

I tried creating new application run/debug configuration but running it display

  1. an icon with cross
  2. also display "Error Running SyncActivity: No JDK specified"

I'm using Android Studio and I'm new in this project android. Thank you in advance enter image description here

Upvotes: 1

Views: 2868

Answers (1)

Akshay
Akshay

Reputation: 1161

You need to set the JDK for your project and/or modules.

Open the project settings (File->Project settings...).

Most of the time you just need to set the project sdk (to your java sdk) and configure the modules to use the project sdk. Probably one of those settings is missing.

Upvotes: 2

Related Questions