I saw this error on .aia imported from AI2 online, in general there are some blocks present only in AI2 onine and some others only in AI2 offline, in this case if you imported the aia from AI2 online check for blocks not present in AI2 offline, modify the aia using AI2 online and retry.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
new i get this error when i add a block or copy and add a block, please solve
ERROR
App Inventor is unable to compile this project.
The compiler error output was
__Preparing application icon
__Creating animation xml
__Creating style xml
__Creating provider_path xml
__Creating network_security_config xml
__Generating adaptive icon file
__Generating round adaptive icon file
__Generating adaptive icon background file
__Generating splash screen drawable file
__Generating manifest file
__Attaching native libraries
__Attaching Android Archive (AAR) libraries
__Attaching component assets
__Invoking AAPT
AAPT time: 8.755 seconds
__Compiling source files
Picked up _JAVA_OPTIONS: -Xms2048m -Xmx2048m
__Invoking DX
DX time: 150,670000 seconds
YAIL compiler - DX execution failed.
Last edit: Emre Karcı 2023-06-22
I saw this error on .aia imported from AI2 online, in general there are some blocks present only in AI2 onine and some others only in AI2 offline, in this case if you imported the aia from AI2 online check for blocks not present in AI2 offline, modify the aia using AI2 online and retry.