发布于 2017-07-18 07:27:01 | 399 次阅读 | 评论: 0 | 来源: 网友投递

这里有新鲜出炉的Android Studio教程,程序狗速度看过来!

Android Studio Android 开发环境

Android Studio 是一个全新的 Android 开发环境,基于IntelliJ IDEA. 类似 Eclipse ADT,Android Studio 提供了集成的 Android 开发工具用于开发和调试


Android Studio 3.0 Canary 7 已发布,更新如下:

指定匹配的构建类型。如果消费者(例如一个 app 模块)定义了生产者依赖关系中不存在的构建类型(例如库模块),variant-aware 的依赖性解析模型将不知道要使用哪个版本的生产者,而你的构建会失败并显示以下的错误信息:

Error:Failed to resolve: Could not resolve project :mylibrary.  Required by:     project :app

现在,可以使用 android.buildTypeMatching 属性指定消费者应该使用的构建类型替代方案,如下所示。该插件仅在没有找到匹配的构建类型时使用替代的构建类型。

android {     …     // Let’s say your app configures a ‘staging’ build type and a library module     // it depends on does not. You can use the property below to tell the Android plugin     // to use a library’s ‘debug’ build type instead.     buildTypeMatching ‘staging’, ‘debug’  }

除此之外,该版本还修复了一些用户反馈的错误:

  • 63623801 升级到 Canary 6 后,在 API 16 AVD 上运行 Kotlin 项目出现 ResourceNotFoundException

  • 37111818 布局编辑器:无法在 RelativeLayout 中编辑小部件边距

  • 63252394 Android studio 3.0 canary build variants 自动解析错误

下载地址:

来自:Android Developers Blog



历史版本 :
Android Studio 3.1 Canary 8 发布,常见的错误修复
Android Studio 3.1 Canary 7 发布,常见错误修复
Android Studio 3.1 Canary 6 发布,常见错误修复
Android Studio 3.0.1 发布,一般错误修复和性能改进
Android Studio 3.1 Canary 4 发布,Bug 修复
Android Studio 3.0 正式发布,支持 Kotlin 语言
Android Studio 3.0 RC 1 发布,各种错误修复
Android Studio 3.0 Beta 4,新的 Android plugin DSL
Android Studio 3.0 Beta 2 发布,Bug 修复
Android Studio 3.0 Beta 1 发布,各种错误修复
Android Studio 3.0 Canary 7 发布
Android Studio 3.0 Canary 4 Bug 修复版本
最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务