终于配置好了Android环境,不容易啊!

配置Android开发环境是一项挑战性的任务,本文档记录了作者在配置过程中遇到的问题及解决方法,包括参考的文章和实际操作的经验。同时,还分享了一个简单的Android小程序的制作过程,以及自定义Eclipse代码配色方案的步骤,帮助开发者打造个性化的工作环境。
摘要由CSDN通过智能技术生成

(一)配置Android的环境是个非常复杂的事情,主要参考了以下文章:

 

(详解)Eclipse3.6搭建 Android 2.2 开发环境

http://blog.163.com/liu_yang1234/blog/static/24474310201081734627645/

 

 

Android深入探究笔记之一 -- 我的第一个 Android 程序,基于 Intent  的组件交互机制

http://blog.csdn.net/wenlin56/archive/2010/12/12/6070460.aspx  前半部分是配置说明,后半部分暂时没有用到

 

 

一本书,配置流程很详细

http://book.51cto.com/art/200907/140432.htm

 

 

虽然参考了很多文章,但是在配置过程中仍然碰到了很多问题。

 

 

(二)第一个android小程序(不是 HelloAndroid)

 

参考了 http://blog.csdn.net/onewaveyanlei/archive/2010/04/09/5468441.aspx 制作了一个计算体重指数的小程序,作者把代码的细节写的很详细。

 

(三)自定义eclipse代码配色方案

 

这是我弄的一个eclipse代码配色方案

 

.java文件

 

.xml文件

 

将下面代码复制到记事本中,然后另存为“.epf”文件。打开“ eclipse----File----Import----General----Preference----选择保存的.epf文件,然后finish就可以了。

 

 

 

#Fri Jan 21 11:55:06 CST 2011
/instance/org.eclipse.jdt.ui/sp_cleanup.add_missing_annotations=true
@org.eclipse.ui.editors=3.5.0.v20090527-2000
@org.eclipse.debug.ui=3.5.2.v20091028_r352
/instance/com.genuitec.eclipse.easie.weblogic/JDK_INSTALLATION_NAME=MyEclipse 6.0
/instance/com.android.ide.eclipse.ddms/emulatorControl.waypoint.elevation=54
/instance/com.android.ide.eclipse.ddms/emulatorControl.waypoint.desc=108
@sr=1.0.0
/instance/org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.JUNIT_HOME=D/:/MyEclipse6.0/eclipse/plugins/org.junit_3.8.2.v200706111738
/instance/org.eclipse.jdt.ui/sp_cleanup.remove_unnecessary_casts=true
/instance/org.eclipse.ui.workbench/ColorsAndFontsPreferencePage.selectedElement=CACTIVE_HYPERLINK_COLOR
/instance/org.eclipse.jdt.debug.ui/org.eclipse.debug.ui.VariableView.org.eclipse.jdt.debug.ui.show_null_entries=true
/instance/org.eclipse.jdt.ui/java_comment_task_tag=30,157,225
/instance/org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.MYECLIPSE_HIBERNATE_HOME=D/:/MyEclipse6.0/myeclipse/eclipse/plugins/com.genuitec.org.hibernate.eclipse_6.0.1.zmyeclipse601200710/myeclipse-data
/instance/com.android.ide.eclipse.ddms/emulatorControl.track.first=126
/instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.text.custom_templates=<?xml version/="1.0" encoding/="UTF-8"?><templates/>
/instance/org.eclipse.jdt.ui/spelling_ignore_sentence=true
/instance/com.genuitec.eclipse.easie.weblogic8/JDK_INSTALLATION_NAME=MyEclipse 6.0
/instance/org.eclipse.jdt.core/org.eclipse.jdt.core.compiler.compliance=1.6
/instance/org.eclipse.jdt.ui/semanticHighlighting.staticField.italic=false
/instance/org.eclipse.ui.editors/lineNumberRuler=true
/instance/org.eclipse.jdt.ui/sp_cleanup.convert_to_enhanced_for_loop=false
/instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.overrideannotation=true
/instance/com.android.ide.eclipse.ddms/com.android.ide.eclipse.ddms.logcat.level=20
/instance/com.genuitec.eclipse.easie.sun8/JDK_INSTALLATION_NAME=MyEclipse 6.0
/instance/org.eclipse.jdt.ui/java_operator=192,192,192
@com.android.ide.eclipse.ddms=8.0.1.v201012062107-82219
/configuration/org.eclipse.ui.ide/SHOW_WORKSPACE_SELECTION_DIALOG=false
@org.eclipse.core.runtime=3.5.0.v20090525
/instance/org.eclipse.ui.ide/quickStart=true
/instance/org.eclipse.jdt.ui/java_string=255,0,128
/instance/org.eclipse.jdt.ui/org.eclipse.jface.textfont=1|Consolas|11.25|0|WINDOWS|1|-15|0|0|0|400|0|0|0|0|3|2|1|49|Consolas;
/instance/org.eclipse.core.runtime/content-types/org.eclipse.wst.javascript.core.javascriptsource/charset=UTF-8
/instance/org.eclipse.ui.editors/occurrenceIndicationColor=132,103,89
/instance/com.genuitec.eclipse.easie.oracle/JDK_INSTALLATION_NAME=MyEclipse 6.0
/instance/org.eclipse.jdt.ui/pf_coloring_assignment=255,172,0
/instance/org.eclipse.wst.sse.ui/useQuickDiffPrefPage=true
/instance/org.eclipse.core.resources/version=1
/instance/org.eclipse.wst.sse.ui/useAnnotationsPrefPage=true
@org.eclipse.ui=3.5.2.M20100120-0800
/instance/org.eclipse.ui.workbench/org.eclipse.jface.textfont=1|Consolas|11.25|0|WINDOWS|1|-15|0|0|0|400|0|0|0|0|3|2|1|49|Consolas;
/instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.exception.name=e
/instance/org.eclipse.jdt.ui/sp_cleanup.add_missing_nls_tags=false
/instance/org.eclipse.jdt.core/org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
/instance/com.genuitec.eclipse.easie.weblogic10/JDK_INSTALLATION_NAME=MyEclipse 6.0
/instance/com.android.ide.eclipse.ddms/com.android.ide.eclipse.ddms.logcat.pid=44
/instance/org.eclipse.jdt.ui/pf_coloring_value=54,169,237
/instance/org.eclipse.jdt.ui/sp_cleanup.use_this_for_non_static_method_access=false
/instance/org.eclipse.jdt.ui/sp_cleanup.add_serial_version_id=false
/instance/org.eclipse.jdt.ui/sp_cleanup.remove_unused_private_types=true
/instance/com.android.ide.eclipse.ddms/threadPanel.stack.col4=48
/instance/com.android.ide.eclipse.ddms/threadPanel.stack.col3=42
/instance/com.android.ide.eclipse.ddms/threadPanel.stack.col2=318
/instance/com.android.ide.eclipse.ddms/threadPanel.stack.col1=96
/instance/com.android.ide.eclipse.ddms/threadPanel.stack.col0=114
/instance/org.eclipse.jdt.ui/semanticHighlighting.class.color=128,128,255
/instance/org.eclipse.debug.ui/preferredTargets=default/:default|
/instance/org.eclipse.jdt.ui/sp_cleanup.make_local_variable_final=false
/instance/org.eclipse.jdt.ui/sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
/instance/org.eclipse.jdt.ui/sp_cleanup.always_use_this_for_non_static_field_access=false
/instance/org.eclipse.ui.editors/overviewRuler_migration=migrated_3.1
/instance/org.eclipse.jdt.ui/sp_cleanup.organize_imports=true
/instance/com.genuitec.eclipse.easie.jboss4/JDK_INSTALLATION_NAME=MyEclipse 6.0
/instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.gettersetter.use.is=true
/instance/org.eclipse.jdt.ui/sp_cleanup.remove_unused_imports=false
/instance/com.android.ide.eclipse.ddms/emulatorControl.track.comment=78
@org.eclipse.jdt.debug.ui=3.4.1.v20090811_r351
/instance/org.eclipse.ui.editors/linked.slave.color=181,216,255
/instance/com.genuitec.eclipse.wizards/applet.template.2=templates/Applet14.java
/instance/com.genuitec.eclipse.easie.weblogic6/JDK_INSTALLATION_NAME=MyEclipse 6.0
/instance/org.eclipse.jdt.ui/spelling_ignore_single_letters=true
/instance/com.genuitec.eclipse.wizards/applet.template.1=templates/Applet.java
/instance/org.eclipse.jdt.ui/sp_cleanup.remove_trailing_whitespaces_all=true
/configuration/org.eclipse.ui.ide/RECENT_WORKSPACES=E/://EclipseWorkspace//workspace60
/instance/org.eclipse.ui.editors/currentLineColor=75,61,52
/instance/com.android.ide.eclipse.ddms/emulatorControl.track.last=126
/instance/org.eclipse.jdt.ui/sp_cleanup.remove_unnecessary_nls_tags=false
/instance/org.eclipse.jdt.ui/sp_cleanup.always_use_blocks=true
/instance/org.eclipse.jdt.ui/java_comment_task_tag_bold=false
/instance/com.genuitec.eclipse.easie.tomcat6/TOMCAT_BASE=D/://Tomcat6.0
/instance/org.eclipse.jdt.core/org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,XXX
/instance/com.android.ide.eclipse.ddms/devicePanel.Col4=66
/instance/com.android.ide.eclipse.ddms/devicePanel.Col1=54
/instance/com.android.ide.eclipse.ddms/devicePanel.Col0=108
/instance/org.eclipse.jst.jsp.core/org.eclipse.jst.jsp.core.taglib.TaglibIndex=DIRTY
/instance/org.eclipse.ui.workbench/org.eclipse.ui.commands=<?xml version/="1.0" encoding/="UTF-8"?>/r/n<org.eclipse.ui.commands/>
/instance/com.genuitec.eclipse.easie.jboss5/JDK_INSTALLATION_NAME=MyEclipse 6.0
/instance/org.eclipse.jdt.ui/java_keyword_return=0,255,64
/instance/org.eclipse.jdt.ui/sp_cleanup.remove_unused_local_variables=false
/instance/org.eclipse.wst.javascript.ui/COMMENT=/#008000 | null | false | false | false | false
/instance/org.eclipse.jdt.ui/content_assist_autoactivation_triggers_java=.abcdefghijklmnopqrstuvwxyz(,<
/instance/org.eclipse.jdt.ui/semanticHighlighting.staticField.enabled=false
/instance/org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.MYECLIPSE_STRUTS_HOME=D/:/MyEclipse6.0/myeclipse/eclipse/plugins/com.genuitec.eclipse.cross.easystruts.eclipse_6.0.1.zmyeclipse601200710/data
/instance/com.android.ide.eclipse.ddms/emulatorControl.waypoint.latitude=78
/instance/com.genuitec.eclipse.easie.tomcat/JDK_INSTALLATION_NAME=MyEclipse 6.0
/instance/org.eclipse.jdt.core/org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
@org.eclipse.team.cvs.ui=3.3.202.r35x_20090930-0800
/instance/org.eclipse.jdt.core/org.eclipse.jdt.core.compiler.source=1.6
/instance/org.eclipse.jdt.ui/content_assist_number_of_computers=13
/instance/org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.ECLIPSE_HOME=D/:/MyEclipse6.0/eclipse
/instance/org.eclipse.jdt.core/org.eclipse.jdt.core.codeComplete.argumentPrefixes=
/instance/com.genuitec.eclipse.easie.resin/JDK_INSTALLATION_NAME=MyEclipse 6.0
/instance/com.genuitec.eclipse.easie.tomcat6/TOMCAT_TEMP=D/://Tomcat6.0//temp
/instance/com.genuitec.eclipse.easie.sun81/JDK_INSTALLATION_NAME=MyEclipse 6.0
/instance/org.eclipse.ui.workbench/resourcetypes=<?xml version/="1.0&

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值