我正在使用Flash Builder 4.6与Flex 4.6.0 SDK覆盖AIR 3.8 SDK,我无法进行导出构建,也无法在移动设备中进行调试。在设备中调试时出错。
FB 4.6错误日志:
dx tool failed:Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
java.lang.Exception
at com.adobe.flexbuilder.project.internal.FlexProjectCore.createErrorStatus(FlexProjectCore.java:1019)
at com.adobe.flexbuilder.util.logging.GlobalLogImpl.log(GlobalLogImpl.java:66)
at com.adobe.flexbuilder.util.logging.GlobalLog.log(GlobalLog.java:52)
at com.adobe.flexbuilder.multisdk.apollo.export.AIRAPKPackager.create(AIRAPKPackager.java:190)
at com.adobe.flexide.multiplatform.android.launching.ADBLaunchHandler.doPackage(ADBLaunchHandler.java:447)
at com.adobe.flexide.multiplatform.android.launching.ADBLaunchHandler.launch(ADBLaunchHandler.java:250)
at com.adobe.flexide.launching.multiplatform.MultiPlatformLaunchDelegate.launch(MultiPlatformLaunchDelegate.java:191)
at com.adobe.flexide.launching.AbstractFlexLaunchDelegate.launch(AbstractFlexLaunchDelegate.java:244)
at com.adobe.flexide.launching.AbstractFlexLaunchDelegate.launch(AbstractFlexLaunchDelegate.java:134)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:928)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1132)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
我的Flex 4.6.0 SDK没有遇到这个问题。提前谢谢。
答案 0 :(得分:0)
我的FlashBuilder 4.6(Flex 4.6.0 SDK,AIR SDK 3.9)存在同样的问题
打开FlashBuilder.ini文件并尝试更改以下值:
-Xms1520m -Xmx1520m -XX:MaxPermSize参数=512米 -XX:PermSize =64米
有了这个值,我可以解决这个问题。 最好的问候