Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Glass App, Please select Android SDK in Edit Configuration

First, let me walk you through the process in which I am getting my error. First, I created a successful Glass Project into Android Studio 3.0.1. My other project will run completely, but when I run my glass app I get the error "Please select Android SDK" in Edit Configuration. Because of this, I have tried to change the Edit Configuration with "launch default activity" and "Target USB device". Unfortunately, this does not solve my issue.

Here is a tutorial showing how to create and deploy a Google Glass App.

I have researched far and low regarding this issue, but every resource I have found says, to "sync gradle". This solution does not solve my issue, nor does this work for me.

Below is an example of the "Edit Configuration" window.

Edit Configuration

enter image description here

enter image description here

enter image description here

enter image description here

like image 415
Umesh AHIR Avatar asked Mar 12 '18 11:03

Umesh AHIR


People also ask

Where to find Android SDK path?

by default, the "Android Studio IDE" will be installed in " C:\Program Files\Android\Android Studio ", and the "Android SDK" in " c:\Users\username\AppData\Local\Android\Sdk ".


1 Answers

First check File > Project Structure > SDK Location and ensure the path in Android SDK location is the correct one and matches what you have in your gradle file

(Optionally, also in the Project Structure window, select each module in turn, from the left hand column and make sure the android/sdk fields are correct)

You should also ensure your ANDROID_HOME environmental / system variable is set to the same SDK location. It seems you are using mac so this question may help you with that.

After that you can again Clean and Sync with Gradle (as you said you tried before).

If it still fails then File > Invalidate Caches / Restart generally resolves such problems on my system and you can also try replacing /home/ with ~/

like image 149
Nick Cardoso Avatar answered Oct 03 '22 05:10

Nick Cardoso