【问题标题】:Android. adb tcpip 5555 : error: device not found. win8 platform安卓。 adb tcpip 5555:错误:找不到设备。 win8平台
【发布时间】:2014-07-17 15:51:51
【问题描述】:

我是 Android 开发的新手。我使用运行 Windows 8.1 Pro 的戴尔笔记本电脑作为开发机器,使用运行 Android 4.4.4 的 Moto E 作为测试设备。 在 Eclipse 中运行应用程序时,会弹出 Android AVD 错误,提示“未找到兼容目标”。我在 Android 设备选择器中找不到我正在运行的 android 设备。我已经使用 USB 连接了它。 USB 调试已启用。我不知道我哪里错了。 我尝试通过 cmd 使用无线连接。 adb tcpip 5555 给出错误:找不到设备。

我已经尝试了互联网上所有可用的修复/解决方法。 1. adb kill-server 后跟 adb start-server 2.重启cmd 3. 检查驱动程序是否是最新的。 4. 设备管理器确实显示了我的设备:这意味着该设备确实已连接。

有什么方法可以检查我哪里出错了?为什么找不到设备连接?

我已从https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/88481 下载了最新的驱动程序。我正在使用从http://developer.android.com/sdk/index.html 下载的 Eclipse ADT Bundle 进行应用程序开发。

我已经关注了https://stackoverflow.com/questions/21408674/adb-error-device-not-found中给出的所有链接

AndroidManifest

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:

android="http://schemas.android.com/apk/res/android"
    package="com.example.helloworld"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="21" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name=".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>

</manifest>

【问题讨论】:

    标签: android adb windows-8.1


    【解决方案1】:

    我认为您的问题是无法安装 APK 未连接您的真实设备或模拟器。你可以检查你的 AndroidManifest.xml targetApiVersion=?因为如果您将 api 19 设置为低于该值,则会导致不受支持。

    【讨论】:

    • 上面写着 21. android:minSdkVersion="8" android:targetSdkVersion="21"
    • go sdk Manager 安装 api 文件。 @neha
    • 运行 SDK Manager 额外安装 USB 驱动,然后尝试在 adb shell 环境中关闭/打开和 adb kill-server adb devices
    • 我已经完成了 17Coder @谁完成了所有这些工作。 adb shell 也给出错误:未找到设备
    • 你有安装 Moto E 的驱动吗?
    【解决方案2】:

    创建支持 android-4(Android 1.6) 的 AVD 或将您的 android-4 目标更改为 android-8。

    如何创建新的 AVD?

    在 Eclipse 上,[Window> Android AVD Manager] 选择,

    你按下[new]按钮,你可以创建新的Android虚拟设备

    Managing AVDs with AVD Manager here

    【讨论】:

    • 它说:不幸的是,HelloWorld 已停止。
    • @neha 表示模拟器正在运行。检查正确的清单文件和 xml。
    • 我已经粘贴了清单文件的内容。你能帮我找出问题所在吗?
    • 你的清单是正确的。日志猫?在那里我会找出究竟是什么错误来了..
    • 按照这个链接一步一步复制粘贴 ka 代码到 Hello World 程序中。希望运行后你的 hello world 可以工作。tutorialspoint.com/android/android_hello_world_example.htm
    猜你喜欢
    • 2021-05-26
    • 2020-08-25
    • 1970-01-01
    • 1970-01-01
    • 2013-09-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-06-26
    相关资源
    最近更新 更多