Status Update
Comments
ja...@google.com <ja...@google.com>
ac...@google.com <ac...@google.com> #2
Based on the ASM changelog:
ASM 8.0 add support for Java 14.
So seems that all we would need to do is to upgrade ASM dependency. AFAIK the ASM version in jetifier needs to be in sync with what AGP / AS is using. Can you Hung confirm if we could make the upgrade happen?
ha...@gmail.com <ha...@gmail.com> #3
Ah yes, this will likely be solved once we upgrade AGP to use ASM 8.
@#1: As a workaround, you can add the following to your root build.gradle
file to upgrade the tools to ASM 8:
buildscript {
repositories {
...
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.0'
classpath 'org.ow2.asm:asm:8.0'
classpath 'org.ow2.asm:asm-util:8.0'
classpath 'org.ow2.asm:asm-commons:8.0'
}
}
ac...@google.com <ac...@google.com> #4
Disclaimer: there might be breaking API changes, so if it doesn't work we need to update jetifier.
ha...@gmail.com <ha...@gmail.com> #5
I'm sorry for the late response.
ac...@google.com <ac...@google.com> #6
I have exactly the same problem as in i.e. org.bouncycastle:bcprov-jdk15on update from 1.65.01 to 1.66
I changed the gradle.build as proposed in
dependencies {
classpath 'com.android.tools.build:gradle:4.1.0-beta05'
classpath 'org.ow2.asm:asm:8.0'
classpath 'org.ow2.asm:asm-util:8.0'
classpath 'org.ow2.asm:asm-commons:8.0'
classpath 'org.anarres.jarjar:jarjar-gradle:1.0.1' // working jarjar.repackage version
}
}
I used 4.1.0-beta05 to resolve problem reported in
But still having problem:
Execution failed for task ':aTalk:compilePlaystoreDebugJavaWithJavac'.
Could not resolve all files for configuration ':aTalk:playstoreDebugCompileClasspath'. Failed to transform bcprov-jdk15on-1.66.jar (org.bouncycastle:bcprov-jdk15on:1.66) to match attributes {artifactType=android-classes-jar, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-api}. > Execution failed for JetifyTransform: /home/cmeng/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcprov-jdk15on/1.66/ed564ade61defca27e26fb1378a70b22831fc5c1/bcprov-jdk15on-1.66.jar. > Failed to transform '/home/cmeng/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcprov-jdk15on/1.66/ed564ade61defca27e26fb1378a70b22831fc5c1/bcprov-jdk15on-1.66.jar' using Jetifier. Reason: IllegalArgumentException, message: Unsupported class file major version 59. (Run with --stacktrace for more details.) Suggestions: - Check out existing issues at
https://issuetracker.google.com/issues?q=componentid:460323&s=modified_time:desc , it's possible that this issue has already been filed there. - If this issue has not been filed, please report it athttps://issuetracker.google.com/issues/new?component=460323 (run with --stacktrace and provide a stack trace if possible).
Description
####################################################
Please provide all of the following information, otherwise we may not be able to route your bug report.
####################################################
1. Describe the bug or issue that you're seeing.
I made some code changes to remove a button but I keep seeing the Button in the emulator. I tried it in all the APIs 34,35,36 and seeing the same error for Pixel 8 Pro.
2. Attach log files from Android Studio
2A. In the IDE, select the Help..Collect Logs and Diagnostic Data menu option.
2B. Create a diagnostic report and save it to your local computer.
2C. Attach the report to this bug using the Add attachments button.
3. If you know what they are, write the steps to reproduce:
3A.
3B.
3C.
In addition to logs, please attach a screenshot or recording that illustrates the problem.
For more information on how to get your bug routed quickly, see
Build: AI-243.24978.46.2431.13208083, 202503130028
AS: Meerkat | 2024.3.1 Patch 1
AI-243.24978.46.2431.13208083, JRE 21.0.5+-13047016-b750.29x64 JetBrains s.r.o., OS Mac OS X(aarch64) v14.4.1, screens 3024x1964 (200%), 3840x2160 (200%); Retina
Android Gradle Plugin: 8.9.1
Gradle: 8.11.1
Gradle JDK: JetBrains Runtime 21.0.5 - aarch64
NDK: from local.properties: (not specified), latest from SDK: (not found)
CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)
```