手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

Android Studio 0.4.0 发布

[日期:2013-12-19] 来源:oschina.net  作者:Linux [字体:大 中 小]

Android Studio 0.4.0 发布了,包含如下改进:

  • 支持新的 Android Gradle plugin, 0.7.0, which has improvements for render script, lint, BuildConfig, ProGuard, and additional features around source folders and flavors, along with many bug fixes. For more information, see the Build System documentation.
  • Note that Studio 0.4.0 requires the the new version of the Gradle plugin, so you have to migrate your projects to 0.7.0. If you just update your IDE, after loading your old project the IDE will show this error balloon:
    At this point you can click on the "Search in build.gradle files" link, which will locate the gradle version definition:
    Change those to "0.7.0" (or 0.7.+ to pick up the latest dot release) :
    Now you need to sync the project model. (Yes, we're still working on detecting these changes more intelligently). Click on the "Sync Project with Gradle Files" toolbar button:
    If you're using the Gradle wrapper, you also need to switch it from Gradle 1.8 to Gradle 1.9. If you don't, the sync will show the following error balloon:

    Just click the error link to have Studio automatically convert the wrapper and you're all set.
  • Studio now supports Gradle Offline mode. This is useful if you find yourself without a network connection, and your dependencies are using the plus-syntax to pick up the latest available version. In that case, Gradle will once per day (by default) connect to the artifact repository to see if there is a more recent version. If that network connection fails, the build fails. If you don't have a network connection, this is problematic. You can now open the Compiler > Gradle options and enable Offline mode, which will tell Gradle to ignore update-to-date checks:

    Note that if you add a new dependency you'll still need to have a network connection to download the artifact. If you somehow forget that you are in offline mode, there is a balloon tip for that:
  • Initial Eclipse (ADT) project import. You can now directly import Eclipse projects (rather than having to export them to Gradle from Eclipse as in the past). This importer also makes structural changes to the import:
    • It migrates the project structure from the old ADT directory structure to the new Gradle-build system one
    • It removes inlined library projects that it recognizes (ActionBarSherlock, v7 GridLayout) and replaces the source code with a simple Gradle dependency to the corresponding library
    • Similarly it removes .jar files that it recognizes and replaces them with Gradle dependencies
    • It generates an import summary where it lists potential import issues (for example, if you were using library projects without manifest merging, there is potential manifest registration duplication now)
    • (The import does not yet fully support path variables and linked resources; this will be fixed in 0.4.1)
  • The Asset Studio wizard is now available (until this point it was only available as part of the New Project wizard for generating launcher icons). Right click on a drawable folder and invoke "New > Image Asset":
  • You can also create nine-patch images now by right clicking on .png images and invoking "Create Nine Patch...".
  • A large number of bug fixes, particularly around SDK handling and project import/upgrade, but also to the rendering sandbox, custom view rendering, template handling, etc.

发行说明:http://tools.android.com/recent/androidstudio040released

Android Studio 的详细介绍:请点这里
Android Studio 的下载地址:请点这里

相关阅读:

Android Studio无法启动打开,Android Studio gradle下载不了 http://www.linuxidc.com/Linux/2013-05/84900.htm

初探Android Studio及遇到的一些问题和解决 http://www.linuxidc.com/Linux/2013-05/84899.htm

Ubuntu 12.04(64位)安装Android Studio 全过程 http://www.linuxidc.com/Linux/2013-05/84812.htm

Android Studio v0.1尝鲜 http://www.linuxidc.com/Linux/2013-05/84681.htm

Android Studio使用教程 http://www.linuxidc.com/Linux/2013-05/84579.htm

Android Studio开发指南 http://www.linuxidc.com/Linux/2013-05/84543.htm

Android Studio设置主题 和 不支持中文的问题解决方法 http://www.linuxidc.com/Linux/2013-05/84488.htm

Android Studio 下载安装以及不能打开的解决办法 http://www.linuxidc.com/Linux/2013-05/84409.htm

linux
相关资讯       Android Studio 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款