- 新建项目时报错: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 }
本文地址:https://blog.csdn.net/weixin_42415553/article/details/109646129
您可能感兴趣的文章:
- U盘越狱iPhone绕ID最新教程及各种坑解决,吐血之作(超详细超简单教程)
- Chrome Inspect调试stetho出现空白的解决方法
- [Android jni开发系列]AndroidStudio jni开发常见问题
- Chrome Inspect调试微信出现空白页面的解决方法
- Android6.0开发调试教程之交叉编译X264库出错怎么解决?
- Android studio Kotlin中配置GRPC和protobuf时出现的一些问题总结
- Android8.0 java.lang.IllegalStateException: Not allowed to start service Intent app is in background
如您对本文有疑问或者有任何想说的,请点击进行留言回复,万千网友为您解惑!
网友评论