Hi, this AIA contains the 2 extensions that is being used and will replicate the error. Source code for the extension is on the post above. testing.aia (379.7 KB)
Error 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: 0.952 seconds
________Compiling source files
(compiling io/kodular/facebooklee52/testing/Screen1.yail to io.kodular.facebooklee52.testing.Screen1)
(compiling /tmp/runtime6458243650290595638.scm to com.google.youngandroid.runtime)
Kawa compile time: 1.872 seconds
________Invoking DX
DX time: 3.811 seconds
________Invoking ApkBuilder
com.android.sdklib.build.ApkCreationException: Failed to add /tmp/1639991628189_0.7981854571382332-0/youngandroidproject/../build/tmp/classes2.dex
YAIL compiler - ApkBuilder failed.
.
Looks like either your extensions or one of their dependencies are using a Java 8 language feature – lambda expressions. App Inventor doesn’t support this, and hence, fails to compile your extension with the app. To fix this, enable the desugaring of Java 8 lang. features in Rush using rush.yml:
The migrate command already does that – it generates an AndroidManifest.xml that’s equivalent to the manifest annotations defined in your source file. Although it’s worth mentioning that it won’t remove those (in fact, any) annotations from the Java source file generated in the migrated Rush project, you will have to remove them manually for the extension to compile.