Sma*_*esy 16 android gradle google-glass android-studio google-gdk
我正在尝试将新的Google Glass开发套件与Android Studio配合使用.不幸的是,我没有取得多大成功.
我收到错误:"Gradle:package com.google.android.glass.touchpad不存在"
我已经将清单中的uses-library添加如下:
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme" >
<uses-library
android:name="com.google.android.glass"
android:required="true" />
<activity
android:name="com.glass.test.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
Run Code Online (Sandbox Code Playgroud)
然后我将gdk.jar添加到libs目录中.我已将以下内容添加到build.gradle的依赖项部分.
dependencies {
compile files('libs/gdk.jar')
}
Run Code Online (Sandbox Code Playgroud)
任何帮助都将非常感激.
Ton*_*ato 29
更改compileSdkVersion你的build.gradle文件直接引用GDK附加:
android {
compileSdkVersion "Google Inc.:Glass Development Kit Preview:19"
buildToolsVersion "19.0.2"
// other stuff...
}
Run Code Online (Sandbox Code Playgroud)
(buildToolsVersion如果您安装了更高版本的SDK,则可能比19.0.2更新,只要它至少为19.0.2.)
| 归档时间: |
|
| 查看次数: |
10305 次 |
| 最近记录: |