zoukankan      html  css  js  c++  java
  • 升级到AndroidStudio3.2.1的注意事项

    升级到AndroidStudio3.2.1的注意事项

    即不用再在二级结构的build.gradle中的compileSdkVersion 28 下声明 buildToolsVersion "28.0.3",因为已经会默认声明了。

     

    还有,关于升级到 Android Studio3.2 版本的注意事项:

    1、默认最低的 Build Tools version 为 28.0.2
    2、如果程序中使用了 kotlin 插件,需要将 kotlin 插件的最低版本号改为 1.2.51
    3、如果在 gradle.properties 文件中加入了 android.overridePathCheck=true 设置,现在是不支持的要删除或注释掉

    编译器给出的提示原文:
    1、The specified Android SDK Build Tools version (27.0.3) is ignored, as it is below the minimum supported version (28.0.2) for Android Gradle Plugin 3.2.0.
    Android SDK Build Tools 28.0.2 will be used.
    To suppress this warning, remove "buildToolsVersion'27.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

    2、The Android Gradle plugin supports only Kotlin Gradle plugin version 1.2.51 and higher. Project 'baisonpda3' is using version 1.2.41.

    3、The option setting 'android.overridePathCheck=true' is experimental and unsupported.
    The current default is 'false'

    另外一种情况:(在 3.2 的介绍说明也有提到,可能需要 ladder 的问题;或者也是刚发布不就有些事情还没沟通完全,需要时间)
    1、如果在升级时出现 kotlin 下载超时,说明网络被限制;可能是电脑的防火墙,公司的保护伞,也有可能是长城的问题了,这时就只有使用代理。

    2、或者你发现,直接使用浏览器可以进入 maven 信息,那么这就可能是 as 工具的问题了,
    但可以通过在程序根目录的 build.gradle 文件里加入jcenter(){url "http://jcenter.bintray.com/"}多次尝试(对于没有 [ladder 的人员)

    3、也有可能是你的 kotlin 版本使用过高,访问被受限如报错:

    1.  
      Caused by: org.gradle.api.resources.ResourceException: Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.60/kotlin-gradle-plugin-1.2.60.jar'.
    2.  
      Caused by: org.apache.http.conn.HttpHostConnectException: Connect to d29vzk4ow07wi7.cloudfront.net:443 failed: Connection timed out: connect
    3.  
      at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:159)
    4.  
      at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373)
    5.  
      at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:381)
    6.  
      at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237)
    7.  
      at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)

    也可以通过步骤 2 的配置jcenter(){url "http://jcenter.bintray.com/"}成功获取

  • 相关阅读:
    多线程执行有返回值有参数的方法
    当连续进行多个请求,并且请求的url地址相同时。放弃前面的所有请求,只执行最后一次请求。
    防止重复发送Ajax请求的解决方案
    多行文本溢出显示省略号
    h5 文件跨域上传
    完美解决 IOS系统safari5.0 浏览器页面布局iframe滚动条失效问题,iossafari5.0
    CSS3 修改和去除移动端点击事件出现的背景框 (tap-highlight-color)
    去除img之间的空白
    手机上点击a标签是出现阴影解决办法
    idea通过maven构建springMVC+mybatis项目
  • 原文地址:https://www.cnblogs.com/it-tsz/p/10296923.html
Copyright © 2011-2022 走看看