- 项目搭建
- 可能出现的问题以及解决方案
- 安卓项目结构
- 模拟器的生成
一个基本的项目就搭建好了
然后我们开始正式的一个App项目搭建
点击Make Project后可能会报错(如下:)
Failed to install the following Android SDK packages as some licences have not been accepted. build-tools;28.0.3 Android SDK Build-Tools 28.0.3 platforms;android-28 Android SDK Platform 28 To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager. Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html Using Android SDK: D:softwaresdk
解决步骤:
- 首先打开命令行,进入到报错的sdk路径,找到可以处理licences的文件
具体步骤如下:
D:softwaretest>cd .. D:software>cd sdk D:softwaresdk>cd tools D:softwaresdktools>cd bin D:softwaresdktoolsbin>sdkmanager --licenses
后续无论它弹出什么建议,直接选择y,就可以成功创建一个project
安卓项目结构 模拟器的生成
然后下载完毕点击finish
然后就会出现一个小手机
然后回到项目,点击运行按钮;小手机上面就会出现 Hello World字样



