【问题标题】:Android Studio will not recognize Google Glass, however ADB willAndroid Studio 无法识别 Google Glass,但 ADB 会
【发布时间】:2016-05-10 09:23:58
【问题描述】:

我的谷歌眼镜有问题。

它不会在 android studio 中注册为设备,但是当我在终端中运行“adb devices”时,它会找到该设备并将其列为“设备”。

Android 工作室说“请配置 Android SDK”。我已经安装了所有东西,API 19 Glass Development kit,API 19,谷歌 USB 驱动等等。

编译 SDK 版本也指向 API 19, 构建工具版本 23.0.3。 库存储库:jcenter, flatDir { dirs 'prebuilt-libs' }

我的 gradle 指向正确的方向:

apply plugin: 'com.android.application'

 repositories {
    jcenter()
    flatDir {
        dirs 'prebuilt-libs'
    }
}

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

    defaultConfig {
        applicationId "com.example.thinknick.myapplication"
        minSdkVersion 19
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
}

到此为止,我尝试过重新安装Android studio,重新启动ADB,重新启动计算机,更改USB端口,重新插入设备,其他USB端口等。

环境是windows 10 64位。我知道可以使用的电缆,因为它可以在同事的 mac 上使用。

【问题讨论】:

  • 你在 ubuntu 中运行 Android Studio 吗...?
  • 不,windows 10.. 抱歉,忘记了细节
  • 您是否尝试使用 gradle wrapper 从命令行进行组装和安装?
  • 没有。我不知道该怎么做,谷歌搜索有点短。

标签: android adb google-glass


【解决方案1】:

我找到了解决方案,恐怕它太明显了,我也看了几个小时。我以管理员身份运行 Android Studio,现在运行完美。

耻辱

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多