Building the android package failed!创建apk失败!

schnappidyq 2023-05-16 09:37:11

构建报错是这样,弄了好久弄不好,该怎么搞啊!

Generating Android Package

Input file: C:/Users/Lenovo/Desktop/schnappi/app-QT/build-HumitureSystem-Android_for_armeabi_v7a_Clang_Qt_5_12_2_for_Android_ARMv7-Release/android-libHumitureSystem.so-deployment-settings.json

Output directory: C:/Users/Lenovo/Desktop/schnappi/app-QT/build-HumitureSystem-Android_for_armeabi_v7a_Clang_Qt_5_12_2_for_Android_ARMv7-Release/android-build/

Application binary: C:/Users/Lenovo/Desktop/schnappi/app-QT/build-HumitureSystem-Android_for_armeabi_v7a_Clang_Qt_5_12_2_for_Android_ARMv7-Release/libHumitureSystem.so

Android build platform: android-29

Install to device: No

-- Skipping D:/Qt/QT_5.12.2/5.12.2/android_armv7/plugins/iconengines/libqsvgicon.so. It has unmet dependencies: lib/libQt5Svg.so.

-- Skipping D:/Qt/QT_5.12.2/5.12.2/android_armv7/plugins/imageformats/libqsvg.so. It has unmet dependencies: lib/libQt5Svg.so.

Downloading https://services.gradle.org/distributions/gradle-5.5.1-bin.zip

 

Exception in thread "main" javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

at sun.security.ssl.Alert.createSSLException(Alert.java:131)

at sun.security.ssl.TransportContext.fatal(TransportContext.java:370)

at sun.security.ssl.TransportContext.fatal(TransportContext.java:313)

at sun.security.ssl.TransportContext.fatal(TransportContext.java:308)

at sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(CertificateMessage.java:652)

at sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate(CertificateMessage.java:471)

at sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume(CertificateMessage.java:367)

at sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:376)

at sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:479)

at sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:457)

at sun.security.ssl.TransportContext.dispatch(TransportContext.java:200)

at sun.security.ssl.SSLTransport.decode(SSLTransport.java:155)

at sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1315)

at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1228)

at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:412)

at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:384)

at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:587)

at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:197)

at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1584)

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1512)

at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268)

at org.gradle.wrapper.Download.downloadInternal(Download.java:66)

at org.gradle.wrapper.Download.download(Download.java:51)

at org.gradle.wrapper.Install$1.call(Install.java:62)

at org.gradle.wrapper.Install$1.call(Install.java:48)

at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:69)

at org.gradle.wrapper.Install.createDist(Install.java:48)

at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)

at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)

Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:439)

at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:306)

at sun.security.validator.Validator.validate(Validator.java:271)

at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:312)

at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:221)

at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:128)

at sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(CertificateMessage.java:636)

... 24 more

Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)

at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)

at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)

at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:434)

... 30 more

Warning: Android platform 'android-29' does not exist in SDK.

Building the android package failed!

-- For more information, run this command with --verbose.

09:31:24: 进程"D:\Qt\QT_5.12.2\5.12.2\android_armv7\bin\androiddeployqt.exe"退出,退出代码 14 。

Error while building/deploying project HumitureSystem (kit: Android for armeabi-v7a (Clang Qt 5.12.2 for Android ARMv7))

When executing step "Build Android APK"

09:31:24: Elapsed time: 00:10.

...全文
319 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
CSDN-Ada助手 2023-05-16
精选
  • 打赏
  • 举报
回复
您的问题已经帮您同步至问答, 链接: https://ask.csdn.net/questions/7945494, 请您保持关注, 如果回答有帮助解决此问题, 麻烦您动动小手给相关的回答点赞, Ada会在评论区为您更新结题状态

16,201

社区成员

发帖
与我相关
我的任务
社区描述
Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
社区管理员
  • Qt
  • 亭台六七座
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧