Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Please select Android SDK

Tags:

android

My Android Studio version is 2.1 preview. I'm running my project using Google APIs, Android 17, rev 4 (API 17).

I'm having 1 pop-up error while debugging app.

[Information: Image to show my pop-up errror. Click to show this.][1]

I never met error like this earlier. How can I resolve this?

Updated:

I often meet error like this:

error: diamond operator is not supported in -source 1.6
(use -source 7 or higher to enable diamond operator

I waas trying to do research on this. I tried but it never worked out. When does this error come and how can I resolve it?

Thanks.

like image 774
Luna Avatar asked Mar 11 '16 07:03

Luna


2 Answers

Go to

Tools -> Android -> Sync Project with Gradle Files

in Android Studio 3.0.1 to solve the following

Error: Please select Android SDK

as mentioned here

like image 179
Jose Kj Avatar answered Sep 25 '22 15:09

Jose Kj


It is not an error. Its just Android Studio trying to figure out what you want to debug. So in your case the "app" module. Have you done a gradle build through? Pushing this: enter image description here. Gradle should set it up so you dont have to choose debug target.

EDIT: This icon is different on Android Studio 3.0, is called "Sync Project with Gradle Files".

like image 39
miqueloi Avatar answered Sep 25 '22 15:09

miqueloi