`
javayestome
  • 浏览: 1040723 次
  • 性别: Icon_minigender_2
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

SDK is not loaded yet解决方法

阅读更多

部分网友可能会发现,更新了Android 1.5 SDK可能出现,Unknown error: SDK is not loaded yet的提示信息,同时还会有如下

trouble processing "java/awt/font/NumericShaper.class":

Attempt to include a core VM class in something other than a core library.It is likely that you have attempted to include the core library from a desktop virtual machine into an application, which will most assuredly not work. If you really intend to build a core library -- which is only appropriate as part of creating a full virtual machine binary, as opposed to compiling an application -- then use the "--core-library" option to suppress this error message. If you go ahead and use "--core-library" but are in fact building an application, then please be aware that your build will still fail at some point; you will simply be denied the pleasure of reading this helpful error message.

类似的还可能有1 error; aborting 以及Conversion to Dalvik format failed with error 1的错误信息,目前原因在在于引用的JAR Library存在问题,从Android1.5开始发现Google每次更新SDK时各种问题接种而来,可以尝试下面的方法解决:

创建一个空的工程类似Hello World,然后在该Project的根目录下面找到 .classpath 文件,覆盖到存在该错误的项目中,.classpath的完整内容为:

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="output" path="bin"/>
</classpath>

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics