Error: device offline(错误:设备离线)
问题描述
模拟器正在运行.但是当我在我的 shell 中编写 adb shell 时,我得到:
The emulator is running. But when I write adb shell in my shell I get:
错误:设备离线
这是什么原因?我该如何摆脱它?
What is the reason for this? How do I get rid of it?
推荐答案
如果adb devices"列出了您的设备,但作为离线",您的路径可能会导致 adb 的旧版本(例如 1.0.29)出现问题使用最新的 Android 4 设备.确保adb 版本"返回 1.0.31 或更高版本.从 Android 4.2.2 开始,您必须在您的设备上确认它已连接到受信任的计算机.它适用于 adb 1.0.31 及更高版本.
If "adb devices" lists your device but as "offline" chances are your path leads to an old version of adb (eg 1.0.29) which has problems with latest Android 4 devices. Make sure "adb version" returns 1.0.31 or greater. Starting with Android 4.2.2, you must confirm on your device that it is being attached to a trusted computer. It will work with adb version 1.0.31 and above.
这篇关于错误:设备离线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:错误:设备离线
基础教程推荐
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
