Glass Development Kit installed but not found by Android Studio

▼魔方 西西 提交于 2019-12-22 12:23:28

问题


I get a Gradle Sync error saying "Failed to set up SDK": Error: Module 'app': platform 'Google Inc.:Glass Development Kit Preview:19' not found.

I have Glass Development Kit Preview from Android API 19 installed. My build.gradle(Module: app) is updated to reflect that:

compileSdkVersion 'Google Inc.:Glass Development Kit Preview:19'
buildToolsVersion '25.0.0'

I've looked at similar problems and I seem to have my build.gradle set up properly. How can I get the Gradle Sync to recognize my GDK?


回答1:


You can try using the base build Tools for GDK:

android { compileSdkVersion "Google Inc.:Glass Development Kit Preview:19" buildToolsVersion "19.1.0" }

Download Android 4.4.2 or API 19.

Or try using this link . It creates a new project of GDK, and you can check how gradle looks afterwards.



来源:https://stackoverflow.com/questions/40597536/glass-development-kit-installed-but-not-found-by-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!