asm.jar使用不了,Error:Could not find adb, please install Android SDK and set path to adb

本文介绍了解决在Windows 7 64位环境下使用Eclipse遇到的“找不到ADB”问题的方法。通过正确配置SDK路径、调整环境变量及部署应用程序到实际设备等步骤,帮助开发者顺利运行Android应用。

转自:http://blog.youkuaiyun.com/liuzhi0724/article/details/43308923


Error:Could not find adb, please install Android SDK and set path to adb

环境: win7 64bit

     eclipse 1.4.1

android-sdk_r21-windows


问题描述:将asm.jar放在C盘的用户目录下,执行java -jar asm.jar后,跳出如上提示

原因分析:SDK目录设置不对。


1、SDK环境设置

计算机->属性->高级系统设置->环境变量->系统环境变量

a)新建变量ANDROID

变量名:ANDROID

变量值:F:\Android\android-sdk_r21-windows\android-sdk-windows\platform-tools;F:\Android\android-sdk_r21-windows\android-sdk-windows\tools

b)修改变量path

变量名:path

变量值:。。。;%ANDROID%

2、将java.exe拷贝到C:\Windows\System32

3、将开发项目部署到真实手机或模拟器

右击项目->Run As ->android application ->选择真实的手机或模拟器,运行程序

4、在Windows开始菜单运行:java -jar asm.jar


5、在弹出界面中选择真机

6、在Windows开始菜单执行:adb shell 进入调试界面


FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'android-build'. > Could not resolve all artifacts for configuration ':classpath'. > Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jre8:1.2.0. Required by: project : > com.android.tools.build:gradle:3.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.lint:lint-gradle-api:26.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:gradle-api:3.2.0 project : > com.android.tools.build:gradle:3.2.0 > androidx.databinding:databinding-compiler-common:3.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools:sdk-common:26.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools:common:26.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools.build:manifest-merger:26.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools:sdklib:26.2.0 > com.android.tools:repository:26.2.0 > Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jre8:1.2.0. > Could not get resource 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jre8/1.2.0/kotlin-stdlib-jre8-1.2.0.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jre8/1.2.0/kotlin-stdlib-jre8-1.2.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jre8:1.2.0. > Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jre8/1.2.0/kotlin-stdlib-jre8-1.2.0.pom'. > Could not GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jre8/1.2.0/kotlin-stdlib-jre8-1.2.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.ow2.asm:asm:6.0. Required by: project : > com.android.tools.build:gradle:3.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-alpha10 > Could not resolve org.ow2.asm:asm:6.0. > Could not get resource 'https://repo.maven.apache.org/maven2/org/ow2/asm/asm/6.0/asm-6.0.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/org/ow2/asm/asm/6.0/asm-6.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.ow2.asm:asm:6.0. > Could not get resource 'https://jcenter.bintray.com/org/ow2/asm/asm/6.0/asm-6.0.pom'. > Could not GET 'https://jcenter.bintray.com/org/ow2/asm/asm/6.0/asm-6.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.ow2.asm:asm-analysis:6.0. Required by: project : > com.android.tools.build:gradle:3.2.0 > Could not resolve org.ow2.asm:asm-analysis:6.0. > Could not get resource 'https://repo.maven.apache.org/maven2/org/ow2/asm/asm-analysis/6.0/asm-analysis-6.0.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/org/ow2/asm/asm-analysis/6.0/asm-analysis-6.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.ow2.asm:asm-analysis:6.0. > Could not get resource 'https://jcenter.bintray.com/org/ow2/asm/asm-analysis/6.0/asm-analysis-6.0.pom'. > Could not GET 'https://jcenter.bintray.com/org/ow2/asm/asm-analysis/6.0/asm-analysis-6.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.ow2.asm:asm-commons:6.0. Required by: project : > com.android.tools.build:gradle:3.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-alpha10 > Could not resolve org.ow2.asm:asm-commons:6.0. > Could not get resource 'https://repo.maven.apache.org/maven2/org/ow2/asm/asm-commons/6.0/asm-commons-6.0.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/org/ow2/asm/asm-commons/6.0/asm-commons-6.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.ow2.asm:asm-commons:6.0. > Could not get resource 'https://jcenter.bintray.com/org/ow2/asm/asm-commons/6.0/asm-commons-6.0.pom'. > Could not GET 'https://jcenter.bintray.com/org/ow2/asm/asm-commons/6.0/asm-commons-6.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.ow2.asm:asm-util:6.0. Required by: project : > com.android.tools.build:gradle:3.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-alpha10 > Could not resolve org.ow2.asm:asm-util:6.0. > Could not get resource 'https://repo.maven.apache.org/maven2/org/ow2/asm/asm-util/6.0/asm-util-6.0.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/org/ow2/asm/asm-util/6.0/asm-util-6.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.ow2.asm:asm-util:6.0. > Could not get resource 'https://jcenter.bintray.com/org/ow2/asm/asm-util/6.0/asm-util-6.0.pom'. > Could not GET 'https://jcenter.bintray.com/org/ow2/asm/asm-util/6.0/asm-util-6.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve net.sf.jopt-simple:jopt-simple:4.9. Required by: project : > com.android.tools.build:gradle:3.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > Could not resolve net.sf.jopt-simple:jopt-simple:4.9. > Could not get resource 'https://repo.maven.apache.org/maven2/net/sf/jopt-simple/jopt-simple/4.9/jopt-simple-4.9.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/net/sf/jopt-simple/jopt-simple/4.9/jopt-simple-4.9.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve net.sf.jopt-simple:jopt-simple:4.9. > Could not get resource 'https://jcenter.bintray.com/net/sf/jopt-simple/jopt-simple/4.9/jopt-simple-4.9.pom'. > Could not GET 'https://jcenter.bintray.com/net/sf/jopt-simple/jopt-simple/4.9/jopt-simple-4.9.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve net.sf.proguard:proguard-gradle:6.0.3. Required by: project : > com.android.tools.build:gradle:3.2.0 > Could not resolve net.sf.proguard:proguard-gradle:6.0.3. > Could not get resource 'https://repo.maven.apache.org/maven2/net/sf/proguard/proguard-gradle/6.0.3/proguard-gradle-6.0.3.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/net/sf/proguard/proguard-gradle/6.0.3/proguard-gradle-6.0.3.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve net.sf.proguard:proguard-gradle:6.0.3. > Could not get resource 'https://jcenter.bintray.com/net/sf/proguard/proguard-gradle/6.0.3/proguard-gradle-6.0.3.pom'. > Could not GET 'https://jcenter.bintray.com/net/sf/proguard/proguard-gradle/6.0.3/proguard-gradle-6.0.3.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.squareup:javawriter:2.5.0. Required by: project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > Could not resolve com.squareup:javawriter:2.5.0. > Could not get resource 'https://repo.maven.apache.org/maven2/com/squareup/javawriter/2.5.0/javawriter-2.5.0.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/com/squareup/javawriter/2.5.0/javawriter-2.5.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.squareup:javawriter:2.5.0. > Could not get resource 'https://jcenter.bintray.com/com/squareup/javawriter/2.5.0/javawriter-2.5.0.pom'. > Could not GET 'https://jcenter.bintray.com/com/squareup/javawriter/2.5.0/javawriter-2.5.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.bouncycastle:bcpkix-jdk15on:1.56. Required by: project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools:sdk-common:26.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools.build:apkzlib:3.2.0 > Could not resolve org.bouncycastle:bcpkix-jdk15on:1.56. > Could not get resource 'https://repo.maven.apache.org/maven2/org/bouncycastle/bcpkix-jdk15on/1.56/bcpkix-jdk15on-1.56.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/org/bouncycastle/bcpkix-jdk15on/1.56/bcpkix-jdk15on-1.56.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.bouncycastle:bcpkix-jdk15on:1.56. > Could not get resource 'https://jcenter.bintray.com/org/bouncycastle/bcpkix-jdk15on/1.56/bcpkix-jdk15on-1.56.pom'. > Could not GET 'https://jcenter.bintray.com/org/bouncycastle/bcpkix-jdk15on/1.56/bcpkix-jdk15on-1.56.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.bouncycastle:bcprov-jdk15on:1.56. Required by: project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools:sdk-common:26.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools.build:apkzlib:3.2.0 > Could not resolve org.bouncycastle:bcprov-jdk15on:1.56. > Could not get resource 'https://repo.maven.apache.org/maven2/org/bouncycastle/bcprov-jdk15on/1.56/bcprov-jdk15on-1.56.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/org/bouncycastle/bcprov-jdk15on/1.56/bcprov-jdk15on-1.56.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.bouncycastle:bcprov-jdk15on:1.56. > Could not get resource 'https://jcenter.bintray.com/org/bouncycastle/bcprov-jdk15on/1.56/bcprov-jdk15on-1.56.pom'. > Could not GET 'https://jcenter.bintray.com/org/bouncycastle/bcprov-jdk15on/1.56/bcprov-jdk15on-1.56.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.ow2.asm:asm-tree:6.0. Required by: project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > Could not resolve org.ow2.asm:asm-tree:6.0. > Could not get resource 'https://repo.maven.apache.org/maven2/org/ow2/asm/asm-tree/6.0/asm-tree-6.0.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/org/ow2/asm/asm-tree/6.0/asm-tree-6.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.ow2.asm:asm-tree:6.0. > Could not get resource 'https://jcenter.bintray.com/org/ow2/asm/asm-tree/6.0/asm-tree-6.0.pom'. > Could not GET 'https://jcenter.bintray.com/org/ow2/asm/asm-tree/6.0/asm-tree-6.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve it.unimi.dsi:fastutil:7.2.0. Required by: project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > Could not resolve it.unimi.dsi:fastutil:7.2.0. > Could not get resource 'https://repo.maven.apache.org/maven2/it/unimi/dsi/fastutil/7.2.0/fastutil-7.2.0.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/it/unimi/dsi/fastutil/7.2.0/fastutil-7.2.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve it.unimi.dsi:fastutil:7.2.0. > Could not get resource 'https://jcenter.bintray.com/it/unimi/dsi/fastutil/7.2.0/fastutil-7.2.0.pom'. > Could not GET 'https://jcenter.bintray.com/it/unimi/dsi/fastutil/7.2.0/fastutil-7.2.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.googlecode.json-simple:json-simple:1.1. Required by: project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > Could not resolve com.googlecode.json-simple:json-simple:1.1. > Could not get resource 'https://repo.maven.apache.org/maven2/com/googlecode/json-simple/json-simple/1.1/json-simple-1.1.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/com/googlecode/json-simple/json-simple/1.1/json-simple-1.1.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.googlecode.json-simple:json-simple:1.1. > Could not get resource 'https://jcenter.bintray.com/com/googlecode/json-simple/json-simple/1.1/json-simple-1.1.pom'. > Could not GET 'https://jcenter.bintray.com/com/googlecode/json-simple/json-simple/1.1/json-simple-1.1.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.google.guava:guava:23.0. Required by: project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.analytics-library:shared:26.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.analytics-library:crash:26.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.lint:lint-gradle-api:26.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:gradle-api:3.2.0 project : > com.android.tools.build:gradle:3.2.0 > androidx.databinding:databinding-compiler-common:3.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools:common:26.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools.analytics-library:tracker:26.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools.build:apkzlib:3.2.0 > Could not resolve com.google.guava:guava:23.0. > Could not get resource 'https://repo.maven.apache.org/maven2/com/google/guava/guava/23.0/guava-23.0.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/com/google/guava/guava/23.0/guava-23.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.google.guava:guava:23.0. > Could not get resource 'https://jcenter.bintray.com/com/google/guava/guava/23.0/guava-23.0.pom'. > Could not GET 'https://jcenter.bintray.com/com/google/guava/guava/23.0/guava-23.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.google.code.gson:gson:2.8.0. Required by: project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.analytics-library:shared:26.2.0 project : > com.android.tools.build:gradle:3.2.0 > androidx.databinding:databinding-compiler-common:3.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build.jetifier:jetifier-core:1.0.0-alpha10 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools:sdklib:26.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools.build:manifest-merger:26.2.0 > Could not resolve com.google.code.gson:gson:2.8.0. > Could not get resource 'https://repo.maven.apache.org/maven2/com/google/code/gson/gson/2.8.0/gson-2.8.0.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/com/google/code/gson/gson/2.8.0/gson-2.8.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.google.code.gson:gson:2.8.0. > Could not get resource 'https://jcenter.bintray.com/com/google/code/gson/gson/2.8.0/gson-2.8.0.pom'. > Could not GET 'https://jcenter.bintray.com/com/google/code/gson/gson/2.8.0/gson-2.8.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.apache.httpcomponents:httpmime:4.5.2. Required by: project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.analytics-library:crash:26.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools:sdklib:26.2.0 > Could not resolve org.apache.httpcomponents:httpmime:4.5.2. > Could not get resource 'https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpmime/4.5.2/httpmime-4.5.2.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpmime/4.5.2/httpmime-4.5.2.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.apache.httpcomponents:httpmime:4.5.2. > Could not get resource 'https://jcenter.bintray.com/org/apache/httpcomponents/httpmime/4.5.2/httpmime-4.5.2.pom'. > Could not GET 'https://jcenter.bintray.com/org/apache/httpcomponents/httpmime/4.5.2/httpmime-4.5.2.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.apache.httpcomponents:httpcore:4.4.5. Required by: project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.analytics-library:crash:26.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools:sdklib:26.2.0 > Could not resolve org.apache.httpcomponents:httpcore:4.4.5. > Could not get resource 'https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcore/4.4.5/httpcore-4.4.5.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcore/4.4.5/httpcore-4.4.5.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.apache.httpcomponents:httpcore:4.4.5. > Could not get resource 'https://jcenter.bintray.com/org/apache/httpcomponents/httpcore/4.4.5/httpcore-4.4.5.pom'. > Could not GET 'https://jcenter.bintray.com/org/apache/httpcomponents/httpcore/4.4.5/httpcore-4.4.5.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.apache.httpcomponents:httpclient:4.5.2. Required by: project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.analytics-library:crash:26.2.0 > Could not resolve org.apache.httpcomponents:httpclient:4.5.2. > Could not get resource 'https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.apache.httpcomponents:httpclient:4.5.2. > Could not get resource 'https://jcenter.bintray.com/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.pom'. > Could not GET 'https://jcenter.bintray.com/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.jetbrains.kotlin:kotlin-reflect:1.2.0. Required by: project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.lint:lint-gradle-api:26.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools:sdk-common:26.2.0 > Could not resolve org.jetbrains.kotlin:kotlin-reflect:1.2.0. > Could not get resource 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-reflect/1.2.0/kotlin-reflect-1.2.0.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-reflect/1.2.0/kotlin-reflect-1.2.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.jetbrains.kotlin:kotlin-reflect:1.2.0. > Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.2.0/kotlin-reflect-1.2.0.pom'. > Could not GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.2.0/kotlin-reflect-1.2.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.antlr:antlr4:4.5.3. Required by: project : > com.android.tools.build:gradle:3.2.0 > androidx.databinding:databinding-compiler-common:3.2.0 > Could not resolve org.antlr:antlr4:4.5.3. > Could not get resource 'https://repo.maven.apache.org/maven2/org/antlr/antlr4/4.5.3/antlr4-4.5.3.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/org/antlr/antlr4/4.5.3/antlr4-4.5.3.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.antlr:antlr4:4.5.3. > Could not get resource 'https://jcenter.bintray.com/org/antlr/antlr4/4.5.3/antlr4-4.5.3.pom'. > Could not GET 'https://jcenter.bintray.com/org/antlr/antlr4/4.5.3/antlr4-4.5.3.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve commons-io:commons-io:2.4. Required by: project : > com.android.tools.build:gradle:3.2.0 > androidx.databinding:databinding-compiler-common:3.2.0 > Could not resolve commons-io:commons-io:2.4. > Could not get resource 'https://repo.maven.apache.org/maven2/commons-io/commons-io/2.4/commons-io-2.4.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/commons-io/commons-io/2.4/commons-io-2.4.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve commons-io:commons-io:2.4. > Could not get resource 'https://jcenter.bintray.com/commons-io/commons-io/2.4/commons-io-2.4.pom'. > Could not GET 'https://jcenter.bintray.com/commons-io/commons-io/2.4/commons-io-2.4.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.googlecode.juniversalchardet:juniversalchardet:1.0.3. Required by: project : > com.android.tools.build:gradle:3.2.0 > androidx.databinding:databinding-compiler-common:3.2.0 > Could not resolve com.googlecode.juniversalchardet:juniversalchardet:1.0.3. > Could not get resource 'https://repo.maven.apache.org/maven2/com/googlecode/juniversalchardet/juniversalchardet/1.0.3/juniversalchardet-1.0.3.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/com/googlecode/juniversalchardet/juniversalchardet/1.0.3/juniversalchardet-1.0.3.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.googlecode.juniversalchardet:juniversalchardet:1.0.3. > Could not get resource 'https://jcenter.bintray.com/com/googlecode/juniversalchardet/juniversalchardet/1.0.3/juniversalchardet-1.0.3.pom'. > Could not GET 'https://jcenter.bintray.com/com/googlecode/juniversalchardet/juniversalchardet/1.0.3/juniversalchardet-1.0.3.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.squareup:javapoet:1.8.0. Required by: project : > com.android.tools.build:gradle:3.2.0 > androidx.databinding:databinding-compiler-common:3.2.0 > Could not resolve com.squareup:javapoet:1.8.0. > Could not get resource 'https://repo.maven.apache.org/maven2/com/squareup/javapoet/1.8.0/javapoet-1.8.0.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/com/squareup/javapoet/1.8.0/javapoet-1.8.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.squareup:javapoet:1.8.0. > Could not get resource 'https://jcenter.bintray.com/com/squareup/javapoet/1.8.0/javapoet-1.8.0.pom'. > Could not GET 'https://jcenter.bintray.com/com/squareup/javapoet/1.8.0/javapoet-1.8.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.google.auto.value:auto-value:1.5.2. Required by: project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:bundletool:0.5.0 > Could not resolve com.google.auto.value:auto-value:1.5.2. > Could not get resource 'https://repo.maven.apache.org/maven2/com/google/auto/value/auto-value/1.5.2/auto-value-1.5.2.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/com/google/auto/value/auto-value/1.5.2/auto-value-1.5.2.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.google.auto.value:auto-value:1.5.2. > Could not get resource 'https://jcenter.bintray.com/com/google/auto/value/auto-value/1.5.2/auto-value-1.5.2.pom'. > Could not GET 'https://jcenter.bintray.com/com/google/auto/value/auto-value/1.5.2/auto-value-1.5.2.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.google.errorprone:error_prone_annotations:2.2.0. Required by: project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:bundletool:0.5.0 > Could not resolve com.google.errorprone:error_prone_annotations:2.2.0. > Could not get resource 'https://repo.maven.apache.org/maven2/com/google/errorprone/error_prone_annotations/2.2.0/error_prone_annotations-2.2.0.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/com/google/errorprone/error_prone_annotations/2.2.0/error_prone_annotations-2.2.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.google.errorprone:error_prone_annotations:2.2.0. > Could not get resource 'https://jcenter.bintray.com/com/google/errorprone/error_prone_annotations/2.2.0/error_prone_annotations-2.2.0.pom'. > Could not GET 'https://jcenter.bintray.com/com/google/errorprone/error_prone_annotations/2.2.0/error_prone_annotations-2.2.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.google.guava:guava:23.0. Required by: project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:bundletool:0.5.0 > Could not resolve com.google.guava:guava:23.0. > Could not get resource 'https://repo.maven.apache.org/maven2/com/google/guava/guava/23.0/guava-23.0.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/com/google/guava/guava/23.0/guava-23.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.google.guava:guava:23.0. > Could not get resource 'https://jcenter.bintray.com/com/google/guava/guava/23.0/guava-23.0.pom'. > Could not GET 'https://jcenter.bintray.com/com/google/guava/guava/23.0/guava-23.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.google.protobuf:protobuf-java:3.4.0. Required by: project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:bundletool:0.5.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools:sdk-common:26.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools.analytics-library:protos:26.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools.analytics-library:tracker:26.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:bundletool:0.5.0 > com.android.tools.build:aapt2-proto:0.3.1 > Could not resolve com.google.protobuf:protobuf-java:3.4.0. > Could not get resource 'https://repo.maven.apache.org/maven2/com/google/protobuf/protobuf-java/3.4.0/protobuf-java-3.4.0.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/com/google/protobuf/protobuf-java/3.4.0/protobuf-java-3.4.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.google.protobuf:protobuf-java:3.4.0. > Could not get resource 'https://jcenter.bintray.com/com/google/protobuf/protobuf-java/3.4.0/protobuf-java-3.4.0.pom'. > Could not GET 'https://jcenter.bintray.com/com/google/protobuf/protobuf-java/3.4.0/protobuf-java-3.4.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.google.protobuf:protobuf-java-util:3.4.0. Required by: project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:bundletool:0.5.0 > Could not resolve com.google.protobuf:protobuf-java-util:3.4.0. > Could not get resource 'https://repo.maven.apache.org/maven2/com/google/protobuf/protobuf-java-util/3.4.0/protobuf-java-util-3.4.0.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/com/google/protobuf/protobuf-java-util/3.4.0/protobuf-java-util-3.4.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.google.protobuf:protobuf-java-util:3.4.0. > Could not get resource 'https://jcenter.bintray.com/com/google/protobuf/protobuf-java-util/3.4.0/protobuf-java-util-3.4.0.pom'. > Could not GET 'https://jcenter.bintray.com/com/google/protobuf/protobuf-java-util/3.4.0/protobuf-java-util-3.4.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.jetbrains.kotlin:kotlin-stdlib:1.2.20. Required by: project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build.jetifier:jetifier-core:1.0.0-alpha10 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-alpha10 > Could not resolve org.jetbrains.kotlin:kotlin-stdlib:1.2.20. > Could not get resource 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.2.20/kotlin-stdlib-1.2.20.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.2.20/kotlin-stdlib-1.2.20.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.jetbrains.kotlin:kotlin-stdlib:1.2.20. > Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.2.20/kotlin-stdlib-1.2.20.pom'. > Could not GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.2.20/kotlin-stdlib-1.2.20.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.jdom:jdom2:2.0.6. Required by: project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-alpha10 > Could not resolve org.jdom:jdom2:2.0.6. > Could not get resource 'https://repo.maven.apache.org/maven2/org/jdom/jdom2/2.0.6/jdom2-2.0.6.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/org/jdom/jdom2/2.0.6/jdom2-2.0.6.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.jdom:jdom2:2.0.6. > Could not get resource 'https://jcenter.bintray.com/org/jdom/jdom2/2.0.6/jdom2-2.0.6.pom'. > Could not GET 'https://jcenter.bintray.com/org/jdom/jdom2/2.0.6/jdom2-2.0.6.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.apache.commons:commons-compress:1.12. Required by: project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools:sdklib:26.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools:sdklib:26.2.0 > com.android.tools:repository:26.2.0 > Could not resolve org.apache.commons:commons-compress:1.12. > Could not get resource 'https://repo.maven.apache.org/maven2/org/apache/commons/commons-compress/1.12/commons-compress-1.12.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/org/apache/commons/commons-compress/1.12/commons-compress-1.12.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.apache.commons:commons-compress:1.12. > Could not get resource 'https://jcenter.bintray.com/org/apache/commons/commons-compress/1.12/commons-compress-1.12.pom'. > Could not GET 'https://jcenter.bintray.com/org/apache/commons/commons-compress/1.12/commons-compress-1.12.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve javax.inject:javax.inject:1. Required by: project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools:sdk-common:26.2.0 > Could not resolve javax.inject:javax.inject:1. > Could not get resource 'https://repo.maven.apache.org/maven2/javax/inject/javax.inject/1/javax.inject-1.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/javax/inject/javax.inject/1/javax.inject-1.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve javax.inject:javax.inject:1. > Could not get resource 'https://jcenter.bintray.com/javax/inject/javax.inject/1/javax.inject-1.pom'. > Could not GET 'https://jcenter.bintray.com/javax/inject/javax.inject/1/javax.inject-1.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve net.sf.kxml:kxml2:2.3.0. Required by: project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools.build:manifest-merger:26.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools.ddms:ddmlib:26.2.0 project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools:sdklib:26.2.0 > com.android.tools.layoutlib:layoutlib-api:26.2.0 > Could not resolve net.sf.kxml:kxml2:2.3.0. > Could not get resource 'https://repo.maven.apache.org/maven2/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve net.sf.kxml:kxml2:2.3.0. > Could not get resource 'https://jcenter.bintray.com/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.pom'. > Could not GET 'https://jcenter.bintray.com/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.google.code.findbugs:jsr305:1.3.9. Required by: project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools.build:apkzlib:3.2.0 > Could not resolve com.google.code.findbugs:jsr305:1.3.9. > Could not get resource 'https://repo.maven.apache.org/maven2/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.google.code.findbugs:jsr305:1.3.9. > Could not get resource 'https://jcenter.bintray.com/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.pom'. > Could not GET 'https://jcenter.bintray.com/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.jetbrains:annotations:13.0. Required by: project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools:sdklib:26.2.0 > com.android.tools.layoutlib:layoutlib-api:26.2.0 > Could not resolve org.jetbrains:annotations:13.0. > Could not get resource 'https://repo.maven.apache.org/maven2/org/jetbrains/annotations/13.0/annotations-13.0.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/org/jetbrains/annotations/13.0/annotations-13.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.jetbrains:annotations:13.0. > Could not get resource 'https://jcenter.bintray.com/org/jetbrains/annotations/13.0/annotations-13.0.pom'. > Could not GET 'https://jcenter.bintray.com/org/jetbrains/annotations/13.0/annotations-13.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.sun.activation:javax.activation:1.2.0. Required by: project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools:sdklib:26.2.0 > com.android.tools:repository:26.2.0 > Could not resolve com.sun.activation:javax.activation:1.2.0. > Could not get resource 'https://repo.maven.apache.org/maven2/com/sun/activation/javax.activation/1.2.0/javax.activation-1.2.0.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/com/sun/activation/javax.activation/1.2.0/javax.activation-1.2.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.sun.activation:javax.activation:1.2.0. > Could not get resource 'https://jcenter.bintray.com/com/sun/activation/javax.activation/1.2.0/javax.activation-1.2.0.pom'. > Could not GET 'https://jcenter.bintray.com/com/sun/activation/javax.activation/1.2.0/javax.activation-1.2.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.glassfish.jaxb:jaxb-runtime:2.2.11. Required by: project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools:sdklib:26.2.0 > com.android.tools:repository:26.2.0 > Could not resolve org.glassfish.jaxb:jaxb-runtime:2.2.11. > Could not get resource 'https://repo.maven.apache.org/maven2/org/glassfish/jaxb/jaxb-runtime/2.2.11/jaxb-runtime-2.2.11.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/org/glassfish/jaxb/jaxb-runtime/2.2.11/jaxb-runtime-2.2.11.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve org.glassfish.jaxb:jaxb-runtime:2.2.11. > Could not get resource 'https://jcenter.bintray.com/org/glassfish/jaxb/jaxb-runtime/2.2.11/jaxb-runtime-2.2.11.pom'. > Could not GET 'https://jcenter.bintray.com/org/glassfish/jaxb/jaxb-runtime/2.2.11/jaxb-runtime-2.2.11.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.google.jimfs:jimfs:1.1. Required by: project : > com.android.tools.build:gradle:3.2.0 > com.android.tools.build:builder:3.2.0 > com.android.tools:sdklib:26.2.0 > com.android.tools:repository:26.2.0 > Could not resolve com.google.jimfs:jimfs:1.1. > Could not get resource 'https://repo.maven.apache.org/maven2/com/google/jimfs/jimfs/1.1/jimfs-1.1.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/com/google/jimfs/jimfs/1.1/jimfs-1.1.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > Could not resolve com.google.jimfs:jimfs:1.1. > Could not get resource 'https://jcenter.bintray.com/com/google/jimfs/jimfs/1.1/jimfs-1.1.pom'. > Could not GET 'https://jcenter.bintray.com/com/google/jimfs/jimfs/1.1/jimfs-1.1.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 1m 9s Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils Building the android package failed! -- For more information, run this command with --verbose. -- Skipping D:/develop/QT/QT_5.12.6/5.12.6/android_arm64_v8a/plugins/iconengines/libqsvgicon.so. It has unmet dependencies: lib/libQt5Svg.so. -- Skipping D:/develop/QT/QT_5.12.6/5.12.6/android_arm64_v8a/plugins/imageformats/libqsvg.so. It has unmet dependencies: lib/libQt5Svg.so. 22:45:48: 进程"D:\develop\QT\QT_5.12.6\5.12.6\android_arm64_v8a\bin\androiddeployqt.exe"退出,退出代码 14 。 Error while building/deploying project 397_QtProject (kit: Android for arm64-v8a (Clang Qt 5.12.6 for Android ARM64-v8a)) When executing step "Build Android APK" 22:45:48: Elapsed time: 01:25.
最新发布
12-07
<think>首先,用户的问题是关于Android项目构建失败的几个问题:无法解析依赖项(PKIX path building failed),QML导入无法解析,以及构建Android包失败。用户提到了具体的错误:无法解析org.jetbrains.kotlin:kotlin-stdlib-jre8:1.2.0,出现PKIX路径构建失败错误。 现在,用户提供了几个引用,但这些引用是站内引用,我需要参考它们,但用户说这些引用仅供参考,不是真正的需求,我应该更多参考用户上一次的问题和我的回答。但在这个对话中,这是第一次交互,所以没有上一次的我的回答。用户说:"上述引用仅供参考,并不是用户真正的需求,请尽可能多的参考用户上一次的问题和你的回答。" 但在这个上下文中,没有上一次的问题和回答,所以我应该基于当前问题解决。 用户的当前问题是:"我想解决Android项目构建时无法解析依赖项,出现PKIX路径构建失败错误,以及QML导入无法解析、构建Android包失败等问题",然后具体描述了问题。 现在,引用提供了一些信息: - 引用[1]:关于添加Kotlin BOM来解决某些问题。 - 引用[2]:关于在Android 9.0上解决闪退问题,需要添加Apache HTTP客户端库。 - 引用[3]:关于单元测试中JSONObject冲突的问题。 - 引用[4]:关于如何找到android-json依赖。 - 引用[5]:关于NFC和SIM卡测试中jar包兼容性问题。 这些引用似乎与用户的直接问题不太相关。用户的直接问题是PKIX路径构建失败(SSL证书问题)和QML导入问题。 关键问题: 1. PKIX path building failed:这通常是由于SSL证书验证失败引起的,可能是网络问题、代理设置或仓库证书问题。 2. QML import cannot be resolved:QML是Qt的一部分,可能用户在Android项目中使用Qt,需要确保Qt依赖正确设置。 3. 构建Android包失败:可能由于上述依赖问题导致。 用户提到了具体的依赖:org.jetbrains.kotlin:kotlin-stdlib-jre8:1.2.0。注意,这个版本1.2.0很旧。Kotlin的当前版本高得多,1.2.0可能不再被支持或仓库中不可用。 解决方案步骤: 1. **解决PKIX错误**: - 这通常意味着Maven或Gradle无法验证仓库的SSL证书。可能原因包括: - 系统时间不正确。 - 使用HTTP而不是HTTPS(但Maven Central要求HTTPS)。 - 公司代理或防火墙干扰。 - 需要导入仓库的证书到Java keystore。 - 解决方法: - 检查网络连接和代理设置。 - 确保使用正确的仓库URL(如https://repo.maven.apache.org/maven2/)。 - 尝试更新Java证书:`keytool -importcert -alias mavenCentral -file /path/to/certificate.crt -keystore $JAVA_HOME/lib/security/cacerts` - 在Gradle中,可以临时禁用SSL验证(不推荐),但最好修复证书问题。 2. **更新Kotlin依赖**: - 用户使用的Kotlin版本1.2.0非常旧。建议升级到更新的版本。 - 例如,使用Kotlin BOM(Bill of Materials)来管理版本,如引用[1]所示:`implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0"))` - 在build.gradle中,更新Kotlin插件和依赖。 3. **解决QML导入问题**: - QML是Qt Quick的语言。如果项目使用Qt for Android,需要确保Qt安装正确,并在项目中配置。 - 检查Qt版本和Android SDK/NDK设置。 - 确保在Qt Creator或构建脚本中正确设置了QML路径。 - 如果使用Gradle,可能需要添加Qt相关的插件或依赖。 4. **构建Android包失败**: - 可能由于依赖解析失败导致。先解决PKIX错误和依赖问题。 - 确保所有依赖项可用且版本兼容。 - 清理和重建项目:`./gradlew clean build` 结构化回答: - 由于用户要求结构清晰,逐步解决问题。 - 使用中文。 - 在行内数学表达式使用$...$,但在这个上下文中可能不涉及数学,所以可能不需要。 - 独立公式使用$$...$$,但同样可能不适用。 - 在末尾添加引用标识。 - 生成相关问题。 回答结构: 1. **介绍问题**:总结用户的问题。 2. **逐步解决方案**: a. 解决PKIX路径构建失败错误。 b. 更新Kotlin依赖。 c. 解决QML导入问题。 d. 构建Android包的通用建议。 3. **引用相关部分**:在适当的地方引用提供的引用。 4. **生成相关问题**。 引用应用: - 引用[1]:关于Kotlin BOM,可以用于管理Kotlin版本。 - 其他引用不太直接相关,但可以提到引用[2]和[5]是关于兼容性问题,但不是核心问题。 最终,生成相关问题。 </think> ### Android项目构建失败解决方案:依赖解析错误与QML导入问题 针对您描述的Android项目构建失败问题,主要包括: - 无法解析依赖项(如 `org.jetbrains.kotlin:kotlin-stdlib-jre8:1.2.0`),出现 `PKIX path building failed` 错误。 - QML导入无法解析。 - 构建Android包失败。 这些问题通常由SSL证书验证失败、依赖版本过旧或配置错误引起。以下是逐步解决方案,基于标准Android开发实践和您提供的引用([^1][^2][^3][^4][^5])进行优化。 --- ### 步骤1: 解决PKIX路径构建失败错误(依赖解析失败) `PKIX path building failed` 是SSL证书验证错误,表明Gradle无法安全连接到Maven仓库。常见原因包括系统证书过时、代理设置问题或仓库URL配置错误。 #### 解决方案: 1. **更新系统证书** (推荐优先尝试): - 打开终端,运行以下命令导入Maven Central的证书: ```bash keytool -importcert -alias mavenCentral -file "path/to/maven_cert.crt" -keystore "$JAVA_HOME/lib/security/cacerts" -storepass changeit ``` 证书文件可从浏览器访问 https://repo.maven.apache.org 下载。 - 如果无法手动下载,尝试更新Java证书库: ```bash sudo apt-get install ca-certificates-java # Linux ``` 或手动替换 `$JAVA_HOME/lib/security/cacerts` 文件。 2. **检查网络和代理设置**: - 如果使用公司代理,在 `gradle.properties` 中添加代理配置: ```properties systemProp.http.proxyHost=your.proxy.com systemProp.http.proxyPort=8080 systemProp.https.proxyHost=your.proxy.com systemProp.https.proxyPort=8080 ``` - 临时绕过SSL验证(仅测试环境使用,不推荐生产): ```properties systemProp.jdk.tls.allowUnsafeRenegotiation=true ``` 3. **清理Gradle缓存**: - 删除本地缓存目录: ```bash rm -rf ~/.gradle/caches/ # Linux/macOS ``` 或Windows下删除 `C:\Users\<user>\.gradle\caches`。 - 重新同步项目:在Android Studio中点击 **File > Sync Project with Gradle Files**。 如果问题未解决,可能是依赖版本过旧(如Kotlin 1.2.0已废弃),进入下一步。 --- ### 步骤2: 更新Kotlin依赖并修复冲突 您提到的 `org.jetbrains.kotlin:kotlin-stdlib-jre8:1.2.0` 版本过旧(最新Kotlin版本为1.9+),容易导致兼容性问题。参考引用[^1]的Kotlin BOM方案: 1. **升级Kotlin版本**: - 在项目的根 `build.gradle` 中,更新Kotlin插件: ```groovy buildscript { dependencies { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.22" // 使用最新稳定版 } } ``` - 在模块的 `build.gradle` 中添加BOM(Bill of Materials)管理依赖[^1]: ```groovy dependencies { implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.9.22")) // 统一版本管理 implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8" // 使用jdk8替代jre8 } ``` 2. **检查依赖冲突**: - 类似引用[^3]中的JSONObject冲突,运行命令检测: ```bash ./gradlew app:dependencies --configuration releaseRuntimeClasspath ``` - 如果存在重复依赖,在 `build.gradle` 中排除冲突项: ```groovy implementation("some.library") { exclude group: 'org.json', module: 'json' // 示例:排除重复JSON库 } ``` --- ### 步骤3: 解决QML导入无法解析问题 QML导入失败通常由Qt配置错误或路径缺失引起,尤其当项目涉及混合开发(如Qt for Android)。 #### 解决方案: 1. **验证Qt安装和配置**: - 确保已安装正确版本的 **Qt for Android**(建议Qt 6.5+)。 - 在Android Studio中,检查 **File > Project Structure > SDK Location**,确认NDK和CMake路径正确。 2. **配置CMakeLists.txt或build.gradle**: - 在模块的 `CMakeLists.txt` 中添加QML路径: ```cmake include_directories(/path/to/Qt/6.5.0/android_arm64_v8a/include) # 替换为实际路径 ``` - 或在 `build.gradle` 中指定QML资源目录: ```groovy android { sourceSets { main { res.srcDirs += ['src/main/qml'] # 指向QML文件目录 } } } ``` 3. **同步Qt和Android环境**: - 运行Qt Creator的 **Android向导** 重新生成配置。 - 如果使用命令行构建,确保环境变量设置: ```bash export ANDROID_SDK_ROOT=/path/to/android-sdk export ANDROID_NDK_ROOT=/path/to/ndk ``` --- ### 步骤4: 通用构建修复和预防措施 1. **全局仓库设置**: - 在根 `build.gradle` 中添加可靠的仓库源: ```groovy allprojects { repositories { mavenCentral() google() // 必须添加Google仓库 jcenter() { content { includeModule("org.jetbrains.kotlin", "kotlin-stdlib") // 兼容旧库 } } } } ``` 2. **Android Manifest兼容性调整**: - 针对高版本Android(如9.0+),参考引用,在 `AndroidManifest.xml` 中添加: ```xml <uses-library android:name="org.apache.http.legacy" android:required="false" /> ``` 3. **最终构建命令**: - 清理并重新构建: ```bash ./gradlew clean assembleDebug ``` --- ### 关键要点 - **PKIX错误**:优先修复SSL证书或代理问题(步骤1)。 - **依赖过时**:升级Kotlin至1.9+并使用BOM管理(步骤2,参考)。 - **QML问题**:确保Qt路径正确(步骤3)。 - 如果问题持续,检查日志 `build/outputs/logs` 定位具体错误。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值