Project using BLE extension don't generate apk

I have a project created before 2025 that uses the Bluetooth LE extension. Google Play asks me to update it to the latest SDK 34, so I tried to generate a new APK without making any changes.
To my surprise, I got an error. The odd thing is that Companion works correctly, and the project can be debugged successfully.
The BLE extension is the latest 20240822.
I've tried deleting the extension and re-uploading it, even with a previous version from 2023, but without success.

Any ideas?

App Inventor is unable to compile this project.
The compiler error output was
[ReadBuildInfo] Starting Task
[ReadBuildInfo] Task succeeded in 0.004 seconds
[LoadComponentInfo] Starting Task
[LoadComponentInfo] INFO: Generating assets...
[LoadComponentInfo] Component assets needed, n = 0
[LoadComponentInfo] INFO: Generating activities...
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.BluetoothLE" does not specify activities
[LoadComponentInfo] Component activities needed, n = 1
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.BluetoothLE" does not specify activityMetadata
[LoadComponentInfo] Component activity metadata needed, n = 0
[LoadComponentInfo] INFO: Generating broadcast receivers...
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.BluetoothLE" does not specify broadcastReceivers
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.BluetoothLE" does not specify contentProviders
[LoadComponentInfo] INFO: Generating libraries...
[LoadComponentInfo] Libraries needed, n = 0
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.BluetoothLE" does not specify metadata
[LoadComponentInfo] Component metadata needed, n = 0
[LoadComponentInfo] INFO: Generating Android minimum SDK...
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.BluetoothLE" does not specify androidMinSdk
[LoadComponentInfo] INFO: Generating native libraries...
[LoadComponentInfo] Native Libraries needed, n = 0
[LoadComponentInfo] INFO: Generating permissions...
[LoadComponentInfo] usesLocation = False
[LoadComponentInfo] Permissions needed, n = 18
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.BluetoothLE" does not specify queries
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.BluetoothLE" does not specify services
[LoadComponentInfo] INFO: Generating component broadcast receivers...
[LoadComponentInfo] Task succeeded in 0.004 seconds
[PrepareAppIcon] Starting Task
[PrepareAppIcon] INFO: Creating mipmap dirs...
[PrepareAppIcon] INFO: Generating icons...
[PrepareAppIcon] Generating icons for mipmap-mdpi
[PrepareAppIcon] Generating icons for mipmap-hdpi
[PrepareAppIcon] Generating icons for mipmap-xhdpi
[PrepareAppIcon] Generating icons for mipmap-xxhdpi
[PrepareAppIcon] Generating icons for mipmap-xxxhdpi
[PrepareAppIcon] Task succeeded in 0.349 seconds
[XmlConfig] Starting Task
[XmlConfig] INFO: Creating animation xml
[XmlConfig] Creating zoom_enter.xml
[XmlConfig] Creating fadeout.xml
[XmlConfig] Creating slide_v_exit.xml
[XmlConfig] Creating fadein.xml
[XmlConfig] Creating zoom_exit.xml
[XmlConfig] Creating slide_v_enter.xml
[XmlConfig] Creating zoom_exit_reverse.xml
[XmlConfig] Creating slide_v_enter_reverse.xml
[XmlConfig] Creating zoom_enter_reverse.xml
[XmlConfig] Creating slide_enter_reverse.xml
[XmlConfig] Creating slide_exit.xml
[XmlConfig] Creating hold.xml
[XmlConfig] Creating slide_enter.xml
[XmlConfig] Creating slide_v_exit_reverse.xml
[XmlConfig] Creating slide_exit_reverse.xml
[XmlConfig] INFO: Creating style xml
[XmlConfig] INFO: Creating provider_path xml
[XmlConfig] INFO: Creating network_security_config xml
[XmlConfig] INFO: Generating adaptive icon file
[XmlConfig] INFO: Generating round adaptive icon file
[XmlConfig] INFO: Generating adaptive icon background file
[XmlConfig] Task succeeded in 0.003 seconds
[CreateManifest] Starting Task
[CreateManifest] INFO: Reading project specs...
[CreateManifest] VCode: 120
[CreateManifest] VName: 120
[CreateManifest] Min SDK 7
[CreateManifest] INFO: Writing screen 'appinventor.ai_solter_soldadura_app.waas_esp32_ble.Screen1'
[CreateManifest] Task succeeded in 0.001 seconds
[AttachNativeLibs] Starting Task
[AttachNativeLibs] Task succeeded in 0.0 seconds
[AttachAarLibs] Starting Task
[AttachAarLibs] Task succeeded in 0.127 seconds
[AttachCompAssets] Starting Task
[AttachCompAssets] Task succeeded in 0.002 seconds
[MergeResources] Starting Task
[MergeResources] Task succeeded in 0.201 seconds
[SetupLibs] Starting Task
[SetupLibs] Task succeeded in 0.0 seconds
[RunAapt] Starting Task
[RunAapt] Task succeeded in 0.955 seconds
[GenerateClasses] Starting Task
[GenerateClasses] INFO: Source File: appinventor/ai_solter_soldadura_app/waas_esp32_ble/Screen1.yail
[GenerateClasses] INFO: Libraries Classpath = /tmp/kawa12330205315425637565.jar:/tmp/acra-4.4.015823403909473444685.jar:/tmp/AndroidRuntime11101190314195325161.jar:/tmp/annotation8599234133784772423.jar:/tmp/annotation-experimental2116677618277733562.jar:/tmp/appcompat4377002569516018372.jar:/tmp/asynclayoutinflater7914116434868518239.jar:/tmp/collection11107585721007659608.jar:/tmp/constraintlayout6333638685351258055.jar:/tmp/constraintlayout-solver17593214731944675490.jar:/tmp/coordinatorlayout14430306077795484775.jar:/tmp/core1702156525541887926.jar:/tmp/core-common6842851791749055486.jar:/tmp/core-runtime7782386725125254637.jar:/tmp/cursoradapter10870072521135242022.jar:/tmp/customview2851358990715760013.jar:/tmp/documentfile8232394642535824254.jar:/tmp/drawerlayout5709763393970995513.jar:/tmp/fragment12466270274600136535.jar:/tmp/interpolator9962665378907405231.jar:/tmp/legacy-support-core-ui12274907925461745347.jar:/tmp/legacy-support-core-utils1383648132781432890.jar:/tmp/lifecycle-common16719186696125874227.jar:/tmp/lifecycle-livedata4017371069382826745.jar:/tmp/lifecycle-livedata-core6859408287257841118.jar:/tmp/lifecycle-runtime17694688196395008878.jar:/tmp/lifecycle-viewmodel957976525293697963.jar:/tmp/loader13853722409343822204.jar:/tmp/localbroadcastmanager16441789235033549888.jar:/tmp/print16479617206246082729.jar:/tmp/slidingpanelayout13130088501783404965.jar:/tmp/swiperefreshlayout10694018836685736681.jar:/tmp/vectordrawable13851431586598404511.jar:/tmp/vectordrawable-animated10195270121405212264.jar:/tmp/versionedparcelable68569648624452035.jar:/tmp/viewpager12676064896768817699.jar:/tmp/1742210822796_5459859321866106880-0/youngandroidproject/../assets/external_comps/com.google.appinventor.components.runtime.BluetoothLE/files/AndroidRuntime.jar:/tmp/1742210822796_5459859321866106880-0/youngandroidproject/../build/classes:/tmp/android13476182990727357701.jar
[GenerateClasses] ERROR: Kawa compile has failed.
(compiling appinventor/ai_solter_soldadura_app/waas_esp32_ble/Screen1.yail to appinventor.ai_solter_soldadura_app.waas_esp32_ble.Screen1)
ERROR: appinventor/ai_solter_soldadura_app/waas_esp32_ble/Screen1.yail line 2299: caught exception in inliner for #<procedure gnu.kawa.functions.AppendValues> - java.lang.RuntimeException: no such class: edu.mit.appinventor.ble.BluetoothLE
gnu.bytecode.ObjectType.getReflectClass(ObjectType.java:179)
gnu.bytecode.ClassType.getModifiers(ClassType.java:103)
gnu.bytecode.ClassType.isInterface(ClassType.java:471)
gnu.expr.InlineCalls.checkType(InlineCalls.java:56)
gnu.expr.InlineCalls.visit(InlineCalls.java:49)
gnu.expr.InlineCalls.visitSetExpValue(InlineCalls.java:363)
gnu.expr.InlineCalls.visitSetExpValue(InlineCalls.java:28)
gnu.expr.ExpVisitor.visitSetExp(ExpVisitor.java:114)
gnu.expr.InlineCalls.visitSetExp(InlineCalls.java:369)
gnu.expr.InlineCalls.visitSetExp(InlineCalls.java:28)
gnu.expr.SetExp.visit(SetExp.java:406)
gnu.expr.ExpVisitor.visit(ExpVisitor.java:55)
gnu.expr.InlineCalls.visit(InlineCalls.java:46)
gnu.expr.InlineCalls.visitBeginExp(InlineCalls.java:272)
gnu.expr.InlineCalls.visitBeginExp(InlineCalls.java:28)
gnu.expr.BeginExp.visit(BeginExp.java:156)
gnu.expr.ExpVisitor.visit(ExpVisitor.java:51)
gnu.expr.InlineCalls.visit(InlineCalls.java:46)
gnu.expr.InlineCalls.visit(InlineCalls.java:28)
gnu.expr.ExpVisitor.visitAndUpdate(ExpVisitor.java:161)
gnu.expr.ExpVisitor.visitExps(ExpVisitor.java:175)
gnu.expr.ApplyExp.visitArgs(ApplyExp.java:415)
gnu.kawa.functions.CompileMisc.validateApplyAppendValues(CompileMisc.java:139)
jdk.internal.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.base/java.lang.reflect.Method.invoke(Unknown Source)
gnu.expr.InlineCalls.maybeInline(InlineCalls.java:467)
gnu.expr.QuoteExp.validateApply(QuoteExp.java:150)
gnu.expr.InlineCalls.visitApplyExp(InlineCalls.java:119)
gnu.expr.InlineCalls.visitApplyExp(InlineCalls.java:28)
gnu.expr.ApplyExp.visit(ApplyExp.java:410)
gnu.expr.ExpVisitor.visit(ExpVisitor.java:55)
gnu.expr.InlineCalls.visit(InlineCalls.java:46)
gnu.expr.InlineCalls.visit(InlineCalls.java:28)
gnu.expr.LambdaExp.visitChildrenOnly(LambdaExp.java:1664)
gnu.expr.LambdaExp.visitChildren(LambdaExp.java:1651)
gnu.expr.InlineCalls.visitScopeExp(InlineCalls.java:279)
gnu.expr.InlineCalls.visitLambdaExp(InlineCalls.java:349)
gnu.expr.InlineCalls.visitLambdaExp(InlineCalls.java:28)
gnu.expr.ExpVisitor.visitModuleExp(ExpVisitor.java:103)
gnu.expr.ModuleExp.visit(ModuleExp.java:482)
gnu.expr.ExpVisitor.visit(ExpVisitor.java:51)
gnu.expr.InlineCalls.visit(InlineCalls.java:46)
gnu.expr.InlineCalls.inlineCalls(InlineCalls.java:33)
gnu.expr.Compilation.walkModule(Compilation.java:994)
gnu.expr.Compilation.process(Compilation.java:1965)
gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:330)
gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:315)
gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:315)
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)
[GenerateClasses] ERROR: Can't find class file for Screen 'Screen1'
[GenerateClasses] Task errored in 2.856 seconds

Something in your Project is broken, failing a Build.

(Canned Reply: ABG- Export & Upload .aia)
Export your .aia file and upload it here.

export_and_upload_aia

.

This happens if your project originally used either V1 or V2 of the BluetoothLE extension. The package changed between those versions and newer versions, and so your project has two copies of the extension present that causes issues. If you send me the project file I excise the old extension.