Persistent "RunD8 ERROR: d8 failed" during Export - All standard checks performed Body

Hello,
I am facing a persistent “RunD8 ERROR: d8 failed” whenever I try to export my project as an APK. I have already gone through all the common troubleshooting steps, but the error remains.
Here is what I have already verified and fixed:
No Duplicate Event Handlers: I checked all my screens and made sure there are no duplicate block definitions (like two “when click” events for the same component).
Naming Conventions: All components and screens are named using English characters. There are no Persian (non-ASCII) characters in any component names.
Assets Check: I have only 7 assets. I’ve ensured that all filenames are in English, have no spaces, and no special characters.
App Icon & Package Name: I have tried exporting with “App Icon” set to None. The package name is correctly formatted.
Clean Blocks: I have used the “Clean up Blocks” feature and ensured there are no empty or disconnected warning blocks.
Despite these efforts, the [RunD8]

Kodular is unable to compile this project.
The compiler error output was
[ReadBuildInfo] Starting Task
[ReadBuildInfo] Task succeeded in 0.006 seconds
[LoadComponentInfo] Starting Task
[LoadComponentInfo] INFO: Generating assets…
[LoadComponentInfo] Component assets needed, n = 7
[LoadComponentInfo] INFO: Generating activities…
[LoadComponentInfo] Component activities needed, n = 0
[LoadComponentInfo] Component activity metadata needed, n = 0
[LoadComponentInfo] INFO: Generating broadcast receivers…
[LoadComponentInfo] INFO: Generating libraries…
[LoadComponentInfo] Libraries needed, n = 13
[LoadComponentInfo] Component metadata needed, n = 0
[LoadComponentInfo] INFO: Generating Android minimum SDK…
[LoadComponentInfo] INFO: Generating native libraries…
[LoadComponentInfo] Native Libraries needed, n = 0
[LoadComponentInfo] INFO: Generating permissions…
[LoadComponentInfo] usesLocation = False
[LoadComponentInfo] Permissions needed, n = 11
[LoadComponentInfo] Component xmls needed, n = 0
[LoadComponentInfo] INFO: Generating component broadcast receivers…
[LoadComponentInfo] Task succeeded in 0.01 seconds
[CheckDeprecatedComponents] Starting Task
[CheckDeprecatedComponents] Task succeeded in 0.024 seconds
[CheckComponentRequirements] Starting Task
[CheckComponentRequirements] Task succeeded in 0.0 seconds
[VerifyExtensions] Starting Task
[VerifyExtensions] Task succeeded in 0.0 seconds
[GenerateBuildId] Starting Task
[GenerateBuildId] INFO: Skipping Build ID generation for App with no required components.
[GenerateBuildId] Task succeeded in 0.0 seconds
[RetrieveGamAdUnit] Starting Task
[RetrieveGamAdUnit] INFO: Skipping Ad Unit ID retrieval for app with no required components.
[RetrieveGamAdUnit] Task succeeded in 0.0 seconds
[PrepareAppIcon] Starting Task
[PrepareAppIcon] INFO: Creating mipmap dirs…
[PrepareAppIcon] INFO: Generating icons…
[PrepareAppIcon] Generating icons for mipmap-mdpi
[PrepareAppIcon] Generating icons for mipmap-hdpi
[PrepareAppIcon] Generating icons for mipmap-xhdpi
[PrepareAppIcon] Generating icons for mipmap-xxhdpi
[PrepareAppIcon] Generating icons for mipmap-xxxhdpi
[PrepareAppIcon] Task succeeded in 0.428 seconds
[XmlConfig] Starting Task
[XmlConfig] INFO: Creating animation xml
[XmlConfig] Creating zoom_enter.xml
[XmlConfig] Creating fadeout.xml
[XmlConfig] Creating slide_v_exit.xml
[XmlConfig] Creating fadein.xml
[XmlConfig] Creating zoom_exit.xml
[XmlConfig] Creating slide_v_enter.xml
[XmlConfig] Creating zoom_exit_reverse.xml
[XmlConfig] Creating slide_v_enter_reverse.xml
[XmlConfig] Creating zoom_enter_reverse.xml
[XmlConfig] Creating slide_enter_reverse.xml
[XmlConfig] Creating slide_exit.xml
[XmlConfig] Creating hold.xml
[XmlConfig] Creating slide_enter.xml
[XmlConfig] Creating slide_v_exit_reverse.xml
[XmlConfig] Creating slide_exit_reverse.xml
[XmlConfig] INFO: Creating colors xml
[XmlConfig] INFO: Creating styles xml
[XmlConfig] INFO: Creating provider_path xml
[XmlConfig] INFO: Creating network_security_config xml
[XmlConfig] INFO: Generating adaptive icon file
[XmlConfig] INFO: Generating round adaptive icon file
[XmlConfig] INFO: Generating adaptive icon background file
[XmlConfig] INFO: Creating fragment xml
[XmlConfig] INFO: Creating listview xml
[XmlConfig] INFO: Creating listview-21 xml
[XmlConfig] INFO: Creating drawable xml
[XmlConfig] INFO: Creating drawable-21 xml
[XmlConfig] INFO: Creating strings xml
[XmlConfig] Task succeeded in 0.003 seconds
[CreateManifest] Starting Task
[CreateManifest] INFO: Reading project specs…
[CreateManifest] VCode: 1
[CreateManifest] VName: d8fix-1.0
[CreateManifest] Custom Package Name: io.kodular.hkymy9323.Psychology
[CreateManifest] Min SDK 24
[CreateManifest] INFO: Writing screen ‘io.kodular.hkymy9323.Psychology.seduction_and_power’
[CreateManifest] INFO: Writing screen ‘io.kodular.hkymy9323.Psychology.Screen1’
[CreateManifest] INFO: Writing screen ‘io.kodular.hkymy9323.Psychology.Gazb’
[CreateManifest] INFO: Writing screen ‘io.kodular.hkymy9323.Psychology.names120’
[CreateManifest] INFO: Writing screen ‘io.kodular.hkymy9323.Psychology.Psychology’
[CreateManifest] Task succeeded in 0.001 seconds
[AttachNativeLibs] Starting Task
[AttachNativeLibs] Task succeeded in 0.001 seconds
[AttachAarLibs] Starting Task
[AttachAarLibs] Task succeeded in 0.048 seconds
[AttachCompAssets] Starting Task
[AttachCompAssets] Task succeeded in 0.004 seconds
[MergeResources] Starting Task
[MergeResources] Task succeeded in 0.043 seconds
[SetupLibs] Starting Task
[SetupLibs] Task succeeded in 0.0 seconds
[RunAapt] Starting Task
[RunAapt] Task succeeded in 0.734 seconds
[GenerateClasses] Starting Task
[GenerateClasses] INFO: Source File: io/kodular/hkymy9323/Psychology/seduction_and_power.yail
[GenerateClasses] INFO: Source File: io/kodular/hkymy9323/Psychology/Screen1.yail
[GenerateClasses] INFO: Source File: io/kodular/hkymy9323/Psychology/Gazb.yail
[GenerateClasses] INFO: Source File: io/kodular/hkymy9323/Psychology/names120.yail
[GenerateClasses] INFO: Source File: io/kodular/hkymy9323/Psychology/Psychology.yail
(compiling io/kodular/hkymy9323/Psychology/seduction_and_power.yail to io.kodular.hkymy9323.Psychology.seduction_and_power)
(compiling io/kodular/hkymy9323/Psychology/Screen1.yail to io.kodular.hkymy9323.Psychology.Screen1)
(compiling io/kodular/hkymy9323/Psychology/Gazb.yail to io.kodular.hkymy9323.Psychology.Gazb)
(compiling io/kodular/hkymy9323/Psychology/names120.yail to io.kodular.hkymy9323.Psychology.names120)
(compiling io/kodular/hkymy9323/Psychology/Psychology.yail to io.kodular.hkymy9323.Psychology.Psychology)
(compiling /tmp/runtime8297274108134452862.scm to com.google.youngandroid.runtime)
[GenerateClasses] Task succeeded in 2.152 seconds
[RunD8] Starting Task
[RunD8] ERROR: d8 failed.
[RunD8] Task errored in 7.658 seconds
.

Task errored persists. The GenerateClasses task succeeds, but the process fails at the D8 stage.
Can anyone help me identify what might be causing this technical failure in the compiler?
Thank you.

Hi there,

Usually this error comes from some outdated extension.
Could you show us which one you’re using?

Hi,
Apart from this any other extensions you’re using?

Also change your screen name seduction_and_power to SeductionAndPower

Rename screens - CamelCase only

and let me know it works for you or not.

1 Like

It might be because of “too much of something”…
Upload the aia file to https://unchive.kodular.io to get some statistics of your project and post the overview of the results here

Taifun

1 Like

6 posts were split to a new topic: RunD8 ERROR: d8 failed

See the solution which helped here

Let us know if it also helps you, else

Taifun

1 Like