插件Android支持中的例外:SAXParseException;文件过早结束

时间:2016-09-14 13:53:37

标签: java android windows android-studio android-studio-2.1

在Mac上临时处理我的项目后,我再次使用Windows上新提交的文件更新了我的SVN。

当我点击运行时,它会显示“正在初始化ADB ...”,它再也找不到我连接的Android手机了,它显示内部IDE错误屏幕右上角。当我点击它时,它显示以下错误:

Premature end of file.
org.xml.sax.SAXParseException; Premature end of file.
    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
    at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:195)
    at com.android.sdklib.devices.DeviceParser.parseImpl(DeviceParser.java:483)
    at com.android.sdklib.devices.DeviceParser.parse(DeviceParser.java:455)
    at com.android.sdklib.devices.DeviceManager.loadDevices(DeviceManager.java:649)
    at com.android.sdklib.devices.DeviceManager.initSysImgDevices(DeviceManager.java:385)
    at com.android.sdklib.devices.DeviceManager.initDevicesLists(DeviceManager.java:253)
    at com.android.sdklib.devices.DeviceManager.getDevice(DeviceManager.java:184)
    at com.android.sdklib.internal.avd.AvdManager.parseAvdInfo(AvdManager.java:1579)
    at com.android.sdklib.internal.avd.AvdManager.buildAvdList(AvdManager.java:1479)
    at com.android.sdklib.internal.avd.AvdManager.<init>(AvdManager.java:373)
    at com.android.sdklib.internal.avd.AvdManager.getInstance(AvdManager.java:411)
    at com.android.tools.idea.avdmanager.AvdManagerConnection.initIfNecessary(AvdManagerConnection.java:159)
    at com.android.tools.idea.avdmanager.AvdManagerConnection.getAvds(AvdManagerConnection.java:255)
    at com.android.tools.idea.run.editor.DevicePicker$3.run(DevicePicker.java:234)
    at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:366)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
    at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:55)



org.xml.sax.SAXParseException; Premature end of file.
    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
    at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:195)
    at com.android.sdklib.devices.DeviceParser.parseImpl(DeviceParser.java:483)
    at com.android.sdklib.devices.DeviceParser.parse(DeviceParser.java:455)
    at com.android.sdklib.devices.DeviceManager.loadDevices(DeviceManager.java:649)
    at com.android.sdklib.devices.DeviceManager.initSysImgDevices(DeviceManager.java:385)
    at com.android.sdklib.devices.DeviceManager.initDevicesLists(DeviceManager.java:253)
    at com.android.sdklib.devices.DeviceManager.getDevice(DeviceManager.java:184)
    at com.android.sdklib.internal.avd.AvdManager.parseAvdInfo(AvdManager.java:1579)
    at com.android.sdklib.internal.avd.AvdManager.buildAvdList(AvdManager.java:1479)
    at com.android.sdklib.internal.avd.AvdManager.<init>(AvdManager.java:373)
    at com.android.sdklib.internal.avd.AvdManager.getInstance(AvdManager.java:411)
    at com.android.tools.idea.avdmanager.AvdManagerConnection.initIfNecessary(AvdManagerConnection.java:159)
    at com.android.tools.idea.avdmanager.AvdManagerConnection.getAvds(AvdManagerConnection.java:255)
    at com.android.tools.idea.run.editor.DevicePicker$3.run(DevicePicker.java:234)
    at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:366)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
    at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:55)



org.xml.sax.SAXParseException; Premature end of file.
    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
    at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:195)
    at com.android.sdklib.devices.DeviceParser.parseImpl(DeviceParser.java:483)
    at com.android.sdklib.devices.DeviceParser.parse(DeviceParser.java:455)
    at com.android.sdklib.devices.DeviceManager.loadDevices(DeviceManager.java:649)
    at com.android.sdklib.devices.DeviceManager.initSysImgDevices(DeviceManager.java:385)
    at com.android.sdklib.devices.DeviceManager.initDevicesLists(DeviceManager.java:253)
    at com.android.sdklib.devices.DeviceManager.getDevice(DeviceManager.java:184)
    at com.android.sdklib.internal.avd.AvdManager.parseAvdInfo(AvdManager.java:1579)
    at com.android.sdklib.internal.avd.AvdManager.buildAvdList(AvdManager.java:1479)
    at com.android.sdklib.internal.avd.AvdManager.reloadAvds(AvdManager.java:725)
    at com.android.tools.idea.avdmanager.AvdManagerConnection.getAvds(AvdManagerConnection.java:260)
    at com.android.tools.idea.run.editor.DevicePicker$3.run(DevicePicker.java:234)
    at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:366)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
    at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:55)

我尝试删除.idea文件夹,清除缓存,清理项目并重新启动,但似乎没有任何效果。

有什么想法吗?

0 个答案:

没有答案