App failed to compile, DX execution failed

Hello,
Everytime I try to export my app I get an error and it says that it is because of the DX stage and not my program. I have a lot of layouts but my aia size is much less than 10mb so i am really confused. I also have no extensions in my app.
Here is the log message i get:

Kodular is unable to compile this project.
The compiler error output was
________Preparing application icon
________Creating animation xml
________Creating fragment xml
________Creating listview xml in res/layout/…
________Creating xml in res/drawable/…
________Creating splash png in res/drawable/…
________Creating colors xml
________Creating strings xml
________Creating styles xml
________Creating styles xml v21
________Creating drawables xml v21
________Checking for firebase
________Creating provider_path xml
________Generating manifest file
________Attaching native libraries
________Attaching Android Archive (AAR) libraries
________Attaching component assets
________Invoking AAPT
AAPT time: 0.554 seconds
________Compiling source files
(compiling io/makeroid/farhad26/kimjong/Screen1.yail to io.makeroid.farhad26.kimjong.Screen1)
(compiling io/makeroid/farhad26/kimjong/HomeScreen.yail to io.makeroid.farhad26.kimjong.HomeScreen)
(compiling /tmp/runtime7414990620186548071.scm to com.google.youngandroid.runtime)
Kawa compile time: 3.623 seconds
________Invoking DX
YAIL compiler - DX execution failed.

thanks for any help!

your error message is DX execution failed
this is a very general error message and therefore it’s hard to say, what might be the issue in your case
however there is SteveJG’s monster list of tips and tricks you can check for possible reasons…
good luck!
let us know, what you find out…

Taifun

1 Like

Thanks for the response!

I have no clue since I have no errors but I’ll list some aspects of my app:
-I have 2 screens one of which contains many many vertical and horizontal layout’s, 100+ layout’s
-no extensions

  • the screen with many layout’s has a lot of blocks, about 15000.
    -works fine on companion just can’t export to phone or pc

If you would like to see my AIA I need to send it privately. Thanks for any help!

15000 Layouts maybe thats the problem.

1 Like

this seems to be the issue then…

you also might want to simplify your blocks…
see also MIT App Inventor 2 Tips – TWO DOG APPS and MIT App Inventor 2 Tips – TWO DOG APPS

Taifun

2 Likes

its 15000 blocks and 100+ layouts. My app size is less than 10mb but thanks I get what you meant.
I will look into it.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.