当前位置: 移动技术网 > 移动技术>移动开发>Android > Android开发遇见的问题-kotlin

Android开发遇见的问题-kotlin

2020年11月12日  | 移动技术网移动技术  | 我要评论
新建项目时报错: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.kotli
  1. 新建项目时报错: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
    }
    

     

  2.  

本文地址:https://blog.csdn.net/weixin_42415553/article/details/109646129

如您对本文有疑问或者有任何想说的,请点击进行留言回复,万千网友为您解惑!

相关文章:

验证码:
移动技术网