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

时间: 2024-08-01 22:44:19

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

java.lang.AutoCloseable

java.lang.AutoCloseable和java.io.Closeable public interface AutoCloseable { void close() throws Exception; } public interface Closeable extends AutoCloseable { public void close() throws IOException; } java.lang.AutoCloseable是JDK7添加的新接口 AutoCloseable接

Eclipse打开弹出Faied to load the JNI shared library "C:\Program Files(x86)\java\jdk1.6.0_21\bin\..\jre\bin\client“的解决方法

今天下载了一个整合eclipse的安卓ADT,打开弹窗显示”C:\Program Files(x86)\java\jdk1.6.0_21\bin\..\jre\bin\client“ 这个路径很奇怪,于是网上查找了一下资料. 出现Faied to load the JNI shared library这类错误,一般有两种情况: 1,jdk的环境配置有问题 2,jdk与Eclispe的版本不一致(32位/64位) cmd中输入”java -version“能出现java版本信息说明配置是没有问题的

Spring context initialization failed with java.lang.IllegalArgumentException

spring3.x的项目+JDK8 用jetty运行报错,改用JDK6即可 (JDK8下只能运行spring4.0以上的项目) java.lang.IllegalArgumentException at org.springframework.asm.ClassReader.<init>(Unknown Source) at org.springframework.asm.ClassReader.<init>(Unknown Source) at org.springframewo

The type java.lang.AutoCloseable cannot be resolved. It is indirectly referenced from required .class files

出现问题: 原因: 这是一个“类型到java.lang.charsequence不能解决”的错误.这个主要是由于MyEclipse引用了不同版本的jdk工程印发的问题.我们都知道,每次新建一个工程时,MyEclipse都会让我们选择要使用的jdk版本,而我的电脑上有jdk1.6和jdk1.7和jdk1.9三个版本.所以当电脑上有多个版本的jdk时,开发环境会自动选择默认的Jre.所以我们通过以下的方案来解决这个错误: 解决方案:更换IDE或者更改JDK. 我提供一种解决方法:更换JDK版本. 具

启动Tomcat出现异常解决方案 java.lang.IllegalArgumentException: Document

启动Tomcat出现异常解决方案 java.lang.IllegalArgumentException: Document base D:\Software_Install\Program Files (x86)\apache-tomcat-6.0.39\webapps\host-manager does not exist or is not a readable directory 启动服务器,出现一下情况,是因为删除了tomcat中的项目,但是残留配置文件没有删除,解决方法:到服务器中(我

java.lang.IllegalArgumentException: Document base E:\Eclipse\workspace\.metadata\.plugins\org.eclips

1.错误描述 四月 13, 2015 5:56:55 下午 org.apache.catalina.core.AprLifecycleListener init 信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Java\jdk1.7.0_67\bi

?--Porg.springframework.beans.MethodInvocationException: Property &#39;username&#39; threw exception; nested exception is java.lang.NullPointerException

使用BoneCP作为连接池,在启动Tomcat报出以下异常: 一月 02, 2016 2:12:17 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:mynewdpi' did not find a

java.lang.IllegalStateException: class utils.filter.ContentFilter is not a javax.servlet.Filter

1.错误描述 2016-01-12 11:27:01.787:WARN:oejuc.AbstractLifeCycle:FAILED ContentFilter: java.lang.IllegalStateException: class utils.filter.ContentFilter is not a javax.servlet.Filter java.lang.IllegalStateException: class utils.filter.ContentFilter is not

JDK框架简析--java.lang包中的基础类库、基础数据类型

题记 JDK.Java Development Kit. 我们必须先认识到,JDK不过,不过一套Java基础类库而已,是Sun公司开发的基础类库,仅此而已,JDK本身和我们自行书写总结的类库,从技术含量来说.还是在一个层级上,它们都是须要被编译成字节码.在JRE中执行的,JDK编译后的结果就是jre/lib下的rt.jar,我们学习使用它的目的是加深对Java的理解,提高我们的Java编码水平. 本系列全部文章基于的JDK版本号都是1.7.16. 源代码下载地址:https://jdk7.jav