Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
55 views

Unable to build Flutter project due to "Execution failed for task ':app:checkDebugAarMetadata'."

I am currently experiencing this issue which causes me unable to build my Flutter project. Execution failed for task ':app:checkDebugAarMetadata'. A failure occurred while executing com.android.build....
Leong's user avatar
  • 328
2 votes
0 answers
75 views

Desugaring for an APK with minSdk=23 (Android 6)

I’m trying to understand desugar_jdk_libs and the impact on a minSdk=23 APK. Having recently added the kotlinx datetime API, I noticed the app was crashing on older versions of Android due to the lack ...
Mark's user avatar
  • 7,738
5 votes
2 answers
5k views

coreLibraryDesugaringEnabled not working with AGP 8.30

I recently updated my project to AGP 8.3.0. And since then I am getting errors: Dependency ':x' requires core library desugaring to be enabled for :y. I have coreLibraryDesugaring enabled, Groovy: ...
syntax_error's user avatar
2 votes
0 answers
167 views

Does Android's coreLibraryDesugaring provide any Java features not already available on API level 26?

Desugaring makes many java 8 and java 11 features available for apps with lower minSdkVersions. With a minSdkVersion of 26 or higher, is there any benefit to continued use of the desugaring library? I ...
Kirk's user avatar
  • 193
2 votes
1 answer
107 views

How can I debug java.time classes in an Android app with desugaring enabled?

In the app that I develop we use ZonedDateTime and some other classes from java.time package very often. And from time to time there is a need for debugging. I am facing such problems as: ...
Inliner's user avatar
  • 1,669
0 votes
1 answer
386 views

Usage of Non-SDK interfaces. Desugaring

I am checking my app in Firebase, before sending it to Play Store, and I receive this warnings: Usage of non-SDK interfaces Ljava/util/Collections$SynchronizedCollection;-><init>(Ljava/util/...
jlsogorb's user avatar
2 votes
1 answer
722 views

android: Desugaring of ZonedDateTime results in TimeOffset being null

I'm trying to migrate from ThreeTen Android Backport to java.time with desugaring. On debug builds this works perfectly, but on release builds (minifyEnabled = true) I get a weird error on runtime. ...
goemic's user avatar
  • 1,347
15 votes
1 answer
5k views

java.lang.NoClassDefFoundError: Failed resolution of: Ljava/lang/Math8 when upgrading Gradle and Android Gradle Plugin

I'm working on an Android app with a Gradle version of 7.1.1 and an Android Gradle Plugin version of 7.0.0. When I upgrade to Gradle version 7.2 and Android Gradle Plugin version 7.1.1, I get the ...
Ryan Payne's user avatar
  • 6,361
3 votes
0 answers
221 views

Generate desugared library for B4A

I'm making an Android library for B4A framework. Here's the situation: My Android library uses Java8 features (such as Lambda) B4A (Basic4Android) uses legacy dex (instead of d8) to make the apps and ...
Mahdi-Malv's user avatar
  • 19.4k
2 votes
1 answer
1k views

Desugaring - Java 8 Stream API with Proguard crash in release version

The app crashes only in its release version with desugaring Java 8 for Android. compileOptions { // Flag to enable support for the new language APIs coreLibraryDesugaringEnabled true ...
Bitwise DEVS's user avatar
  • 3,599
0 votes
1 answer
669 views

d8 dex compilation fails with desugaring

I can't get d8 dex compiler to compile my jar package: $ wget https://repo1.maven.org/maven2/org/mockito/mockito-core/3.6.0/mockito-core-3.6.0.jar $ java -jar d8_2.1.86.jar --output /tmp mockito-core-...
OrenIshShalom's user avatar
0 votes
1 answer
743 views

How to get a class/interface used by third party dependency when it is desugared?

so I have this specific warning, I use desugaring and this warning comes up. one of my third party dependencies use this Bifunction but since it can't be found, app crashes. What I've found is that ...
keivan shirkoubian's user avatar
2 votes
3 answers
12k views

Cannot resolve external dependency com.android.tools:desugar_jdk_libs:1.0.9 because no repositories are defined

I am using Android Studio version 4.1.2. My project was working fine. I updated it to Android Studio 4.1.3. I still get the errors on reinstalling AS 4.1.2. I started getting the following error: ...
Harshal Kshatriya's user avatar
7 votes
1 answer
723 views

Android coreLibraryDesugaringEnabled, connected test crash with NoSuchMethodError

I added coreLibraryDesugaringEnabled to our app, and it works fine for normal app runs. compileOptions { coreLibraryDesugaringEnabled true } and coreLibraryDesugaring 'com.android.tools:...
Jeffrey Blattman's user avatar
2 votes
0 answers
298 views

Why does Android Studio Lint report "Calling new methods on older versions" on Date functions even after adding desugaring for Java 8 support?

I have the latest AS 4.01 installed, and the latest dependency set up for Java 8 support with coreLibraryDesugaring (1.0.10), and proper compileOptions in my build.gradle file. The following code ...
tfrysinger's user avatar
  • 1,336

15 30 50 per page