Eclipse:警告:未知设备API版本 [英] Eclipse: WARNING: Unknown device API version

查看:55
本文介绍了Eclipse:警告:未知设备API版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到此问题标题中的错误.从我将手机从Samsung S4升级到S7时,它开始了.我已经搜索了StackOverflow(和Google),但没有找到有效的解决方案-许多答复都已经有5年以上的历史了.

I'm getting the error as in the title of this question. It started when I upgraded my phone from a Samsung S4 to an S7. I've searched StackOverflow (and google) and found no solutions that worked - many responses were 5+ years old.

我已经更新了SDK管理器中的所有内容.我已经重新启动,重新启动Eclipse,重启手机,重新连接新的USB电缆,重新启动ADB-都多次.我尝试重建/重新安装一些旧的应用程序,但都给出了相同的错误.看来是手机引起了问题(不幸的是我的旧S4死了,所以我无法尝试这样做.)

I've updated everything I could from the SDK Manager. I've rebooted, restarted Eclipse, power cycling phone, reconnecting new USB cable, restarting ADB -- all multiple times. I tried rebuilding/reinstalling some old apps but all give the same error. It seems like the phone is causing the problem (unfortunately my old S4 died so I can't try that).

其他有趣的工件:

(1)在DDMS中,设备显示为未知",

(1) In DDMS the device shows up as "unknown",

(2)Logcat现在不产生任何输出.

(2) Logcat now produces no output.

我已经在墙上不停地跳了一个星期,没有任何喜悦.有人可以提供任何建议吗?

I've been beating my head on the wall for a week, with no joy. Can anybody offer any suggestions?

推荐答案

您的问题是,基于Eclipse的旧版Android开发工具已针对现已过时的ADB版本开发.

Your problem is that the old Eclipse base Android development tools has been developed for an now outdated ADB version.

由于旧的DDMS与新的ADB API不兼容,因此DDMS和ADB之间的通信将不再起作用.如果您确实想让DDMS工作,则必须使用与其匹配的旧ADB版本.

The communication between DDMS and ADB will no longer work as the old DDMS is incompatible with the new ADB API. If you really want to get DDMS work you have to use an old ADB version that matches it.

但是,推荐的方法是删除DDMS和基于Eclipse的Android开发工具,然后切换到Android Studio.

However the recommended way would be to delete DDMS and the Eclipse based Android development tools and switch to Android Studio.

这篇关于Eclipse:警告:未知设备API版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆