我顺利安装了eclipse的ADT插件。当我创建我的第一个 Android 项目时,我马上就得到了下面的编译错误。我发现它sun/security/x509/X500Name
在 rt.jar 中,所以我尝试将它添加到我的构建路径中,但这会导致项目在编译时占用大量内存(我觉得这很不寻常)。有没有人能够解决这个问题?我正在使用 jdk1.6.0_24。我看到其他模糊的帖子说我需要使用 Sun JDK。我已经在使用它并且我的 JAVA_HOME 中已经有了它。我很感激你能提供的任何帮助。谢谢。
java.lang.NoClassDefFoundError: sun/security/x509/X500Name
at com.android.sdklib.internal.build.SignedJarBuilder.writeSignatureBlock(Unknown Source)
at com.android.sdklib.internal.build.SignedJarBuilder.close(Unknown Source)
at com.android.sdklib.build.ApkBuilder.sealApk(Unknown Source)
at com.android.ide.eclipse.adt.internal.build.BuildHelper.finalPackage(Unknown Source)
at com.android.ide.eclipse.adt.internal.build.BuildHelper.finalDebugPackage(Unknown Source)
at com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.build(Unknown Source)
at org.eclipse.core.internal.events.BuildManager$2.run(Unknown Source)
at org.eclipse.core.runtime.SafeRunner.run(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source)
at org.eclipse.core.internal.events.BuildManager$1.run(Unknown Source)
at org.eclipse.core.runtime.SafeRunner.run(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.build(Unknown Source)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(Unknown Source)
at org.eclipse.core.internal.events.AutoBuildJob.run(Unknown Source)
at org.eclipse.core.internal.jobs.Worker.run(Unknown Source)