内部错误当更新Android工作室

内部错误当更新Android工作室

本文介绍了内部错误当更新Android工作室的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每一次我尝试更新的Andr​​oid工作室它下载,然后这个弹出:

Every time I try to update Android Studio it downloads and then this pops up:

Internal error. Please report to http://code.google.com/p/android/issues

java.io.IOException: Cannot restart application: Can't obtain static newInstance method for class com.sun.jna.Structure
    at com.intellij.util.Restarter.scheduleRestart(Restarter.java:76)
    at com.intellij.idea.Main.installPatch(Main.java:184)
    at com.intellij.idea.Main.main(Main.java:73)
Caused by: java.lang.UnsatisfiedLinkError: Can't obtain static newInstance method for class com.sun.jna.Structure
    at com.sun.jna.Native.initIDs(Native Method)
    at com.sun.jna.Native.<clinit>(Native.java:135)
    at com.intellij.util.Restarter.restartOnWindows(Restarter.java:106)
    at com.intellij.util.Restarter.scheduleRestart(Restarter.java:67)
    ... 2 more

2014-11-06 14:31:23 [Patch] Original patch exists: C:\Users\Aidan\AppData\Local\Temp\jetbrains.patch.jar.androidstudio
2014-11-06 14:31:23 [Patch] Restarted cmd: [C:\Users\Aidan\AppData\Local\Temp\VistaLauncher8848951449880199676.exe, C:\Program Files\Java\jdk1.8.0_11\jre\bin\java, -Xmx500m, -classpath, C:\Users\Aidan\AppData\Local\Temp\jetbrains.patch.jar.androidstudio_copy;C:\Users\Aidan\AppData\Local\Temp\log4j.jar.AndroidStudio_copy, -Djava.io.tmpdir=C:\Users\Aidan\AppData\Local\Temp\, -Didea.updater.log=C:\Users\Aidan\.AndroidStudioBeta\system\log, -Dswing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel, com.intellij.updater.Runner, install, D:\Android Studio]
2014-11-06 14:31:23 Exception: java.io.IOException: Cannot restart application: Can't obtain static newInstance method for class com.sun.jna.Structure

我总是最后从网站上下载更新,删除原来的,然后提取新的版本旁边的SDK文件夹。有什么办法解决这一问题?

I always end up downloading the update from the site, deleting the original, then extracting the new version alongside the sdk folder. Is there any way to fix this?

推荐答案

问题解决了。排序的..

Problem solved. Sort of..

添加一行 -Djna.nosys = TRUE 来的studio.vmoptions文件中的/ bin文件夹固定我的问题,我现在已更新。我发现从这里的解决方案:

Adding the line -Djna.nosys=true to the studio.vmoptions file in the /bin folder fixed my problem and I am now updated. I found the solution from here: https://code.google.com/p/android/issues/detail?id=78656

这篇关于内部错误当更新Android工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 14:07