Collect preferences failed, class java/lang/AutoCloseable not found in D:\Program Files (x86)\Android\android-sdk\platforms\android-19\android.jar

Eclipse中出现这样的问题:Collect preferences failed, class java/lang/AutoCloseable not found in D:\Program Files (x86)\Android\android-sdk\platforms\android-19\android.jar

安卓手机通过数据线和电脑连接不能够在线调试。

 

问题解决:

将D:\android-sdk\sdk\tools\lib目录(安卓SDK的目录)下的plugin.prop文件修改一下

这个文件中的内容是:

# begin plugin.prop
plugin.version=20.0.0
# end plugin.prop

 

修改18.0.0即可.出现这种情况的原因是更新了新的SDK,但是没有完全更新下来。

参考:http://www.cnblogs.com/linlf03/p/3484181.html

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。