XP下Eclipse环境注意事项
来源:互联网 发布:java读取word文档内容 编辑:程序博客网 时间:2024/05/17 23:26
1)eclipse中 Path for project must have only one segment:
Project -> Properties -> Run/Debug Settings:
1. select "Launching New_configuration"
2. Delete
3. OK
2)SDK的包名不能是中文,以及不能有空格,否则报错foo
3)安装完Android SDK后,默认会在C盘创建一个.Android的文件夹用来存放AVD.此时如果想修改AVD的路径,可以设置一个环境变量ANDROID_SDK_HOME=要设置的路径(比如:F:\Java\Android),重新启动Eclipse,修改成功!
Eclipse下的layout下的视图需要设置为Android1.6及以下版本才能显示,Landscape为横屏,portrait为竖屏
单独用eclipse打开一个工程,出现SystemProperties.get()会出现SystemProperties cannot be resolved.错误
1. 引用SystemProperties.get()会出现SystemProperties cannot be resolved.
解决方法:
在当前工程属性(Properties) -> Java Build Path -> Libraries
点击Add External JARs...按钮, 选择layoutlib.jar文件,然后在项目源文件中增加import android.os.SystemProperties;
layoutlib.jar文件位于: android sdk/platforms/android-*.*/data目录下.
layoutlib.jar项目是从外部导入Eclipse中的,只要一编译,就会报错:Conversion to Dalvik format failed: Unable to execute dex: null , 同时Eclipse也变的很卡,好几次都挂掉了.
解决
1:设置内存
eclipse.exe的快捷方式——右键/属性 在 目标 里填写如下内容
"D:/eclipse/eclipse.exe" -vmargs -Xms128M -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128M
双引号内 为eclipse的安装路径。
如果1不行:
应该采用用户库的形式导入该库,具体步骤如下:
1. Right-click the project in Eclipse and select "Build Path -> Add Libraries...".
2. Select User Library from the list and click Next.
3. Click the "User Libraries..." button.
4. Click "New..." in the User Libraries dialog.
5. Give the user library a name and select the System library checkbox and click OK.
6. Highlight the newly added user library in the list and click the "Add JARs..." button and add the desired jar files.
7. Click OK on the User Libraries dialog.
8. Make sure the new user library is checked in the Add Library dialog and
用到我自己的项目上去。编译OK。
如果还是有红色叉叉,则选择java build path --》order and export把自己导入的包放到android的包前面即可
- XP下Eclipse环境注意事项
- Eclipse下配置Github安装环境注意事项
- Xp下配置JSP环境:jdk+eclipse+tomcat+mysql
- Hadoop2.2.0 Eclipse开发环境搭建(xp下)
- windows xp,32位,环境下,Eclipse+python平台搭建
- xp下安装redhat注意事项
- Java环境下AO开发之环境部署及注意事项(eclipse平台)
- 在xp下安装iis5.1注意事项
- XP下Java环境配置
- xp下语音开发环境
- 在Windows XP下Eclipse中安装Android并配置IDE(集成开发环境)图文教程
- Eclipse下搭建Android开发环境(Windows XP SP2 32位)
- Eclipse(Windowns XP)下搭建Android开发环境——简介
- Eclipse(Windowns XP)下搭建Android开发环境——简介 .
- Windows XP+xmapp+eclipse+pdt环境下 xDebug配置中的小问题
- 在Windows xp下搭建完美Python开发环境使用Eclipse和PyDev
- Eclipse下搭建Android开发环境(Windows XP SP2 32位)
- Eclipse(Windowns XP)下搭建Android开发环境——简介
- FLEX资源
- 拓扑排序
- ubuntu下安装sun-java5-jdk(sun-java6-jdk)
- llconf--读写通用文件格式的利器
- C#阿拉伯数字金额转换为中文大写金额
- XP下Eclipse环境注意事项
- 运行由fat jar打包后的jar文件出现警告的处理方法
- 年终总结
- 邻接表的存储方式
- Ext确认密码验证
- layout各种属性
- 游戏开发基础(四)
- WinSock 绑定(bind())问题?
- Android应用层如何执行脚本文件