The app has two screen1?

Hi Koders.
I’m having problems compiling my app, with the Yail compiler. After reading the community I saw the unchieve page, so I upload my aia there and what is my surprise when I see it has two screen1!!!


But in the creator page there is only one screen1 and for sure it is impossible to have two screens with the same name.
I have imported some other screens and erase them later, so maybe something got wrong there.
Is there any solution to this? It is quite possible that this is what is generating the compile error, because I can’t find another explanation.
Thanks in advance!

This was the first, export the aia and edit it manually…

Btw, are you able to see screens in creator.

1 Like

Hi.
No, in creator only was shown one screen, because both have the same name.
I downloaded the file and see something wrong in the assets folder (there was another asset folder inside) so I deleted it and other folder named scr that was inside the asset folder too.
After that, this is what is shown in Unchive:


But the compiling is not working neither, Yale error again.
Where can be the problem? I’m quite desperate…

Hmm not sure what the issue is but you can PM your aia so I can take a look at it…

P.S. your original one, with two screens

1 Like

I did (I think).
Thanks.

First error project in a project

Second duplicate declaration of 'CerrarSesion_Label$Click’

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 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
________________Firebase components found.
________________Firebase config file successfully added.
________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.97 seconds
________Compiling source files
(compiling io/kodular/bobans_s73/YogaSessions09_copy/Screen1.yail to io.kodular.bobans_s73.YogaSessions09_copy.Screen1)ERROR: io/kodular/bobans_s73/YogaSessions09_copy/Screen1.yail line 6995: duplicate declaration of 'CerrarSesion_Label$Click’ERROR: io/kodular/bobans_s73/YogaSessions09_copy/Screen1.yail line 6995: (this is the previous declaration of ‘CerrarSesion_Label$Click’)Kawa compile time: 2.282 seconds
.

Third error YAIL compiler - DX execution failed.

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 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
________________Firebase components found.
________________Firebase config file successfully added.
________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.991 seconds
________Compiling source files
(compiling io/kodular/bobans_s73/YogaSessions09_copy/Screen1.yail to io.kodular.bobans_s73.YogaSessions09_copy.Screen1)
(compiling /tmp/runtime2254101495009792595.scm to com.google.youngandroid.runtime)
Kawa compile time: 3.409 seconds
________Invoking DX
YAIL compiler - DX execution failed.
.

The last one is not much I can do about, do check the search link for YAIL compiler - DX execution failed.

2 Likes

Thanks.
The first two are easy to solve.
The third one is the devil!
I’ll try and see.
Thanks again.

Just to let you know, I deleted one of your arrangements and I was able to build…

P.S. The last one

Thanks.
I have deleted another one and worked too. The problem is that, at this point, I can’t delete an entire main arrangement.
It it would be useful to have clear rules about how many arrangements can a project have, how they can or can’t be one inside the other, etc so looking for the mistake can be more than stumble around in the dark.
I’ll keep trying.
Thanks again.

I make a second screen with the last arrangement, that can work alone with some data from Tiny_DB and the build problem was solved.