android 常见的一些出错的解决办法

一,

出现ERROR: the user data image is used by another emulator. aborting

原因是:你上次没有将该模拟器正常关闭导致的,他会默认锁定该模拟器还是在运行,资源被占有了 解决方法: 先进入目录: /Documents and Settings / 用户 / .android /的AVD / *设备* / (比如我的目录是:C:\Documents and Settings\Administrator\.android\avd\android2.0.avd) 然后删去以.lock结尾的文件夹就行(我简单解释下为什么要删除这些文件呢,其实.lock是加锁,如果程序崩溃等原因导致无法清除这些以.lock结 尾的文件夹,就会出现这个问题,也就是这个avd的锁没有被释放,导致avd manager以为这个avd正在使用当中。

二,

Could not find *.apk在android1.5中的解决办法



Could not find *.apk在android1.5中的解决办法

1、选择properties->java build path->libraries,把默认的andraid包去掉

2、选择左侧的android标签,在target中选择android1.1或android1.5,确定

3、在项目上但就右键,选择android tools->Fix project properties

完成后就可以了。

三,

[2010-10-09 09:06:58 - MulThreadDownload]
trouble processing "java/net/DatagramPacket.class":
[2010-10-09 09:06:58 - MulThreadDownload]
Attempt to include a core class (java.* or javax.*) in something other
than a core library. It is likely that you have attempted to include
in an application the core library (or a part thereof) from a desktop
virtual machine. This will most assuredly not work. At a minimum, it
jeopardizes the compatibility of your app with future versions of the
platform. It is also often of questionable legality.

If you really intend to build a core library -- which is only
appropriate as part of creating a full virtual machine distribution,
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 be forewarned that your application will still fail
to build or run, at some point. Please be prepared for angry customers
who find, for example, that your application ceases to function once
they upgrade their operating system. You will be to blame for this
problem.

If you are legitimately using some code that happens to be in a core
package, then the easiest safe alternative you have is to repackage
that code. That is, move the classes in question into your own package
namespace. This means that they will never be in conflict with core
system classes. If you find that you cannot do this, then that is an
indication that the path you are on will ultimately lead to pain,
suffering, grief, and lamentation.

[2010-10-09 09:06:58 - MulThreadDownload]1 error; aborting
[2010-10-09 09:06:58 - MulThreadDownload]Conversion to Dalvik format failed with error 1

解决办法:

这意味着你想把一个桌面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"/>

更多相关文章

  1. 继承ListActivity报错的可能原因
  2. android 真机 安装 模拟器 DevTools Development
  3. 史上最强劲之android模拟器命令详解
  4. Android加载SD卡目录,文件夹遍历,图片设置,设置文件对应打开方式等
  5. android最快的模拟器
  6. Android Studio启动模拟器时老是黑屏,显示“Android”字样
  7. Android 模拟器上安装APK步骤
  8. android studio 安装模拟器报错 intel HAXM

随机推荐

  1. Android的Socket通信编程实例
  2. Android事件分发机制完全解析,带你从源码
  3. Android的事件简介
  4. Android(安卓)UI【android 仿微信、QQ聊
  5. Android中View和ViewGroup介绍
  6. 一个初级程序员要学会的东西
  7. [置顶] [Android基础]Android中ListView详
  8. Android(安卓)XmlPullParser工具解析
  9. spring for android
  10. Android系统启动过程