Android SDK 1.5-core-library build error问题解决方法  -  棒槌网@Android开发论坛 - Powere
来源:互联网 发布:身高 知乎 编辑:程序博客网 时间:2024/06/11 17:49
如果你手工配置build path,把sdk1.5的android.jar加入到某些工程中,你可能会遇到下面的编译错误:
> 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.
>
这意味着你想把一个桌面vm中的类运用到android应用程序中,比如java.awt.*, java.swing.*, java.bean等。
可用android包参见:available packages on android,这肯定是不行的。
为了解决这个问题,需要修改工程目录下的.classpath文件,把其中的path设置成下面的值即可:
<classpathentry kind="con"
path="com.android.ide.eclipse.adt.android_framework"/>
转自http://dev.10086.cn/cmdn/wiki/index.php?doc-view-3157.html
android开发论坛
棒槌网@Android相关文章推荐:
Android SDK 1.5 --core-library build error问题解决方法
ubuntu9.04上android sdk 1.5 安装与配置13320100271
Android 1.5 SDK与SDK开发教程- aikerlee的专栏-
Android 特刊 第一期 Andriod 1.5 SDK简介
android Unknown error: SDK is not loaded yet解决方法
android sdk source 1.5 至 2.2 下载
android 1.5 和 2.0 SDK的源代码
- Android SDK 1.5-core-library build error问题解决方法  -  棒槌网@Android开发论坛 - Powere
- Android SDK 1.5 "--core-library" build error问题解决方法
- SQLite的查询优化  -  棒槌网@Android开发论坛 - Powered by phpwind
- SQLite分页查询  -  棒槌网@Android开发论坛 - Powered by phpwind
- Android 0.9移植到Android 1.0  -  棒槌网@Android开发论坛 - Powered by phpwind
- adb(android debug bridge)工具的使用方法  -  棒槌网@Android开发论坛 - Powered by phpwind
- Anddroid Sqlite数据库编程-增删改查实例  -  棒槌网@Android开发论坛 - Powered by phpwind
- jni获取mac地址的问题  -  棒槌网@Android开发论坛 - Powered by phpwind
- Android中文翻译组——Android中文API合集  -  棒槌网@Android开发论坛 - Powered by phpwind
- Android-网络交互之客户端请求服务端资源-stoneson的专栏-  -  棒槌网@Android开发论坛 - Powered by phpwind
- Android(五)数据存储之五网络多线程断点下载-世事如棋,乾坤莫测,笑 ...  -  棒槌网@Android开发论坛 - Powered by
- Android2.2浏览器插件的surface加载过程的改变  -  棒槌网@Android开发论坛 - Powered by phpwind
- 推荐Android开发论坛--棒槌网,国内发展最快的Android开发社区
- 同学开的棒槌网-android开发
- Build Android-openssl library
- Build Android SDK
- android编译系统 build/core
- Android build Error
- 菜鸟学习网站小收藏
- MySQL慢查询的两种分析方案 slow sql
- Q:我欲开发Linux操作系统下PCI的驱动程序,但是当我下载WinDriver,会出现「You don't download kernel source yet」窗口,请问如何解决?
- mapkit 中有关两地点距离计算
- flex 各组件对应的样式属性
- Android SDK 1.5-core-library build error问题解决方法  -  棒槌网@Android开发论坛 - Powere
- Linux线程池
- Q:当我将USB设备链接至计算机时,WinDriver会自动显示出USB的ID,但当我在执行热插入时,该USB的ID会变更,因此我无法确认该ID是指何者设备。请问WinDriver是否可以定义该设备的ID内容在执行热插入前后皆是相同的?
- winform杀excel进程(判断cpu后为0时)的方法
- Linux线程池
- TCP并发服务器
- POI简介-HSSH使用
- ExecuteTransaction
- 企业库:异常处理模块深入研究