Android开发错误解释
1.androidruntimefatal exception:GLThread 87
安卓运行版本不一致,修改版本
2.出现java.lang.IllegalArgumentException: Noconfigs match configSpec
因为android模拟器不支持OpenGL ES 2.0,解决办法:创建模拟器时:GPU emulation选yes,需要android 4.0以上的版本才行。使用真机没有这个问题。
3.无法运行helloworld实例
先安装adt,然后下载Android sdk和arcgis 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。
因为你的平台装了多个版本的jre或jdk的关系,本来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再按回车键执行,