Mac上Android studio环境搭建
16lz
2021-01-23
下载
http://developer.android.com/sdk/index.html
- android-studio-ide-141.1980579-mac.dmg
- android-sdk_r24.3.3-macosx.zip
(预先安装好JDK,我用的是jdk1.7.0_76)
点击android-studio-ide-141.1980579-mac.dmg,安装Android Studio。安装完毕后,先不启动Android Studio。 Finder-》应用程序-》右键Android Studio-》显示包内容-》Contents-》bin 编辑 idea.properties文件,在最后一行加上“ disable.android.first.run=true”
解压sdk到任意目录。
配置
启动Android Studio,在Welcome to Android Studio页面, Configure-》Project Defaults-》Project Structure配置SDK路径
SDK Manager配置 在Setting的Others部分,勾选Force https://...sources to be fetched using http://...
然后创建应用就好了。
最后,创建应用后有可能出现下面问题
Error:Failed to find: com.android.support:appcompat-v7:22.+
Install Repository and sync project
Open File
Open in Project Structure dialog
我的解决方式是: Android SDK Manager中 安装 Extras目录下的 Android Support Repository和 Android Support Library
更多相关文章
- Android应用程序使用Localsocket与Linux层通信
- Android应用程序的构成
- Android 混合了 JSON 的 Android 应用程序
- 常用Android应用程序中的Intent动作
- Android在一个应用程序中启动另一个应用程序