Android Question 14.2 beta R8 error compiling

Scantech

Well-Known Member
Licensed User
Longtime User
B4A Version: 14.20 BETA #1
Parsing code. (4.88s)
Java Version: 19
Building folders structure. (0.27s)
Compiling code. (3.70s)
Compiling layouts code. (0.10s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Compiling resources (0.69s)
Linking resources (28.14s)
build tools: 36.0.0, android jar: android-36
Compiling generated Java code. (3.86s)
Selecting dexer based on #R8Optimizer flag. (0.00s)
Dexing and optimizing with R8 Error
Error: Missing class androidx.concurrent.futures.AbstractResolvableFuture (referenced from: void com.google.firebase.concurrent.DelegatingScheduledFuture.<init>(com.google.firebase.concurrent.DelegatingScheduledFuture$Resolver) and 1 other context)
Missing class androidx.concurrent.futures.CallbackToFutureAdapter$Resolver (referenced from: com.google.common.util.concurrent.ListenableFuture androidx.privacysandbox.ads.adservices.java.internal.CoroutineAdapterKt.asListenableFuture(kotlinx.coroutines.Deferred, java.lang.Object))
Missing class androidx.concurrent.futures.CallbackToFutureAdapter (referenced from: com.google.common.util.concurrent.ListenableFuture androidx.privacysandbox.ads.adservices.java.internal.CoroutineAdapterKt.asListenableFuture(kotlinx.coroutines.Deferred, java.lang.Object))
Missing class androidx.datastore.core.CorruptionException (referenced from: androidx.datastore.preferences.core.Preferences com.google.firebase.sessions.FirebaseSessionsComponent$MainModule$Companion$sessionConfigsDataStore$1.invoke(androidx.datastore.core.CorruptionException) and 3 other contexts)
Missing class androidx.datastore.core.DataStore (referenced from: androidx.datastore.core.DataStore com.google.firebase.sessions.SessionDatastoreImpl.dataStore and 16 other contexts)
Missing class androidx.datastore.core.handlers.ReplaceFileCorruptionHandler (referenced from: androidx.datastore.core.DataStore com.google.firebase.sessions.FirebaseSessionsComponent$MainModule$Companion.sessionConfigsDataStore(android.content.Context) and 1 other context)
Missing class androidx.datastore.preferences.PreferenceDataStoreDelegateKt (referenced from: void com.google.firebase.sessions.FirebaseSessionsRegistrar$Companion$1.<init>())
Missing class androidx.datastore.preferences.PreferenceDataStoreFile (referenced from: java.io.File com.google.firebase.sessions.FirebaseSessionsComponent$MainModule$Companion$sessionConfigsDataStore$2.invoke() and 1 other context)
Missing class androidx.datastore.preferences.core.MutablePreferences (referenced from: java.lang.Object com.google.firebase.sessions.settings.SettingsCache$updateConfigValue$2.invoke(androidx.datastore.preferences.core.MutablePreferences, kotlin.coroutines.Continuation) and 2 other contexts)
Missing class androidx.datastore.preferences.core.PreferenceDataStoreFactory (referenced from: androidx.datastore.core.DataStore com.google.firebase.sessions.FirebaseSessionsComponent$MainModule$Companion.sessionConfigsDataStore(android.content.Context) and 1 other context)
Missing class androidx.datastore.preferences.core.Preferences$Key (referenced from: androidx.datastore.preferences.core.Preferences$Key com.google.firebase.sessions.SessionDatastoreImpl$FirebaseSessionDataKeys.SESSION_ID and 22 other contexts)
Missing class androidx.datastore.preferences.core.Preferences (referenced from: androidx.datastore.preferences.core.Preferences com.google.firebase.sessions.FirebaseSessionsComponent$MainModule$Companion$sessionConfigsDataStore$1.invoke(androidx.datastore.core.CorruptionException) and 9 other contexts)
Missing class androidx.datastore.preferences.core.PreferencesFactory (referenced from: androidx.datastore.preferences.core.Preferences com.google.firebase.sessions.FirebaseSessionsComponent$MainModule$Companion$sessionConfigsDataStore$1.invoke(androidx.datastore.core.CorruptionException) and 2 other contexts)
Missing class androidx.datastore.preferences.core.PreferencesKeys (referenced from: void com.google.firebase.sessions.SessionDatastoreImpl$FirebaseSessionDataKeys.<clinit>() and 1 other context)
Missing class androidx.datastore.preferences.core.PreferencesKt (referenced from: java.lang.Object com.google.firebase.sessions.settings.SettingsCache.updateConfigValue(androidx.datastore.preferences.core.Preferences$Key, java.lang.Object, kotlin.coroutines.Continuation))
Missing class com.google.common.util.concurrent.internal.InternalFutureFailureAccess (referenced from: void com.google.common.util.concurrent.Futures$CallbackListener.run())
Missing class com.google.common.util.concurrent.internal.InternalFutures (referenced from: void com.google.common.util.concurrent.Futures$CallbackListener.run())
Missing class kotlinx.coroutines.tasks.TasksKt (referenced from: java.lang.Object com.google.firebase.sessions.InstallationId$Companion.create(com.google.firebase.installations.FirebaseInstallationsApi, kotlin.coroutines.Continuation))
Compilation failed
Exception in thread "main" java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete
at com.android.tools.r8.internal.Nu.a(R8_8.9.27_3afcc9fea5cc5cd06373667ec09d5fe106db8a4a77576689534e667542385a93:131)
at com.android.tools.r8.R8.main(R8_8.9.27_3afcc9fea5cc5cd06373667ec09d5fe106db8a4a77576689534e667542385a93:5)
Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete
at Version.fakeStackEntry(Version_8.9.27.java:0)
at com.android.tools.r8.S.a(R8_8.9.27_3afcc9fea5cc5cd06373667ec09d5fe106db8a4a77576689534e667542385a93:5)
at com.android.tools.r8.internal.Nu.a(R8_8.9.27_3afcc9fea5cc5cd06373667ec09d5fe106db8a4a77576689534e667542385a93:82)
at com.android.tools.r8.internal.Nu.a(R8_8.9.27_3afcc9fea5cc5cd06373667ec09d5fe106db8a4a77576689534e667542385a93:32)
at com.android.tools.r8.internal.Nu.a(R8_8.9.27_3afcc9fea5cc5cd06373667ec09d5fe106db8a4a77576689534e667542385a93:31)
at com.android.tools.r8.R8.b(R8_8.9.27_3afcc9fea5cc5cd06373667ec09d5fe106db8a4a77576689534e667542385a93:48)
at com.android.tools.r8.R8.a(R8_8.9.27_3afcc9fea5cc5cd06373667ec09d5fe106db8a4a77576689534e667542385a93:1589)
at com.android.tools.r8.internal.Nu.a(R8_8.9.27_3afcc9fea5cc5cd06373667ec09d5fe106db8a4a77576689534e667542385a93:118)
... 1 more
Caused by: com.android.tools.r8.internal.g: Missing class androidx.concurrent.futures.AbstractResolvableFuture (referenced from: void com.google.firebase.concurrent.DelegatingScheduledFuture.<init>(com.google.firebase.concurrent.DelegatingScheduledFuture$Resolver) and 1 other context)
Missing class androidx.concurrent.futures.CallbackToFutureAdapter$Resolver (referenced from: com.google.common.util.concurrent.ListenableFuture androidx.privacysandbox.ads.adservices.java.internal.CoroutineAdapterKt.asListenableFuture(kotlinx.coroutines.Deferred, java.lang.Object))
Missing class androidx.concurrent.futures.CallbackToFutureAdapter (referenced from: com.google.common.util.concurrent.ListenableFuture androidx.privacysandbox.ads.adservices.java.internal.CoroutineAdapterKt.asListenableFuture(kotlinx.coroutines.Deferred, java.lang.Object))
Missing class androidx.datastore.core.CorruptionException (referenced from: androidx.datastore.preferences.core.Preferences com.google.firebase.sessions.FirebaseSessionsComponent$MainModule$Companion$sessionConfigsDataStore$1.invoke(androidx.datastore.core.CorruptionException) and 3 other contexts)
Missing class androidx.datastore.core.DataStore (referenced from: androidx.datastore.core.DataStore com.google.firebase.sessions.SessionDatastoreImpl.dataStore and 16 other contexts)
Missing class androidx.datastore.core.handlers.ReplaceFileCorruptionHandler (referenced from: androidx.datastore.core.DataStore com.google.firebase.sessions.FirebaseSessionsComponent$MainModule$Companion.sessionConfigsDataStore(android.content.Context) and 1 other context)
Missing class androidx.datastore.preferences.PreferenceDataStoreDelegateKt (referenced from: void com.google.firebase.sessions.FirebaseSessionsRegistrar$Companion$1.<init>())
Missing class androidx.datastore.preferences.PreferenceDataStoreFile (referenced from: java.io.File com.google.firebase.sessions.FirebaseSessionsComponent$MainModule$Companion$sessionConfigsDataStore$2.invoke() and 1 other context)
Missing class androidx.datastore.preferences.core.MutablePreferences (referenced from: java.lang.Object com.google.firebase.sessions.settings.SettingsCache$updateConfigValue$2.invoke(androidx.datastore.preferences.core.MutablePreferences, kotlin.coroutines.Continuation) and 2 other contexts)
Missing class androidx.datastore.preferences.core.PreferenceDataStoreFactory (referenced from: androidx.datastore.core.DataStore com.google.firebase.sessions.FirebaseSessionsComponent$MainModule$Companion.sessionConfigsDataStore(android.content.Context) and 1 other context)
Missing class androidx.datastore.preferences.core.Preferences$Key (referenced from: androidx.datastore.preferences.core.Preferences$Key com.google.firebase.sessions.SessionDatastoreImpl$FirebaseSessionDataKeys.SESSION_ID and 22 other contexts)
Missing class androidx.datastore.preferences.core.Preferences (referenced from: androidx.datastore.preferences.core.Preferences com.google.firebase.sessions.FirebaseSessionsComponent$MainModule$Companion$sessionConfigsDataStore$1.invoke(androidx.datastore.core.CorruptionException) and 9 other contexts)
Missing class androidx.datastore.preferences.core.PreferencesFactory (referenced from: androidx.datastore.preferences.core.Preferences com.google.firebase.sessions.FirebaseSessionsComponent$MainModule$Companion$sessionConfigsDataStore$1.invoke(androidx.datastore.core.CorruptionException) and 2 other contexts)
Missing class androidx.datastore.preferences.core.PreferencesKeys (referenced from: void com.google.firebase.sessions.SessionDatastoreImpl$FirebaseSessionDataKeys.<clinit>() and 1 other context)
Missing class androidx.datastore.preferences.core.PreferencesKt (referenced from: java.lang.Object com.google.firebase.sessions.settings.SettingsCache.updateConfigValue(androidx.datastore.preferences.core.Preferences$Key, java.lang.Object, kotlin.coroutines.Continuation))
Missing class com.google.common.util.concurrent.internal.InternalFutureFailureAccess (referenced from: void com.google.common.util.concurrent.Futures$CallbackListener.run())
Missing class com.google.common.util.concurrent.internal.InternalFutures (referenced from: void com.google.common.util.concurrent.Futures$CallbackListener.run())
Missing class kotlinx.coroutines.tasks.TasksKt (referenced from: java.lang.Object com.google.firebase.sessions.InstallationId$Companion.create(com.google.firebase.installations.FirebaseInstallationsApi, kotlin.coroutines.Continuation))
at com.android.tools.r8.internal.Le0.a(R8_8.9.27_3afcc9fea5cc5cd06373667ec09d5fe106db8a4a77576689534e667542385a93:21)
at com.android.tools.r8.internal.Le0.error(R8_8.9.27_3afcc9fea5cc5cd06373667ec09d5fe106db8a4a77576689534e667542385a93:1)
at com.android.tools.r8.shaking.M.a(R8_8.9.27_3afcc9fea5cc5cd06373667ec09d5fe106db8a4a77576689534e667542385a93:1975)
at com.android.tools.r8.shaking.M.a(R8_8.9.27_3afcc9fea5cc5cd06373667ec09d5fe106db8a4a77576689534e667542385a93:1622)
at com.android.tools.r8.R8.a(R8_8.9.27_3afcc9fea5cc5cd06373667ec09d5fe106db8a4a77576689534e667542385a93:1510)
at com.android.tools.r8.R8.a(R8_8.9.27_3afcc9fea5cc5cd06373667ec09d5fe106db8a4a77576689534e667542385a93:206)
at com.android.tools.r8.R8.c(R8_8.9.27_3afcc9fea5cc5cd06373667ec09d5fe106db8a4a77576689534e667542385a93:8)
at com.android.tools.r8.R8.a(R8_8.9.27_3afcc9fea5cc5cd06373667ec09d5fe106db8a4a77576689534e667542385a93:1588)
at com.android.tools.r8.internal.Nu.a(R8_8.9.27_3afcc9fea5cc5cd06373667ec09d5fe106db8a4a77576689534e667542385a93:28)
... 4 more
Suppressed: java.lang.RuntimeException: com.android.tools.r8.internal.g: Missing class androidx.concurrent.futures.AbstractResolvableFuture (referenced from: void com.google.firebase.concurrent.DelegatingScheduledFuture.<init>(com.google.firebase.concurrent.DelegatingScheduledFuture$Resolver) and 1 other context)
Missing class androidx.concurrent.futures.CallbackToFutureAdapter$Resolver (referenced from: com.google.common.util.concurrent.ListenableFuture androidx.privacysandbox.ads.adservices.java.internal.CoroutineAdapterKt.asListenableFuture(kotlinx.coroutines.Deferred, java.lang.Object))
Missing class androidx.concurrent.futures.CallbackToFutureAdapter (referenced from: com.google.common.util.concurrent.ListenableFuture androidx.privacysandbox.ads.adservices.java.internal.CoroutineAdapterKt.asListenableFuture(kotlinx.coroutines.Deferred, java.lang.Object))
Missing class androidx.datastore.core.CorruptionException (referenced from: androidx.datastore.preferences.core.Preferences com.google.firebase.sessions.FirebaseSessionsComponent$MainModule$Companion$sessionConfigsDataStore$1.invoke(androidx.datastore.core.CorruptionException) and 3 other contexts)
Missing class androidx.datastore.core.DataStore (referenced from: androidx.datastore.core.DataStore com.google.firebase.sessions.SessionDatastoreImpl.dataStore and 16 other contexts)
Missing class androidx.datastore.core.handlers.ReplaceFileCorruptionHandler (referenced from: androidx.datastore.core.DataStore com.google.firebase.sessions.FirebaseSessionsComponent$MainModule$Companion.sessionConfigsDataStore(android.content.Context) and 1 other context)
Missing class androidx.datastore.preferences.PreferenceDataStoreDelegateKt (referenced from: void com.google.firebase.sessions.FirebaseSessionsRegistrar$Companion$1.<init>())
Missing class androidx.datastore.preferences.PreferenceDataStoreFile (referenced from: java.io.File com.google.firebase.sessions.FirebaseSessionsComponent$MainModule$Companion$sessionConfigsDataStore$2.invoke() and 1 other context)
Missing class androidx.datastore.preferences.core.MutablePreferences (referenced from: java.lang.Object com.google.firebase.sessions.settings.SettingsCache$updateConfigValue$2.invoke(androidx.datastore.preferences.core.MutablePreferences, kotlin.coroutines.Continuation) and 2 other contexts)
Missing class androidx.datastore.preferences.core.PreferenceDataStoreFactory (referenced from: androidx.datastore.core.DataStore com.google.firebase.sessions.FirebaseSessionsComponent$MainModule$Companion.sessionConfigsDataStore(android.content.Context) and 1 other context)
Missing class androidx.datastore.preferences.core.Preferences$Key (referenced from: androidx.datastore.preferences.core.Preferences$Key com.google.firebase.sessions.SessionDatastoreImpl$FirebaseSessionDataKeys.SESSION_ID and 22 other contexts)
Missing class androidx.datastore.preferences.core.Preferences (referenced from: androidx.datastore.preferences.core.Preferences com.google.firebase.sessions.FirebaseSessionsComponent$MainModule$Companion$sessionConfigsDataStore$1.invoke(androidx.datastore.core.CorruptionException) and 9 other contexts)
Missing class androidx.datastore.preferences.core.PreferencesFactory (referenced from: androidx.datastore.preferences.core.Preferences com.google.firebase.sessions.FirebaseSessionsComponent$MainModule$Companion$sessionConfigsDataStore$1.invoke(androidx.datastore.core.CorruptionException) and 2 other contexts)
Missing class androidx.datastore.preferences.core.PreferencesKeys (referenced from: void com.google.firebase.sessions.SessionDatastoreImpl$FirebaseSessionDataKeys.<clinit>() and 1 other context)
Missing class androidx.datastore.preferences.core.PreferencesKt (referenced from: java.lang.Object com.google.firebase.sessions.settings.SettingsCache.updateConfigValue(androidx.datastore.preferences.core.Preferences$Key, java.lang.Object, kotlin.coroutines.Continuation))
Missing class com.google.common.util.concurrent.internal.InternalFutureFailureAccess (referenced from: void com.google.common.util.concurrent.Futures$CallbackListener.run())
Missing class com.google.common.util.concurrent.internal.InternalFutures (referenced from: void com.google.common.util.concurrent.Futures$CallbackListener.run())
Missing class kotlinx.coroutines.tasks.TasksKt (referenced from: java.lang.Object com.google.firebase.sessions.InstallationId$Companion.create(com.google.firebase.installations.FirebaseInstallationsApi, kotlin.coroutines.Continuation))
at com.android.tools.r8.internal.Le0.a(R8_8.9.27_3afcc9fea5cc5cd06373667ec09d5fe106db8a4a77576689534e667542385a93:27)
at com.android.tools.r8.shaking.M.a(R8_8.9.27_3afcc9fea5cc5cd06373667ec09d5fe106db8a4a77576689534e667542385a93:1977)
... 10 more
Caused by: [CIRCULAR REFERENCE: com.android.tools.r8.internal.g: Missing class androidx.concurrent.futures.AbstractResolvableFuture (referenced from: void com.google.firebase.concurrent.DelegatingScheduledFuture.<init>(com.google.firebase.concurrent.DelegatingScheduledFuture$Resolver) and 1 other context)
Missing class androidx.concurrent.futures.CallbackToFutureAdapter$Resolver (referenced from: com.google.common.util.concurrent.ListenableFuture androidx.privacysandbox.ads.adservices.java.internal.CoroutineAdapterKt.asListenableFuture(kotlinx.coroutines.Deferred, java.lang.Object))
Missing class androidx.concurrent.futures.CallbackToFutureAdapter (referenced from: com.google.common.util.concurrent.ListenableFuture androidx.privacysandbox.ads.adservices.java.internal.CoroutineAdapterKt.asListenableFuture(kotlinx.coroutines.Deferred, java.lang.Object))
Missing class androidx.datastore.core.CorruptionException (referenced from: androidx.datastore.preferences.core.Preferences com.google.firebase.sessions.FirebaseSessionsComponent$MainModule$Companion$sessionConfigsDataStore$1.invoke(androidx.datastore.core.CorruptionException) and 3 other contexts)
Missing class androidx.datastore.core.DataStore (referenced from: androidx.datastore.core.DataStore com.google.firebase.sessions.SessionDatastoreImpl.dataStore and 16 other contexts)
Missing class androidx.datastore.core.handlers.ReplaceFileCorruptionHandler (referenced from: androidx.datastore.core.DataStore com.google.firebase.sessions.FirebaseSessionsComponent$MainModule$Companion.sessionConfigsDataStore(android.content.Context) and 1 other context)
Missing class androidx.datastore.preferences.PreferenceDataStoreDelegateKt (referenced from: void com.google.firebase.sessions.FirebaseSessionsRegistrar$Companion$1.<init>())
Missing class androidx.datastore.preferences.PreferenceDataStoreFile (referenced from: java.io.File com.google.firebase.sessions.FirebaseSessionsComponent$MainModule$Companion$sessionConfigsDataStore$2.invoke() and 1 other context)
Missing class androidx.datastore.preferences.core.MutablePreferences (referenced from: java.lang.Object com.google.firebase.sessions.settings.SettingsCache$updateConfigValue$2.invoke(androidx.datastore.preferences.core.MutablePreferences, kotlin.coroutines.Continuation) and 2 other contexts)
Missing class androidx.datastore.preferences.core.PreferenceDataStoreFactory (referenced from: androidx.datastore.core.DataStore com.google.firebase.sessions.FirebaseSessionsComponent$MainModule$Companion.sessionConfigsDataStore(android.content.Context) and 1 other context)
Missing class androidx.datastore.preferences.core.Preferences$Key (referenced from: androidx.datastore.preferences.core.Preferences$Key com.google.firebase.sessions.SessionDatastoreImpl$FirebaseSessionDataKeys.SESSION_ID and 22 other contexts)
Missing class androidx.datastore.preferences.core.Preferences (referenced from: androidx.datastore.preferences.core.Preferences com.google.firebase.sessions.FirebaseSessionsComponent$MainModule$Companion$sessionConfigsDataStore$1.invoke(androidx.datastore.core.CorruptionException) and 9 other contexts)
Missing class androidx.datastore.preferences.core.PreferencesFactory (referenced from: androidx.datastore.preferences.core.Preferences com.google.firebase.sessions.FirebaseSessionsComponent$MainModule$Companion$sessionConfigsDataStore$1.invoke(androidx.datastore.core.CorruptionException) and 2 other contexts)
Missing class androidx.datastore.preferences.core.PreferencesKeys (referenced from: void com.google.firebase.sessions.SessionDatastoreImpl$FirebaseSessionDataKeys.<clinit>() and 1 other context)
Missing class androidx.datastore.preferences.core.PreferencesKt (referenced from: java.lang.Object com.google.firebase.sessions.settings.SettingsCache.updateConfigValue(androidx.datastore.preferences.core.Preferences$Key, java.lang.Object, kotlin.coroutines.Continuation))
Missing class com.google.common.util.concurrent.internal.InternalFutureFailureAccess (referenced from: void com.google.common.util.concurrent.Futures$CallbackListener.run())
Missing class com.google.common.util.concurrent.internal.InternalFutures (referenced from: void com.google.common.util.concurrent.Futures$CallbackListener.run())
Missing class kotlinx.coroutines.tasks.TasksKt (referenced from: java.lang.Object com.google.firebase.sessions.InstallationId$Companion.create(com.google.firebase.installations.FirebaseInstallationsApi, kotlin.coroutines.Continuation))]


Tip: press Ctrl + R to export IDE state for AI assistants.

I enabled it and added the manifest codes.
 

Scantech

Well-Known Member
Licensed User
Longtime User
Compiling now is not easy as it used to be. Now, I have to worry about adding keep and dontwarn in manifest. thankfully, AI showed me the direction.

B4X:
AddProguardText(
    -dontwarn androidx.concurrent.futures.**
    -dontwarn androidx.datastore.**
    -dontwarn com.google.common.util.concurrent.internal.**
    -dontwarn kotlinx.coroutines.tasks.**
)
 
Last edited:
Upvote 0

Scantech

Well-Known Member
Licensed User
Longtime User
My new laptop crashed few days ago and I still have not tested it in runtime if it has issues or not. I had an old laptop from 2015 took 20 minutes to compile in R8 mode. I'm not compiling anymore with this junk laptop. It did compile ok, not sure in runtime.
Large list of libraries attached.
 

Attachments

  • libraries3.jpg
    libraries3.jpg
    23.1 KB · Views: 23
  • libraries2.jpg
    libraries2.jpg
    73.4 KB · Views: 20
  • libraries1.jpg
    libraries1.jpg
    77 KB · Views: 20
Upvote 0
Top