【问题标题】:ADB doesn't see my Nexus 7 running on Android 6.0.1ADB 没有看到我的 Nexus 7 在 Android 6.0.1 上运行
【发布时间】:2016-03-09 09:05:22
【问题描述】:

我正在开发一个 Android 应用程序并使用运行 Android 6.0.1 的 Nexus 7 设备进行测试。

问题是当我尝试使用此设备测试 ADB 时没有看到它! 如果你能帮助我,这是我的 build.gradle 文件:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"
    useLibrary 'org.apache.http.legacy'

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

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'org.apache.httpcomponents:httpclient:4.5'
}

【问题讨论】:

  • 你使用什么操作系统?终端中“adb devices”的输出是什么?
  • 它的硬件问题。不是你的gradle。
  • 尝试每个 USB 端口。由于故障,有时会出现 USB 问题。
  • 这是关于激活开发者模式的人,无论如何谢谢你;)

标签: android adb android-6.0-marshmallow nexus-7


【解决方案1】:

您需要安装 Google USB 驱动程序才能连接到 Nexus 设备,请参阅:http://developer.android.com/sdk/win-usb.html

您还需要激活开发者模式,方法是多次点击关于手机下的版本号

完成此操作后,您可以访问 开发人员选项,您可以打开 USB 调试,当您将设备连接到电脑时,将弹出一个对话框以允许此操作电脑USB调试。

如果您的设备连接成功,您应该会收到一个通知,提示 USB 调试已连接

是这样吗?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-02-21
    • 2013-12-05
    • 2012-08-12
    • 1970-01-01
    • 2012-10-11
    • 1970-01-01
    • 2016-06-04
    • 1970-01-01
    相关资源
    最近更新 更多