Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Could not resolve all artifacts for configuration ':classpath'

Could not resolve all artifacts for configuration ':classpath'

Scheduled Pinned Locked Moved Solved Mobile and Embedded
gradleandroidbuild
2 Posts 2 Posters 5.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kyeiv
    wrote on 27 Oct 2020, 11:26 last edited by
    #1

    Hello,
    I am using Ubuntu 20, Qt 5.15.1 and QtCreator provided with it.
    OpenJDK 9.0.4 | NDK 21.1.6352462 | SDK 3.0

    I am trying to launch Android Example Mapviewer but at the end of the build i get:

    WARNING: An illegal reflective access operation has occurred
    WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/home/krzysztof/.gradle/wrapper/dists/gradle-5.6.4-bin/bxirm19lnfz6nurbatndyydux/gradle-5.6.4/lib/groovy-all-1.3-2.5.4.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
    WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
    WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
    WARNING: All illegal access operations will be denied in a future release
    
    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 com.android.tools.build:gradle:3.6.0.
         Required by:
             project :
          > Could not resolve com.android.tools.build:gradle:3.6.0.
             > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.6.0/gradle-3.6.0.pom'.
                > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.6.0/gradle-3.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 com.android.tools.build:gradle:3.6.0.
             > Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.6.0/gradle-3.6.0.pom'.
                > Could not GET 'https://repo.jfrog.org/artifactory/libs-release-bintray/com/android/tools/build/gradle/3.6.0/gradle-3.6.0.pom?referrer'.
                   > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    

    What can I do about it?

    P 1 Reply Last reply 27 Oct 2020, 11:44
    0
    • K Kyeiv
      27 Oct 2020, 11:26

      Hello,
      I am using Ubuntu 20, Qt 5.15.1 and QtCreator provided with it.
      OpenJDK 9.0.4 | NDK 21.1.6352462 | SDK 3.0

      I am trying to launch Android Example Mapviewer but at the end of the build i get:

      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/home/krzysztof/.gradle/wrapper/dists/gradle-5.6.4-bin/bxirm19lnfz6nurbatndyydux/gradle-5.6.4/lib/groovy-all-1.3-2.5.4.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
      WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
      WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      WARNING: All illegal access operations will be denied in a future release
      
      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 com.android.tools.build:gradle:3.6.0.
           Required by:
               project :
            > Could not resolve com.android.tools.build:gradle:3.6.0.
               > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.6.0/gradle-3.6.0.pom'.
                  > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.6.0/gradle-3.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 com.android.tools.build:gradle:3.6.0.
               > Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.6.0/gradle-3.6.0.pom'.
                  > Could not GET 'https://repo.jfrog.org/artifactory/libs-release-bintray/com/android/tools/build/gradle/3.6.0/gradle-3.6.0.pom?referrer'.
                     > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
      

      What can I do about it?

      P Offline
      P Offline
      Pablo J. Rogina
      wrote on 27 Oct 2020, 11:44 last edited by
      #2

      @Kyeiv said in Could not resolve all artifacts for configuration ':classpath':

      OpenJDK 9.0.4

      You need to use Java 8, see here.

      Versions higher than 8 might cause issues for the Android SDK command-line tools.

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      2

      2/2

      27 Oct 2020, 11:44

      • Login

      • Login or register to search.
      2 out of 2
      • First post
        2/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved