- 新建项目时报错:unable to find valid certification path to requested target
这个问题应该是和版本相关的我的AndroidStudio 版本是3.5.3,build.gradle中这样修改。// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext.kotlin_version = '1.3.50' repositories { // google() // jcenter() mavenCentral() maven { url 'https://maven.google.com' } google() jcenter() maven { url "https://jitpack.io" } } dependencies { classpath 'com.android.tools.build:gradle:3.5.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files· } } allprojects { repositories { // google() // jcenter() mavenCentral() maven { url 'https://maven.google.com' } google() jcenter() maven { url "https://jitpack.io" } } } task clean(type: Delete) { delete rootProject.buildDir }
Android开发遇见的问题-kotlin
最新推荐文章于 2024-09-19 08:43:21 发布