Android开发环境及工具常见的错误集锦

/

1.MapJarInstallation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY

ERROR/PackageManager(556): Package irdc.ex10_02 requires unavailable shared library com.google.android.maps; ignoring!

 

在把apk文件手动安装到模拟器的时候,抛出安装异常INSTALL_FAILED_MISSING_SHARED_LIBRARY,经查发现是模拟器对于的API不匹配,设置成合适的API后正常。

源文档 <http://archive.cnblogs.com/a/1974750/>

 

新建一个模拟器,然后在Target里面选择Google APIs(Google Inc.) -API Level 7 这样,调试的时候用这个模拟器就好了

 

/

2.WTK错误:java.lang.UnsatisfiedLinkError: C:/WTK2.5.2_01/bin/sublime.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

问题所在:

主要是在64位的系统下安装的虚拟机是64位的,而WTKsublime.dll不能在64位的平台下加载64位的虚拟机,只能加载32位的。由于WTK在安装的时候加载的64虚拟机的地址,它找到的是64位的虚拟机,所以它提示不能加载32位的虚拟机(在目录下没有32的虚拟机)。

解决方案:

1.重新下载一个32位的虚拟机,例如:jre-6u23-windows-i586.exe

2.安装虚拟机,目录所在位置——例如:C:/Java/jre-6u23-windows-i586

2.卸载WTK

3.安装WTK,虚拟机地址,选择2步骤,的目录地址

4.重启eclipse,找到设备管理器,更新模拟器位置。

5.OK

源文档 <http://blog.csdn.net/gumanren/article/details/6455991>

 

/

3.ADBADB server didn't ACK

errors:

* daemon not running. starting it now *

ADB server didn't ACK

* failed to start daemon *

解决办法:

(1)查看任务管理器,关闭所有adb.exe

(2)重启eclipse即可

源文档 <http://www.cmd100.com/bbs/forum.php?mod=viewthread&tid=3915>

 

/

4.TFS调试运行Eclipse插件遇到的问题:The editor class could not be instantiated.

在开发Eclipse插件,调试运行插件时大家可能会遇到这样的问题:

"Unable to create this part due to an internal error. Reason for the failure: The editor class could not be instantiated. This usually indicates that the editor's class name was mistyped in plugin.xml."

 

我在开发是出现这种问题主要是因为重新建立了一个新的插件项目,项目名称与原来删除的项目名称相同导致。

 

具体解决办法如下:

1、找到运行插件项目的workspace(注意:不是你开发插件运行的Eclipseworkspace),一般目录名称为“runtime-EclipseApplication”。

2、找到后进入目录“.metadata\.plugins”察看是否有你要运行的插件的名称,如“XXX”,把这个目录删除即可,简单方法是把“.metadata\.plugins”中的全部目录删除。

3、再执行插件项目,OK了:)

源文档 <http://www.blogjava.net/hengheng123456789/articles/75004.html>

Failed】以上方法未成功解决。

 

/

5.ADB

计算机生成了可选文字: 吞adb.exe…卜二已停止工作~i心抽圃adb.eXe出现了一个问题.导致程序停止正常工作。请关闭该程序。+关闭程序+调试程序

任务器结束adb.exe后,重启adb.exe

 

/

6.【】

Description        Resource        Path        Location        Type

Unparsed aapt error(s)! Check the console for output.

 

 

 

/

7.TFS

Could not open the editor: The editor class could not be instantiated. This usually indicates a missing no-arg constructor or that the editor's class name was mistyped in plugin.xml.

计算机生成了可选文字: 心·毅瞬茹潞豁鲤恻~卿坐鲤噢些画匹些巨巫困回java.lang.NoClassDefFoundError:com加icroso句tfs/clien灯common/ui/Vcexplorer/Versioncontrol/VersionControlEdltor$VersionControlEditorReposito叮UpdatedLi、teneratcom.microsoft·tfs.client·common.ui·vcexplorer·versioncontrol.VersionControlEditor.<init>(VersionControIEditorjava:88)atsun.re们ect.NativeConstructorAccessorImpl.newInstance0(NativeMethod)atsun.refIect.NativeConstructorAccessorImpl.newInstance(UnknownSource)atsun.reflect.DelegatingCon,tructorAcces,orlmpl.ne四】nstance(UnknownSource)atjava.lang.re们ect·con蚊ructor.newlnstance(Unknownsource)atjava.lang.Class.newlnstanceo(UnknownSource)atjava.lang.Class.newlnstance(UnknownSource)atorg.eclipse·core·internal.regist甲·osgi.Regist甲StrategyOSGI.createExecutableExtension(Regist甲Strategy0SGI.java:184)a,org·eclipse·core·internal·regist甲·ExtensionRegist叮·createExecutableExtension(ExtensionRegist心.java:9卿}atorg.ecIipse.core.internaI.registry.Con6gurationEIement.createExecutabIeExtension(Con6gurationElementjava:243)atorg.eclipse.core.internaI.registry.Con6gurationElementHandle.createExecutabIeExtension(Con6gurationElementHandle.java:55)atorg.eclipse·ui.internal·Workbenchplugin.createEXtension(Workbenchpluginjava:261)atorg.eclipse·ui.internal.registry.EditorDe,criptor·createEditor(EditorDe,criptor.java:235)atorg.eclip,e.ui.internaI.EditorManager.createpart(EditorManager.java:845)atorg.eclipse.ui.internaI.EditorReference.createpartHelper(EditorReference.java:609)atorg.eclipse.ui.internal.EditorReference.createpart(EditorReferencejava:465)

待解决。

具体解决办法如下:

1、找到运行插件项目的workspace(注意:不是你开发插件运行的Eclipseworkspace),一般目录名称为“runtime-EclipseApplication”。

2、找到后进入目录“.metadata\.plugins”察看是否有你要运行的插件的名称,如“XXX”,把这个目录删除即可,简单方法是把“.metadata\.plugins”中的全部目录删除。

3、再执行插件项目,OK了:)

源文档 <http://www.blogjava.net/hengheng123456789/articles/75004.html>

 

/

8.RunTime

No command output when running: 'am start -n com.surekam/com.surekam.MainActivity -a android.intent.action.MAIN -c android.intent.category.LAUNCHER' on device emulator-5554

设置intentFilter中<category android:name="android.intent.category.LAUNCHER"/>就是要求软件apk在安装时候在控制台中有应用程序的安装图标(理解为桌面图标)

源文档 <http://topic.csdn.net/u/20110227/00/2f326e9c-ea02-42cd-a118-305f7a725eb5.html>

 

/

9.AVD路径问题】修改默认AVD的路径---ERROR: unknown virtual device name

Documents and Settings\用户名\.android\avd下边,这个路径里不能有中文。
解决方法

1
最简单的,创建个英文名的用户,在新的用户环境下玩
2
手动添加一个系统环境变量值,这里我们可以对着“我的电脑”图标单击鼠标右键,在弹出的菜单中选择“属性”,切换到“高级”选项卡,单击“环境变量”按钮,在弹出的对话框新建一个环境变量,比如名为ANDROID_SDK_HOME (不可修改为其他) ,值为D:\android_sdk (假设sdk我们在d盘的根目录名为android_sdk)。接下来重新启动Eclipse,我们通过单击Windows菜单,依次进入 preferneces => Android => Bulid 可以看到 Default debug keystore: D:\android_sdk\.android\debug.keystore (其中.android\ADT自动创建的,以前这项可能为C:\Documents and Settings\中文\.android\debug.keystore),当然通过设置下面的custom debug keystore来设置可以免除添加环境变量的步骤。
然后重建avd。运行程序,没问题了

源文档 <http://zhidao.baidu.com/question/248076502.html>

 

/

10.【项目不是一个工程】添加以下文本中的三个文件后导入即可Eclipse

<<非工程项目导入解决方案.txt>>

http://blog.csdn.net/wujxiaoz/article/details/7425142

 

/

11.Cygwinset NDK_PROJECT_PATH=f:/WDSP/MyFFMpegM--路径映射问题:

/cygdrive/e/NDK/android-ndk-r6b-windows/build/core/setup-toolchain.mk:109: *** 目标模式不含有“%”。 停止。

将:f:改为/cygdrive/f

 

/

11.NDK-GDB

ERROR: Non-debuggable application installed on the target device.

 

/

12.DDMS】小米系统--File Explorer无法显示文件目录

在系统/system/bin里面可以发现没有ls文件,所以不能DDMS中调用file explorer

解决办法:(未解决)

1。在Eclipse里面开模拟器,通过模拟器的DDMS->file explorer找到/system/bin,导出toolbox替换真机相同目录下文件(可能需要ROOT explorer等软件)

2。在真机/system/bin下做一个名为ls的连接文件指向toolbox

      linux下可以直接用Link命令

      手机端开root explorer,/system/bin下找到同样一个指向toolbox的连接文件,如cat,拷贝一份,重命名为ls即可!

源文档 <http://www.miui.com/forum-viewthread-tid-118128-highlight.html>

 

/

13.Run As】程序运行程序时,manifest设置主Activity时无效。

错误:No activity specified! Getting the launcher activity.

解决方案:应该选中Launch Default Activity (默认选择)或选择Launch时后边的下拉列表应选择Activity(不要为空),上图为错误的配置。

 

/

14.JDKJDK升级1.7时,项目报错误:

错误:Android requires compiler compliance  level 5.0 or 6.0.Found ''1.7 instead.Please use Android Tools >Fix Project Properties.

解决方案:

Project Properties -> java Compiler -> Enable project specific settings ->再选择 Compiler Compliance Leave(选择任意一个值) -> OK

源文档 <http://www.eoeandroid.com/thread-105431-1-1.html>

 

/

15.【模拟器】SDL_app:emulator-arm.exe(在XP 32位上报的错误)

计算机生成了可选文字: ―二'0x7c931689介指令引用的“0x000001df介内存。要终止程序,请单击“确定”。要调试程序,请单击“取消”。_困O该内存不能为“read“。阮丽奢习取消}

解决方案:

模拟器的名称应在5个字符及以上。(如:xxxxx

 

/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值