Error when compiling apk - unable to find valid certification

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hello,

    It has been roughly a year since I've exported an apk, and have never had an issue before. Recently tried exporting an apk from a project I've had no problem exporting from several times in the past and got this error, though:

    --------------------------------------------------------------------------------------

    Downloading Please login to see this link.

    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.Alerts.getSSLException(Alerts.java:192)
    at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)
    at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
    at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
    at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1509)
    at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
    at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
    at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
    at sun.net.Please login to see this link.
    at sun.net.Please login to see this link.
    at sun.net.Please login to see this link.
    at sun.net.Please login to see this link.
    at sun.net.Please login to see this link.
    at sun.net.Please login to see this link.
    at sun.net.Please login to see this link.
    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:387)
    at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)
    at sun.security.validator.Validator.validate(Validator.java:260)
    at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
    at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)
    at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)
    at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1491)
    ... 22 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:146)
    at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:131)
    at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
    at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)
    ... 28 more
    --------------------------------------------------------------------------------------

    A couple of notes, I am not on a secured network, nor using a proxy or VPN.

    I'm using CF 2.5 R295.10 and have just updated Android Studio to the latest jellyfish version.

    My Pathname of the JDK directory is pointing to jdk1.8.0_65, and the Pathname of the Android SDK directory is \AppData\Local\Android\Sdk

    Any help would be much appreciated!

  • Thank you for the quick response, Fernando!

    Ok, we're getting somewhere! It seems that resolved my initial issue, but now I'm getting a different error:

    --------------------------------------------------------------------------------------

    Downloading Please login to see this link.
    ..............................................................................................................................................................
    Unzipping C:\Users\bitbite\.gradle\wrapper\dists\gradle-7.5-all\6qsw290k5lz422uaf8jf6m7co\gradle-7.5-all.zip to C:\Users\bitbite\.gradle\wrapper\dists\gradle-7.5-all\6qsw290k5lz422uaf8jf6m7co
    Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
    > Task :app:preBuild UP-TO-DATE
    > Task :app:preDebugBuild UP-TO-DATE
    > Task :app:compileDebugAidl NO-SOURCE
    > Task :app:compileDebugRenderscript NO-SOURCE
    > Task :app:generateDebugBuildConfig
    > Task :app:javaPreCompileDebug
    > Task :app:checkDebugAarMetadata FAILED
    > Task :app:generateDebugResValues

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':app:checkDebugAarMetadata'.
    > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
    > The minCompileSdk (31) specified in a
    dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
    is greater than this module's compileSdkVersion (android-29).
    Dependency: androidx.appcompat:appcompat:1.4.1.
    AAR metadata file: C:\Users\bitbite\.gradle\caches\transforms-3\f052799bd1514fad727c14656fc8e64d\transformed\appcompat-1.4.1\META-INF\com\android\build\gradle\aar-metadata.properties.

    * 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 Please login to see this link.

    Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

    You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

    See Please login to see this link.

    BUILD FAILED in 1m 7s
    4 actionable tasks: 4 executed

    --------------------------------------------------------------------------------------


    My Build API is set to 29, with minimum Android version set to 4.4 and Target Android Version set to 8.0

    Display Mode is OpenGL ES 1.1 though i'm not sure if that has to do with anything.


    EDIT: And solved! I followed Linky's advice from another thread, and changed my settings as such:


    App Android properties:

    • Build API: 33
    • Minimum Android version: 5.0
    • Target Android version: 13.0

    Thanks again!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!