简体   繁体   English

适用于Android Studio 3.0.1的GDK吗?

[英]GDK for Android Studio 3.0.1?

I'm an Android newbie tasked with creating a simple app for Google Glass XE23. 我是一位Android新手,负责为Google Glass XE23创建一个简单的应用程序。 I have downloaded & installed Android Studio 3.0.1, but find nothing in it related to Glass. 我已经下载并安装了Android Studio 3.0.1,但是在其中找不到与Glass相关的内容。 ALL search results are old and refer to much older versions of AS. 所有搜索结果都是旧的,并且引用的AS版本要旧得多。 That includes anything I find at Google's Glass developer's site. 其中包括我在Google Glass开发者网站上找到的所有内容。 The AS Messages window contains: “ AS消息”窗口包含:

Gradle 'gdk-apidemo-sample' project refresh failed Gradle“ gdk-apidemo-sample”项目刷新失败

Error:failed to find target Google Inc.:Glass Development Kit Preview:19 : C:\\Users\\Allan\\AppData\\Local\\Android\\Sdk 错误:无法找到目标Google Inc .:玻璃开发工具包预览:19:C:\\ Users \\ Allan \\ AppData \\ Local \\ Android \\ Sdk

How/where do I get the GDK package? 如何/在哪里获得GDK软件包?

In the Android Sdk Manager make sure to check Show Package Details . Android Sdk Manager确保选中Show Package Details Then you see all package options and can install the GDK easily. 然后,您会看到所有软件包选项,并且可以轻松安装GDK。

Android SDK Manager can be found at Settings > Appearance & Behavior > System Settings > Android SDK . 可以在Settings > Appearance & Behavior > System Settings > Android SDK找到Android SDK Manager。

Something that worked for me was going to the apps build.gradle file and changing the compileSdkVersion to "Google Inc.:Glass Development Kit Preview:19". 对我有用的是转到应用程序build.gradle文件,并将compileSdkVersion更改为“ Google Inc.:Glass Development Kit Preview:19”。 Android Studio should throw an error and prompt you to install the module using component installer. Android Studio应该会引发错误,并提示您使用组件安装程序安装模块。

Here's what that looks like: 看起来像这样:

compileSdkVersion "Google Inc.:Glass Development Kit Preview:19"

You should get a prompt after trying to sync the gradle files again. 尝试再次同步gradle文件后,您应该得到提示。

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

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