1,新建项目
File/New/Project
Android/Android Application Project
输入程序名字HelloWorld
Next
Next
选择Blank Activity
修改为HelloWorldActivity
2,异常点
2.1,异常1:No resource found that matches the given name 'Theme.AppCompat.Light
import android.support.v7.app.ActionBarActivity;
创建项目时,将最小SDK选中4.0以上,就不会创建appcompat-v7。
2.2,异常2:Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder
下载低版本25.0.3
设置项目属性sdk.buildtools=25.0.3
2.3,异常3:Errors occurred during the build.Errors running builder 'Android Package Builder' on project 'FristApp'.sun/misc/BASE64Encoder
删除新的JDK21,重写安装JDK1.8
安装JDK后,安装JRE
2.4,异常4:无法打开XML文件
Window/Preferences
General/Editors/File Associations
选择*.xml文件,然后选择XML Editors,并设置为Default,应用保存并重启软件。