0

我需要将 Android 源代码转换为 Objective C

但它显示错误:

java -Xbootclasspath:$J2OBJC_HOME/lib/jre_emul.jar -jar $J2OBJC_HOME/lib/j2objc.jar j2objcc

Invalid layout of java.lang.String at value

#

# A fatal error has been detected by the Java Runtime Environment:

#

#  Internal Error (javaClasses.cpp:127), pid=575, tid=4867

#  fatal error: Invalid layout of preloaded class

#

# JRE version:  (8.0_51-b16) (build )

# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.51-b03 mixed mode bsd-amd64 compressed oops)

# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

#

# An error report file with more information is saved as:

# /Users/emaar/AndroidStudioProjects/TestBuild/app/src/main/java/com/emaar/app/testbuild/hs_err_pid575.log

#

# If you would like to submit a bug report, please visit:

#   http://bugreport.java.com/bugreport/crash.jsp

#

Abort trap: 6

任何设置(JDK 8、Maven、SDK、Android Studio、Gradle、J2OBJC,...)

如何解决?

4

1 回答 1

1

“j2objcc”不是 Java 源文件。如果在没有它的情况下运行命令,将显示 j2objc 的有效用法和标志。

于 2015-10-07T18:10:25.307 回答