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. Why does we have problem with gradle? Do you have?
Qt 6.11 is out! See what's new in the release blog

Why does we have problem with gradle? Do you have?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 222 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.
  • R Offline
    R Offline
    robys1234
    wrote last edited by robys1234
    #1

    I get these messages:

    :-1: error: FAILURE: Build failed with an exception.

    :-1: error: * What went wrong:
    A problem occurred configuring root project 'android-build-appOmniUnitConverter'.

    Could not resolve all artifacts for configuration 'classpath'.
    Could not find com.android.tools.build:gradle:9.0.0.
    :-1: error: Searched in the following locations:
    - https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/9.0.0/gradle-9.0.0.pom
    - https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/9.0.0/gradle-9.0.0.pom
    Required by:
    buildscript of root project 'android-build-appOmniUnitConverter'

    • 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 from a Build Scan (powered by Develocity).
    Get more help at https://help.gradle.org.

    BUILD FAILED in 9s

    :-1: error: Building the android package failed!
    -- For more information, run this command with --verbose.

    1 Reply Last reply
    0
    • Nils SjobergN Offline
      Nils SjobergN Offline
      Nils Sjoberg
      wrote last edited by
      #2

      The problem is almost always a network/proxy that prevents Gradle from downloading AGP 9.0.0 (the version itself is fine) — try running with --refresh-dependencies, and if that doesn't help, check/set the proxy in gradle.properties.

      "What's up, Doc?"

      R 1 Reply Last reply
      1
      • Nils SjobergN Nils Sjoberg

        The problem is almost always a network/proxy that prevents Gradle from downloading AGP 9.0.0 (the version itself is fine) — try running with --refresh-dependencies, and if that doesn't help, check/set the proxy in gradle.properties.

        R Offline
        R Offline
        robys1234
        wrote last edited by
        #3

        @Nils-Sjoberg Thank you, Nils. How to use "--refresh-dependencies"? I tried again as always and now I got these errors:

        :-1: warning: Warning: Signing a debug or profile package.
        :-1: error: FAILURE: Build failed with an exception.
        :-1: error: * What went wrong:
        A problem occurred configuring root project 'android-build-appOmniUnitConverter'.
        > Could not resolve all artifacts for configuration 'classpath'.
           > Could not find com.android.tools.build.jetifier:jetifier-core:1.0.0-beta10.
             Searched in the following locations:
               - https://dl.google.com/dl/android/maven2/com/android/tools/build/jetifier/jetifier-core/1.0.0-beta10/jetifier-core-1.0.0-beta10.pom
        :-1: error:        - https://repo.maven.apache.org/maven2/com/android/tools/build/jetifier/jetifier-core/1.0.0-beta10/jetifier-core-1.0.0-beta10.pom
             Required by:
                 buildscript of root project 'android-build-appOmniUnitConverter' > com.android.tools.build:gradle:9.0.0
                 buildscript of root project 'android-build-appOmniUnitConverter' > com.android.tools.build:gradle:9.0.0 > androidx.databinding:databinding-compiler-common:9.0.0
                 buildscript of root project 'android-build-appOmniUnitConverter' > com.android.tools.build:gradle:9.0.0 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta10
           > Could not find com.android.tools.analytics-library:tracker:32.0.0.
             Searched in the following locations:
               - https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/tracker/32.0.0/tracker-32.0.0.pom
               - https://repo.maven.apache.org/maven2/com/android/tools/analytics-library/tracker/32.0.0/tracker-32.0.0.pom
             Required by:
                 buildscript of root project 'android-build-appOmniUnitConverter' > com.android.tools.build:gradle:9.0.0 > com.android.tools.build:builder:9.0.0
           > Could not find com.android.tools.build:manifest-merger:32.0.0.
             Searched in the following locations:
               - https://dl.google.com/dl/android/maven2/com/android/tools/build/manifest-merger/32.0.0/manifest-merger-32.0.0.pom
               - https://repo.maven.apache.org/maven2/com/android/tools/build/manifest-merger/32.0.0/manifest-merger-32.0.0.pom
             Required by:
                 buildscript of root project 'android-build-appOmniUnitConverter' > com.android.tools.build:gradle:9.0.0 > com.android.tools.build:builder:9.0.0
           > Could not find com.android:zipflinger:9.0.0.
             Searched in the following locations:
               - https://dl.google.com/dl/android/maven2/com/android/zipflinger/9.0.0/zipflinger-9.0.0.pom
               - https://repo.maven.apache.org/maven2/com/android/zipflinger/9.0.0/zipflinger-9.0.0.pom
             Required by:
                 buildscript of root project 'android-build-appOmniUnitConverter' > com.android.tools.build:gradle:9.0.0 > com.android.tools.build:builder:9.0.0
                 buildscript of root project 'android-build-appOmniUnitConverter' > com.android.tools.build:gradle:9.0.0 > com.android.tools.build:builder:9.0.0 > com.android:signflinger:9.0.0
           > Could not find com.android.tools.build:apksig:9.0.0.
             Searched in the following locations:
               - https://dl.google.com/dl/android/maven2/com/android/tools/build/apksig/9.0.0/apksig-9.0.0.pom
               - https://repo.maven.apache.org/maven2/com/android/tools/build/apksig/9.0.0/apksig-9.0.0.pom
             Required by:
                 buildscript of root project 'android-build-appOmniUnitConverter' > com.android.tools.build:gradle:9.0.0 > com.android.tools.build:builder:9.0.0
                 buildscript of root project 'android-build-appOmniUnitConverter' > com.android.tools.build:gradle:9.0.0 > com.android.tools.build:builder:9.0.0 > com.android:signflinger:9.0.0
           > Could not find com.android.tools.build:apkzlib:9.0.0.
             Searched in the following locations:
               - https://dl.google.com/dl/android/maven2/com/android/tools/build/apkzlib/9.0.0/apkzlib-9.0.0.pom
               - https://repo.maven.apache.org/maven2/com/android/tools/build/apkzlib/9.0.0/apkzlib-9.0.0.pom
             Required by:
                 buildscript of root project 'android-build-appOmniUnitConverter' > com.android.tools.build:gradle:9.0.0 > com.android.tools.build:builder:9.0.0
        
        * 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 from a Build Scan (powered by Develocity).
        > Get more help at https://help.gradle.org.
        
        BUILD FAILED in 15s
        :-1: error: Building the android package failed!
          -- For more information, run this command with --verbose.
        
        
        1 Reply Last reply
        0
        • Nils SjobergN Offline
          Nils SjobergN Offline
          Nils Sjoberg
          wrote last edited by Nils Sjoberg
          #4
          ./gradlew clean build --refresh-dependencies
          

          "What's up, Doc?"

          1 Reply Last reply
          0

          • Login

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