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.
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 ".
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 ~/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With