Questions tagged [android-d8]

D8 is a dexing compiler for Android development.

D8 is a dexing compiler for Android development. It replaces DX.

References

47 questions
2
votes
1 answer

Error while running dx or d8 tool for Android

I am trying to build Android apps manually from the command line. But, whenever I am running dx.bat command which is located inside the Android SDK build-tools directory, I am always getting an error. Whichever option I give, I always get the same…
Puspam
  • 2,137
  • 2
  • 12
  • 35
2
votes
2 answers

How Can I debug R8 during compilation?

Is there any way to debug R8 during compilation of an Android project ? I have a really weird error and the casual fix won't help
Ismail H
  • 4,226
  • 2
  • 38
  • 61
2
votes
1 answer

Which Android studio 3.3 Build variant is recommended?

Android studio 3.3 just released yesterday has new items in the Build Variants tab and I cannot figure out which one is recommended for release. I need this info to be able to create SHA1 with the right variant for auth library yet I cannot find it…
2
votes
1 answer

Which compiler is currently used in android to compile Java to .class files after D8 dexer was introduced?

After Jack compiler was deprecated and D8 was introduced where the java -> .class files part was separated again (unlike jack where it happened in a single step), is the Oracle Java SE javac compiler being used for compilation again?
vepzfe
  • 4,217
  • 5
  • 26
  • 46
2
votes
2 answers

D8: Type `sun.misc.Unsafe` was not found

After enabling D8 in my android project, I've started seeing these warnings: /Users/yashasvi/.gradle/caches/modules-2/files-2.1/com.google.guava/guava/27.0.1-android/b7e1c37f66ef193796ccd7ea6e80c2b05426182d/guava-27.0.1-android.jar: D8: Type…
Yash
  • 5,225
  • 4
  • 32
  • 65
2
votes
3 answers

What's the file path of d8.jar used by Android Studio?

I know that Android Studio switch to D8 dexer by default. But I wonder what's the file path of d8.jar ? I can't found d8.jar in SDK like dx.jar. A typical dx.jar located in…
林果皞
  • 7,539
  • 3
  • 55
  • 70
1
vote
2 answers

How to create a dex with D8.bat

I used to create dex file with dx.bat like this : "c:\SDKs\android\build-tools\32.0.0\dx.bat"…
zeus
  • 12,173
  • 9
  • 63
  • 184
1
vote
1 answer

Android Build with command-line tools

I try to understand how a .apk file is built from source code. I know that with Android Studio or with the command gradlew the build can be done easily. The Android Sdk provides multiple tools that are used to build a .apk, which most of them I know…
JANO
  • 2,995
  • 2
  • 14
  • 29
1
vote
1 answer

How to add Multidex support to Android d8.bat commandline

I'm using Androids d8 compiler from Delphi, and i need to enable MultiDex. In Android Studio you add the following to your Gradle file: defaultConfig { minSdkVersion 14 targetSdkVersion 22 multiDexEnabled true } but as i am using Delphi i cannot do…
helgovic
  • 1
  • 6
1
vote
0 answers

java.lang.NoClassDefFoundError: Failed resolution of: Landroid/content/ServiceConnection$-CC;

I am having this error when running my app on Android Q: Here's my configuration: my jdk version :jdk1.8.0_221 compileSdkVersion 29 buildToolsVersion '29.0.3' compileOptions {      sourceCompatibility JavaVersion.VERSION_1_8     …
cstsinghua
  • 11
  • 1
1
vote
0 answers

Type com.google.android.gms.common.internal.zzf is referenced as an interface from `com.google.android.gms.internal.zzcms`

unable to find out what is error plzz help me,after migrate to android x this error is coming ,i updates my all dependencies and android also but it showing this error Type com.google.android.gms.common.internal.zzf is referenced as an interface…
Chandu
  • 21
  • 2
1
vote
0 answers

Android Build Fail: D8: java.lang.TypeNotPresentException: Type org.gradle.internal.reflect.Instantiator

We are splitting our app into 32 and 64 bit versions as per Google's requirements. As part of this change, we started using the D8 compiler instead of the older DEX compiler. When we use the D8 compiler, our build time has increased from 6 to 20…
1
vote
0 answers

transformDexArchiveWithDexMergerForDebug error WITH multidex enabled

I'm trying to build an Android project and am getting this error with Multidex enabled: Caused by: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':android-simple-host:transformDexArchiveWithDexMergerForDebug'. Here is the…
Shan
  • 541
  • 3
  • 11
1
vote
0 answers

How do I revert D8 behavior back to what it was in Android Studio 3.1.x?

This is really a question for the Android (Studio) developer support team at Google. Please let me know if there is a better channel for this. Background I noticed an increasing number of libart.so crashes being reported in Google Play Console for…
Zsombor
  • 141
  • 7
1
vote
1 answer

How to force Delphi to use D8.bat instead of dx.bat to compile Java 1.8 bytecode into DEX bytecode

Today I faced a problem. My project needs to use some libraries (*.jar) that use Java 1.8 features. I see more and more libraries use now Java 1.8 features (like webRTC, exoplayer, etc.). In this way, we must do desugaring. Desugaring allows you to…
zeus
  • 12,173
  • 9
  • 63
  • 184