1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

新闻 Android Studio 3.0 Canary 7 发布 下载

Discussion in '软件资讯' started by 漂亮的石头, 2017-07-18.

  1. 漂亮的石头

    漂亮的石头 版主 Staff Member

    Joined:
    2012-02-10
    Messages:
    487,999
    Likes Received:
    47
    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.0 Canary 7 发布下载地址
     
Loading...