Android求生之路1-环境配置,写简单的HelloWorld

我认真地过每一分钟

1.怎么自己Eclipse的版本号

点击Eclipse图标,右键--》进入文件位置-》找到readme文件夹-》打开浏览器,上面第一个号,就是你的版本号

1.1JDK配置

https://jingyan.baidu.com/article/6dad5075d1dc40a123e36ea3.html

2.下载Sdk.去360上直接下载:

google androidSdk

3.报错,解决思路

https://www.cnblogs.com/junlei/p/4521855.html

4.jdk配置,以前配置好的,sdk安装成功后

5.安装打开Eclipse4.3.0

6.新建项目HelloWorld

7.核心代码

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.helloworld.MainActivity"
android:orientation="vertical"
tools:ignore="MergeRootFrame" >

<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="荣哥哈哦"/>

</LinearLayout>

8.项目完成,开始安装

9.通过找到项目文件位置,打开HelloWorld文件夹后,会看到HelloWorld的apk,它就是安装包,发到手机上,安装,即可完成,显示

 

posted on 2017-11-23 21:10  不要怕,坚强  阅读(299)  评论(0)    收藏  举报