Activity error in building apk, DX execution failed

Till yesterday, my apk was being able to build, but when i try today, it shows me at 50% your apk didn’t build due to error in activites
Here’s the log
Kodular is unable to compile this project.
The compiler error output was
________Checking dangerous extensions
________Preparing application icon
________Creating animation xml
________Creating fragment xml
________Creating listview xml in res/layout/…
________Creating listview xml in res/layout-v21/…
________Creating xml in res/drawable/…
________Creating splash png in res/drawable/…
________Creating colors xml
________Creating styles xml
________Creating drawables xml v21
________Checking for firebase
________Creating provider_path xml
________Creating network_security_config xml
________Generating adaptive icon file
________Generating round adaptive icon file
________Generating adaptive icon background file
________Generating manifest file
________Attaching native libraries
________Attaching Android Archive (AAR) libraries
________Attaching component assets
________Invoking AAPT
AAPT time: 0.872 seconds
________Compiling source files
(compiling io/kodular/sohamtshah2005/Eduwis3/Second.yail to io.kodular.sohamtshah2005.Eduwis3.Second)
(compiling io/kodular/sohamtshah2005/Eduwis3/main.yail to io.kodular.sohamtshah2005.Eduwis3.main)
(compiling io/kodular/sohamtshah2005/Eduwis3/Login.yail to io.kodular.sohamtshah2005.Eduwis3.Login)
(compiling io/kodular/sohamtshah2005/Eduwis3/Screen1.yail to io.kodular.sohamtshah2005.Eduwis3.Screen1)
(compiling io/kodular/sohamtshah2005/Eduwis3/students.yail to io.kodular.sohamtshah2005.Eduwis3.students)
(compiling /tmp/runtime3919887220254105238.scm to com.google.youngandroid.runtime)
Kawa compile time: 3.821 seconds
________Invoking DX
YAIL compiler - DX execution failed.

I have faced DX errors many times before, and i deleted some arrangements and the error was cleared, but this time the error doesn’t clear by deleting any component or arrangement

Any extension in your app

Graphic design, table view, dynamic components, phase animation, file picker, taifun clipboard, kio4 base64

Mainly this issue comes when you use many screens or many arrangement in one screen .
This topic is similar to your issue

I have 5 screens and approx 50 vertical arrangements and around 10 - 15 horizontal arrangement

I do not have any screen like this then why it is showing in error?

May be you can use kodular device utils it have inbuilt copy and paste methods…

1 Like

It requires permission to be enabled when publishing on playstore

and usually it’s true, looking at your other post here and having to many if statement may also cause this error…

Im so sorry i got the solution 4 hours ago forgot to mark the right post as solution

I just deleted 4 horizontal arrangements and the apk compiled, maybe it was due to many arrangements in one screen

1 Like