溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

關(guān)于升級(jí)到Android Studio3.2版本的注意事項(xiàng)

發(fā)布時(shí)間:2020-07-10 01:48:33 來(lái)源:網(wǎng)絡(luò) 閱讀:42297 作者:扶垚而上 欄目:移動(dòng)開(kāi)發(fā)

關(guān)于升級(jí)到Android Studio3.2版本的注意事項(xiàng):

1、默認(rèn)最低的Build Tools version 為 28.0.2
2、如果程序中使用了kotlin插件,需要將kotlin插件的最低版本號(hào)改為1.2.51
3、如果在gradle.properties文件中加入了android.overridePathCheck=true 設(shè)置,現(xiàn)在是不支持的要?jiǎng)h除或注釋掉

編譯器給出的提示原文:
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的介紹說(shuō)明也有提到,可能需要ladder的問(wèn)題;或者也是剛發(fā)布不就有些事情還沒(méi)溝通完全,需要時(shí)間)
1、如果在升級(jí)時(shí)出現(xiàn)kotlin下載超時(shí),說(shuō)明網(wǎng)絡(luò)被限制;可能是電腦的防火墻,公司的保護(hù)傘,也有可能是長(zhǎng)城的問(wèn)題了,這時(shí)就只有使用代理。

2、或者你發(fā)現(xiàn),直接使用瀏覽器可以進(jìn)入maven信息,那么這就可能是as工具的問(wèn)題了,
但可以通過(guò)在程序根目錄的build.gradle文件里加入jcenter(){url "http://jcenter.bintray.com/"}多次嘗試(對(duì)于沒(méi)有[ladder的人員)

3、也有可能是你的kotlin版本使用過(guò)高,訪問(wèn)被受限如報(bào)錯(cuò):

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'.
Caused by: org.apache.http.conn.HttpHostConnectException: Connect to d29vzk4ow07wi7.cloudfront.net:443 failed: Connection timed out: connect
    at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:159)
    at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373)
    at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:381)
    at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237)
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)

也可以通過(guò)步驟2的配置jcenter(){url "http://jcenter.bintray.com/"}成功獲取

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI