"Kodular is unable to compile this project"

Hello,
while trying to export my app, it stopped loading at 40% and then it showed me this:

Schermata 2021-06-23 alle 10.46.37

This is the log:

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
________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: 1.0 seconds
________Compiling source files
(compiling io/kodular/alicarli8_3/Facile2/Screen1.yail to io.kodular.alicarli8_3.Facile2.Screen1)

ERROR: io/kodular/alicarli8_3/Facile2/Screen1.yail line 8: caught exception in inline-compiler for # - java.lang.Error: at PC 257: SP at end of ‘then’ was 4 while SP at end of ‘else’ was 0

gnu.bytecode.CodeAttr.emitFi(CodeAttr.java:1906)
gnu.expr.IfExp.compile(IfExp.java:135)
gnu.expr.IfExp.compile(IfExp.java:52)
gnu.expr.Expression.compileNotePosition(Expression.java:156)
gnu.expr.Expression.compileWithPosition(Expression.java:127)
gnu.kawa.functions.AppendValues.compile(AppendValues.java:43)
gnu.expr.ApplyExp.inlineCompile(ApplyExp.java:586)
gnu.expr.ApplyExp.compile(ApplyExp.java:173)
gnu.expr.ApplyExp.compile(ApplyExp.java:110)
gnu.expr.Expression.compileNotePosition(Expression.java:156)
gnu.expr.Expression.compileWithPosition(Expression.java:142)
gnu.expr.LambdaExp.compileBody(LambdaExp.java:1619)
gnu.expr.Compilation.generateBytecode(Compilation.java:2107)
gnu.expr.Compilation.process(Compilation.java:1984)
gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:330)
gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:315)
kawa.repl.compileFiles(repl.java:783)
kawa.repl.processArgs(repl.java:412)
kawa.repl.main(repl.java:827)
Kawa compile time: 2.131 seconds
.

I can’t understand what the issue is… Can you please help me?

Thank you so much in advance.

Maybe this might help

1 Like

Thank you so much, I’ve understood what the problem was!

1 Like

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