Status Update
Comments
ze...@google.com <ze...@google.com>
mk...@google.com <mk...@google.com> #2
ma...@gmail.com <ma...@gmail.com> #3
Could you please attach a sample project that shows this issue? Or please explain where and how the resource is defined and referenced.
mk...@google.com <mk...@google.com> #4
Sample project is linked in #1, along with a repro step. Is anything still missing?
ca...@includedhealth.com <ca...@includedhealth.com> #5
mk...@google.com <mk...@google.com> #6
li...@gmail.com <li...@gmail.com> #7
I understand that this is an old issue and I am just starting to investigate this. Is this still a problem?
sg...@google.com <sg...@google.com> #8
mk...@google.com <mk...@google.com> #10
The error is that old kotlin compilers would generate synthetic lambdas with version requirement: 0
as default but it actually should just be empty. An issue was reported on kotlin here:
This is fixed from 1.3.40-dev and forward. The synthetic lambda that fails has metadata version 1.1.15 and therefore compiled by a compiler that generated the invalid entry in version requirement.
We should not throw an error that fails compilation in D8. This is fixed ToT and I will cherry-pick to our release branches.
ap...@google.com <ap...@google.com> #11
Branch: 8.0
commit 6bd39cff22a1ebcd7593622b25fc8cbad2a6d655
Author: Morten Krogh-Jespersen <mkroghj@google.com>
Date: Mon Mar 20 15:34:12 2023
Clean-up parsing kotlin metadata to not throw exception in thread
Bug:
Change-Id: I42c5e986d3b0ea9448bc7a6512934283f88f92c9
M src/main/java/com/android/tools/r8/kotlin/KotlinClassMetadataReader.java
M src/main/java/com/android/tools/r8/kotlin/KotlinMetadataEnqueuerExtension.java
M src/main/java/com/android/tools/r8/kotlin/KotlinMetadataRewriter.java
M src/main/java/com/android/tools/r8/utils/BooleanBox.java
ap...@google.com <ap...@google.com> #12
Branch: 8.0
commit f8b4d858b23c7b59eb4c8357772ed6ad4406a7d7
Author: Morten Krogh-Jespersen <mkroghj@google.com>
Date: Mon Mar 20 15:34:26 2023
Version 8.0.36
Bug:
Change-Id: I155be22a9466968f82f4d450861670332754f91a
M src/main/java/com/android/tools/r8/Version.java
mi...@wearetriple.com <mi...@wearetriple.com> #13
I will add in manually for now. I can also confirm that the fix works when added manually like:
buildscript {
repositories {
maven {
url '
}
}
}
dependencies {
classpath 'com.android.tools:r8:8.0.36'
}
mk...@google.com <mk...@google.com> #14
Our 8.0 branch corresponds to Android Studio Flamingo, and it should be in for the final release.
tw...@gmail.com <tw...@gmail.com> #15
เรียนรู้แอนดรอยด์
me...@gmail.com <me...@gmail.com> #16
sg...@google.com <sg...@google.com> #17
This is fixed from AGP 8.0, so please ensure that version or higher is used.
Description
AGPBI: {"kind":"error","text":"com.android.tools.r8.internal.Fq: No VersionRequirement with the given id in the table","sources":[{}],"tool":"D8"}
com.android.tools.r8.internal.Fq: No VersionRequirement with the given id in the table
after upgrading:
from:
com.android.tools.build:gradle:7.2.2
to:
com.android.tools.build:gradle:7.4.0
I also see lots of:
"Expected stack map table for method with non-linear control flow.","sources":[{"file":"/Users/...../build/intermediates/transforms/APMSPlugin/aamOglArDiviP4LogCbNosanLibcpub/debug/613.jar"}],"tool":"D8"}
at the end I see:
> There was a failure while executing work items
> A failure occurred while executing com.android.build.gradle.internal.dexing.DexWorkAction
> Failed to process: /Users/.../app/build/intermediates/transforms/APMSPlugin/aamOglArDiviP4LogCbNosanLibcpub/debug/610.jar
I also see:
Caused by: [CIRCULAR REFERENCE: com.android.tools.r8.internal.Fq: No VersionRequirement with the given id in the table]
I checked lots of things, but have no idea what is the cause of the problem. I was upgrading dependencies, and switching various options in the gradle.properties.