* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all files for configuration ':classpath'.
> Could not download gradle-8.4.0-alpha04.jar (com.android.tools.build:gradle:8.4.0-alpha04)
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/8.4.0-alpha04/gradle-8.4.0-alpha04.jar'.
> Tag mismatch!
> Could not download builder-8.4.0-alpha04.jar (com.android.tools.build:builder:8.4.0-alpha04)
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/8.4.0-alpha04/builder-8.4.0-alpha04.jar'.
> Tag mismatch!
> Could not download protos-31.4.0-alpha04.jar (com.android.tools.analytics-library:protos:31.4.0-alpha04)
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/protos/31.4.0-alpha04/protos-31.4.0-alpha04.jar'.
> Tag mismatch!
> Could not download apksig-8.4.0-alpha04.jar (com.android.tools.build:apksig:8.4.0-alpha04)
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/apksig/8.4.0-alpha04/apksig-8.4.0-alpha04.jar'.
> Tag mismatch!
* 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.
hi im a beginner in this, i have tried changing the version of the gradle plugin but it does not work. fyi im using distributionUrl=https://services.gradle.org/distributions/gradle-8.5-all.zip and java 21 ,pls enlighten me on this .tq
“Tag mismatch” is an exception from the HTTPS connection.
It might mean your Java is corrupt, or it might mean you are connecting through a proxy you did not configure properly, or it could mean you need to connect thrrough a proxy but don’t, or it could mean you have some firewall or anti-virus distrubing, or it could mean there is a man-in-the-middle attack going on, …
now it comes out a different one, what could goes wrong?
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Failed to transform common-31.4.0-alpha04.jar (com.android.tools:common:31.4.0-alpha04) to match attributes {artifactType=enumerated-runtime-classes, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for JetifyTransform: C:\Users\nurul\.gradle\caches\modules-2\files-2.1\com.android.tools\common\31.4.0-alpha04\4e2691a79f9efbd489594c02854081a2a64c6461\common-31.4.0-alpha04.jar.
> Failed to transform 'C:\Users\nurul\.gradle\caches\modules-2\files-2.1\com.android.tools\common\31.4.0-alpha04\4e2691a79f9efbd489594c02854081a2a64c6461\common-31.4.0-alpha04.jar' using Jetifier. Reason: AmbiguousStringJetifierException, message: The given artifact contains a string literal with a package reference 'android.support.design.widget' that cannot be safely rewritten. Libraries using reflection such as annotation processors need to be updated manually to add support for androidx.. (Run with --stacktrace for more details.)
This is a known exception, and Jetifier won't be able to jetify this library.
Suggestions:
- If you believe this library doesn't need to be jetified (e.g., if it already supports AndroidX, or if it doesn't use support libraries/AndroidX at all), add android.jetifier.ignorelist = {comma-separated list of regular expressions (or simply names) of the libraries that you don't want to be jetified} to the gradle.properties file.
- If you believe this library needs to be jetified (e.g., if it uses old support libraries and breaks your app if it isn't jetified), contact the library's authors to update this library to support AndroidX and use the supported version once it is released.
If you need further help, please leave a comment at https://issuetracker.google.com/issues/140747218.
> Failed to transform bundletool-1.15.6.jar (com.android.tools.build:bundletool:1.15.6) to match attributes {artifactType=enumerated-runtime-classes, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for JetifyTransform: C:\Users\nurul\.gradle\caches\modules-2\files-2.1\com.android.tools.build\bundletool\1.15.6\d804e9cf5387426500061a8e0eb5602d50a49e56\bundletool-1.15.6.jar.
> Failed to transform 'C:\Users\nurul\.gradle\caches\modules-2\files-2.1\com.android.tools.build\bundletool\1.15.6\d804e9cf5387426500061a8e0eb5602d50a49e56\bundletool-1.15.6.jar' using Jetifier. Reason: AmbiguousStringJetifierException, message: The given artifact contains a string literal with a package reference 'android.support.design.widget' that cannot be safely rewritten. Libraries using reflection such as annotation processors need to be updated manually to add support for androidx.. (Run with --stacktrace for more details.)
This is a known exception, and Jetifier won't be able to jetify this library.
Suggestions:
- If you believe this library doesn't need to be jetified (e.g., if it already supports AndroidX, or if it doesn't use support libraries/AndroidX at all), add android.jetifier.ignorelist = {comma-separated list of regular expressions (or simply names) of the libraries that you don't want to be jetified} to the gradle.properties file.
- If you believe this library needs to be jetified (e.g., if it uses old support libraries and breaks your app if it isn't jetified), contact the library's authors to update this library to support AndroidX and use the supported version once it is released.
If you need further help, please leave a comment at https://issuetracker.google.com/issues/140747218.
* 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 21s
Running Gradle task 'assembleDebug'... 22.3s
Exception: Gradle task assembleDebug failed with exit code 1