简体   繁体   English

Android Studio 无法识别 Google Glass,但 ADB 会

[英]Android Studio will not recognize Google Glass, however ADB will

I have a problem with my google glass'.我的谷歌眼镜有问题”。

It will not register in android studio as a device, but when I run "adb devices" in terminal it finds the device and list it as "device".它不会在 android studio 中注册为设备,但是当我在终端中运行“adb devices”时,它会找到该设备并将其列为“设备”。

Android studio says "please configure Android SDK". Android 工作室说“请配置 Android SDK”。 I have everything installed, API 19 Glass Development kit, API 19 in general, Google usb driver, etc.我已经安装了所有东西,API 19 Glass 开发套件,API 19 一般,谷歌 USB 驱动程序等。

Compile Sdk Version points to API 19 aswell, build tools version 23.0.3.编译 Sdk 版本也指向 API 19,构建工具版本 23.0.3。 Library respository: jcenter, flatDir { dirs 'prebuilt-libs' }库库:jcenter, flatDir { dirs 'prebuilt-libs' }

My gradle is pointing the right way:我的 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'])
}

I'm at ends here, I have tried reinstalling Android studio, restarting ADB, restarting the computer, change USB ports, re-plug the device, other USB ports, etc.我到此为止了,我尝试重新安装 Android Studio、重新启动 ADB、重新启动计算机、更改 USB 端口、重新插入设备、其他 USB 端口等。

The envoirnment is windows 10 64-bit.环境是 Windows 10 64 位。 The cable I know to work, because it works on a colleagues mac.我知道可以使用的电缆,因为它适用于同事的 mac。

I found the solution, and I'm afraid it was too obvious for me too see for several hours.我找到了解决方案,恐怕这对我来说太明显了,也看了几个小时。 I ran Android studio as administrator, and it runs perfectly now.我以管理员身份运行 Android Studio,现在运行完美。

walk of shame步行耻辱

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

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