I am trying to start a project for google glass in android studio. I have all the SDK platforms required but still android studio keeps on giving me this error. Does anyone have any clue whats going on?
5 Answers
I just selected the update SDK option and then did rebuild. It said daemon started successfully
- 11
- 3
Sooooo...... remember to make changes in your build.gradle
change compileSdkVersion 15 to compileSdkVersion "Google Inc.:Glass Development Kit Sneak Peek:15"
- 2,668
- 9
- 41
- 72
I changed the compileSdkVersion to a lower one, synced, that failed, changed it back to the previous value, synced and it properly built. Very arbitrary, I know.
- 2,326
- 1
- 23
- 29
I had a similar problem. If you're on a mac than go into Android Studio/preferences/Appearance & Behavior/Android SDK and click on the SDK Tools tab. Update the Android SDK Platform Tools.
After you've updated this in the preference, go to Build/Clean Project. This takes a few seconds. When complete, go to Build/Rebuild Project.
The build should be successful this time.
If this doesn't work then go into file/ invalidate cashes restart
Hope this helps, Good luck.
- 1
- 1
Change targetSdkVersion and compileSdkVersion to the most current versions.
- 4,265
- 11
- 55
- 66
- 41
- 3