简体   繁体   English

Android Studio 1.3.1和Google Glass - 创建新项目| 定位Android设备| 玻璃未安装

[英]Android Studio 1.3.1 and Google Glass — Create New Project | Target Android Devices | Glass Not Installed

When attempting to create a new project in Android Studio 1.3.1 (Win 8.1), I am not able to select " Glass " on the " Target Android Devices " screen. 尝试在Android Studio 1.3.1(Win 8.1)中创建新项目时,我无法在“ 目标Android设备 ”屏幕上选择“ Glass ”。 The Glass SDK is not selectable (disabled) and shows "Glass (Not Installed)". Glass SDK无法选择(禁用)并显示“Glass(未安装)”。

However, when I examine the SDK Manager, it shows the "Glass Development Kit Preview, Android 19, Rev 11" listed under Android 4.4 (KitKat) as installed. 但是,当我检查SDK Manager时,它会显示安装在Android 4.4(KitKat)下的“Glass Development Kit Preview,Android 19,Rev 11”。 I see it as Installed in both the new Default Settings | 我在新的默认设置中看到它已安装 Appearance & Behavior | 外观与行为| System Settings | 系统设置| Android SDK and in the old standalone SDK Manager. Android SDK和旧的独立SDK Manager。

I have already tried deleting the Glass Development Kit Preview and re-installing it, but that has not helped. 我已经尝试删除Glass Development Kit Preview并重新安装它,但这没有帮助。 Additionally, all my old Glass projects still build and run just fine. 此外,我所有的旧Glass项目仍然可以构建并运行得很好。

Per the advice in Google Glass (Not installed) , I have verified that I have installed the latest and greatest Android SDK Tools, Android SDK Platform-tools, and Android SDK Build-tools (for all Releases from 20-23). 根据Google Glass中的建议(未安装) ,我已经确认我已经安装了最新最好的Android SDK工具,Android SDK平台工具和Android SDK构建工具(适用于20-23的所有版本)。 I have also verified (via the Default Settings | Appearance & Behavior | System Settings | Android SDK screen) and in File | 我还验证了(通过默认设置|外观和行为|系统设置| Android SDK屏幕)和文件| Project Structure | 项目结构| SDK Location that my Android SDK is in the correct and expected location (ie, not in the same folder as Android Studio). 我的Android SDK位于正确和预期位置的SDK位置(即,与Android Studio不在同一文件夹中)。

Any ideas on how to get Android Studio to recognize the Glass SDK is installed? 有关如何让Android Studio识别Glass SDK的任何想法都已安装?

I had this exact problem until yesterday. 直到昨天我才遇到这个问题。 The ultimate fix was a downgrade from Android Studio 1.3.1 to 1.2.1.1 最终解决方案是从Android Studio 1.3.1降级到1.2.1.1

Supposedly some of the files that Glass requires are no longer included in the newest version. 据推测,Glass所需的一些文件不再包含在最新版本中。 Another issue that you will run into when installing the older version of Android Studio is that a list of errors appears when you run it for the first time. 安装旧版Android Studio时遇到的另一个问题是,第一次运行时会出现错误列表。 Simply turn off your wifi for the first time that you open it and you will be golden. 只需在您第一次打开它时关闭无线网络就可以实现金色。 You can turn on your wifi after the application opens and will not receive the errors again. 您可以在应用程序打开后打开wifi,并且不会再次收到错误。

Frustrating fix, I know. 令人沮丧的是,我知道。 Good luck! 祝好运! Feel free to leave a reply if this does not work. 如果不起作用,请随时留言。

This has been fixed in the most recent Android Studio 1.5 preview. 这已在最新的Android Studio 1.5预览中修复。 If you go to your updates settings, and change to the canary channel you will be able to install the update, and build GDK apps again. 如果您转到更新设置,并切换到金丝雀频道,您将能够安装更新,并再次构建GDK应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM