简体   繁体   English

Aptana 错误:解析 android-22 的数据失败

[英]Aptana error: parsing data for android-22 failed

After bringing the versions of JRE/JDK/ADT to the same (at least compatible) level, I still encounter the above mentioned error in Aptana Studio 3.在将 JRE/JDK/ADT 的版本调至相同(至少兼容)级别后,我在 Aptana Studio 3 中仍然遇到上述错误。

Java and JDK are 1.7. Java 和 JDK 是 1.7。

During startup Aptana tries to rebuild and stops with this error message.在启动期间,Aptana 尝试重建并停止并显示此错误消息。

Update:更新:

After "Android SDK: Resolving Error Markers" Aptana status changes to "Building Workspace", "Initializing Index" and finally stops with "Problem Occurred" message:在“Android SDK: Resolving Error Markers”Aptana 状态更改为“Building Workspace”、“Initializing Index”并最终停止并显示“Problem Occurred”消息后:

'Loading data for Android 5.1.1' has encountered a problem, 'Loading data for Android 5.1.1' 遇到问题,
Parsing data for andoid-22 failed.为 andoid-22 解析数据失败。

Details:细节:

Parsing Data for android-22 failed解析 android-22 的数据失败
Unsupported major.minor version 51.0不支持的 Major.minor 版本 51.0

Research brought up so far that there's an incompatibility with Java 1.8, which I deactivated.到目前为止,研究表明与 Java 1.8 不兼容,我已停用它。 Since I am rather a semi professional programmer, I have not much knowledge of how to handle such dependencies.由于我是一个半专业的程序员,因此我对如何处理这些依赖关系知之甚少。

I had the same issue.我遇到过同样的问题。

I believe it was related to quite outdated Eclipse version - I was still trying to build with Eclipse Indigo.我相信这与相当过时的 Eclipse 版本有关 - 我仍在尝试使用 Eclipse Indigo 进行构建。

Now I have the following setup working for me:现在我有以下设置对我有用:

  • I installed Eclipse Luna Java developer version我安装了 Eclipse Luna Java 开发者版
  • I installed the ADT plugin (I believe the URL changed since earlier versions): https://dl-ssl.google.com/android/eclipse/我安装了 ADT 插件(我相信 URL 自从早期版本以来发生了变化): https : //dl-ssl.google.com/android/eclipse/
  • I have JDK and JRE latest of 1.7 (32 bit as my entire system is 32 bit).我有最新的 1.7 版 JDK 和 JRE(32 位,因为我的整个系统是 32 位)。

With this the error is gone and I am able to build with Android target level 22.这样错误就消失了,我可以使用 Android 目标级别 22 进行构建。

PS: By the way the error is not related to aptana at all as far as I understand. PS:顺便说一下,据我所知,该错误与 aptana 根本无关。

"Answer in progress": “正在回答”:

Uninstalling all of the Android-22 SDKs for now solved the error message thing, but I think that is just the workaround, not the final solution.现在卸载所有 Android-22 SDK 解决了错误消息问题,但我认为这只是解决方法,而不是最终解决方案。

在此处输入图片说明

I was getting this same error in eclipse as even though a 1.8 JRE was installed and the system default, eclipse was still actually starting on a 1.6 JRE.我在 eclipse 中遇到了同样的错误,即使安装了 1.8 JRE 并且系统默认,eclipse 实际上仍然在 1.6 JRE 上启动。

Check to make sure your Aptana is running on a 1.7 or 1.8 JRE检查以确保您的 Aptana 在 1.7 或 1.8 JRE 上运行

Similar to eclipse, with Aptana you edit the AptanaStudio3.ini file to set a specific JRE to use.与 Eclipse 类似,您可以使用 Aptana 编辑 AptanaStudio3.ini 文件以设置要使用的特定 JRE。

Add the lines:添加以下行:

-vm
C:\Program Files\Java\jdk1.8.0_25\jre\bin\javaw.exe

Where C:\\Program Files\\Java\\jdk1.8.0_25\\jre\\bin\\ is the appropriate path to your 1.7/1.8 JRE.其中 C:\\Program Files\\Java\\jdk1.8.0_25\\jre\\bin\\ 是 1.7/1.8 JRE 的适当路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM