Android学习遇到的一些问题

Android开发错误解释

1.androidruntimefatal exception:GLThread 87

安卓运行版本不一致,修改版本

 

2.出现java.lang.IllegalArgumentException: Noconfigs match configSpec

因为android模拟器不支持OpenGL ES 2.0,解决办法:创建模拟器时:GPU emulationyes,需要android 4.0以上的版本才行。使用真机没有这个问题。

 

3.无法运行helloworld实例

先安装adt,然后下载Android sdkarcgis api for android,然后创建helloworld的实例,接着创建安卓虚拟机时候把"use Host GPU"选中,然后创建4.2.2的虚拟机。注意要把项目的properties改成和虚拟机版本一致的型号

 

4.The projectwas not built since its build path is incomplete. Cannot find the class filefor java.lang.Object. Fix the build path then try building this project

因为你的平台装了多个版本的jrejdk的关系,本来eclipse在建立项目时,会自动参照你的jre路径,但多个版本就没办法了。

eclipse中对项目右键,properties,选择Java Build Path——>Libraries——>Add Libraries——>JRE System Library

 

5. 警告:Hardcoded string "BUTTON", shoulduse @string resource

 

6. Invalidlayout param in a LinearLayout: layout_toLeftOf

答:这个是布局的问题,layout_toLeftOf不适合于线性布局,比较于相对布局

 

7.相对布局与线性布局转换

 

8. 布局错误error: Error parsing XML: not well-formed(invalid token)

答:把鼠标箭头移到出错误的layout上点击鼠标右键选择Source然后再选Format就可以解决此问题

9. Android模拟器没有键盘的解决方法

之所以没有键盘是因为创建模拟器的时候没有选择Skin,像下图这样选择一个Skin即可以在模拟器运行的时候显示键盘。

 

10. Buttoncannot be resolved to a type

解决办法:引入包import android.widget.Button;

 

11. eclipse中,重命名项目名称时报错:Resource is out of sync with the file system

解决办法:在eclipse->工程目录右键-->refresh,重新命名即可

 

12.创建项目时输入package name时, 名字中不能包含“package

 

13.arcgis server一直登陆不上去:

解决办法:换成IE浏览器试试

 

14.cant bind8020….

解决办法:在hosts文件中添加一行代码(网上有)

 

 

15.thisapplication has requested the runtime to terminate it in an unusual way.

解决方法:Cmd->cd %windir%\system32回车

继续输入: Regsvr32 Msxml3.dll再按回车键执行,

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

搞GIS图形的sky.

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值