Google在I/O2013大会上发布了Android新的开发工具Android Studio,趁周末时间做了一下尝试。有需要的可以在http://developer.android.com/sdk/installing/studio.html下载,当前版本是V0.1。官方解释:Android Studio is anew Android development environment based on IntelliJ IDEA. Similar to Eclipse with the ADT Plugin。
Android Studio 和Eclipse+ADT还是很相似的,所以eclipse转移过去是没有难度的。
Android Studio是基于IntelliJ IDEA,除了IntelliJ功能,Android Studio还提供:
基于Gradle的构建支持;
Android特定重构和快速修复;
提示工具更好地对程序性能、可用性、版本兼容和其他问题进行控制捕捉;
支持ProGuard和应用签名功能;
自带布局编辑器,可以让你拖放UI组件,并在多个屏幕配置上预览布局,等等。
Android Studio提供了Windows、Mac OS X、Linux版本,用户根据自己的系统选择下载。
下载完安装请参考:http://developer.android.com/sdk/installing/studio.html#Installing
安装完成,打开Android Studio:
第一次使用,New Project时可能会报:
Your Android SDK is out of date or is missing templates. Please ensure you are using SDK version 22 or later.
这需要你使用新的SDK,以前在Eclipse使用习惯了android SDK、ADT等,现在只需进入到eclipse更新SDK即可。或者找到SDK目录下的SDK Manager.exe升级。
升级完成,通过Android Studio的如下路径设置SDK,Configure--> Project Defaults --> Project Structure。
作者:张兴业
velcbo 于 2014-06-09 09:28:51发表:
参考:http://developer.android.com/sdk/installing/studio.html