?
最近Android studio升級到最新的3.5以后,出現了很多問題,記錄一下:
1.NDK Resolution Outcome: Project settings: Gradle model version=5.4.1, NDK version is UNKNOWN
這個是因為升級到3.5以后,原來的ndk被刪除了,在File -> Project Structure -> SDK Location重新安裝就好(建議安裝,大約750M),會解決很多問題;
2.unable to find valid certification path to requested target
Android studio升級到3.5以后不信任很多鏈接,應該是還沒有配合好,所以導致了現在這樣的問題,如果是“http://jcenter.bintray.com/”開頭不信任鏈接,則在project下的build.gradle下按照如下配置:
?
buildscript {repositories {google()maven { url "https://jitpack.io" }jcenter(){url "http://jcenter.bintray.com/"}}dependencies {classpath 'com.android.tools.build:gradle:3.5.0'classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'}
}allprojects {repositories {google()maven { url "https://jitpack.io" }jcenter(){url "http://jcenter.bintray.com/"}}
}
?
如果是以“http://dl.google.com/”開頭的話,建議開啟vpn,可以多試兩次,一般2-3次都可以成功。
---------------------
作者:LspFighting
來源:CSDN
原文:https://blog.csdn.net/qq_33208896/article/details/100100255
版權聲明:本文為作者原創文章,轉載請附上博文鏈接!
內容解析By:CSDN,CNBLOG博客文章一鍵轉載插件