Problemas al generar mi apk, ERROR: d8 failed

Buen día comunidad. Me podrán apoyar. Tengo un problema con mi aplicación tme marca error al querer generar mi apk. Tiene 3 pantallas y si lo hago por separado de pantalla individual si me genera los apk.

Hello,

can you share your aia file?

What about providing the complete log, so we can provide suggestions?

Taifun

pase_de_lista.aia (715.6 KB)

App Inventor no ha podido compilar el proyecto.
El error de compilación es
[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] Component activities needed, n = 1
[LoadComponentInfo] INFO: Component "io.horizon.qrcodegenerator.QRCodeGenerator" does not specify activityMetadata
[LoadComponentInfo] Component activity metadata needed, n = 0
[LoadComponentInfo] INFO: Generating broadcast receivers...
[LoadComponentInfo] INFO: Component "io.horizon.qrcodegenerator.QRCodeGenerator" does not specify broadcastReceivers
[LoadComponentInfo] INFO: Component "io.horizon.qrcodegenerator.QRCodeGenerator" does not specify services
[LoadComponentInfo] Component content providers needed, n = 0
[LoadComponentInfo] INFO: Generating libraries...
[LoadComponentInfo] INFO: Component "io.horizon.qrcodegenerator.QRCodeGenerator" does not specify libraries
[LoadComponentInfo] Libraries needed, n = 5
[LoadComponentInfo] INFO: Component "io.horizon.qrcodegenerator.QRCodeGenerator" does not specify metadata
[LoadComponentInfo] Component metadata needed, n = 0
[LoadComponentInfo] INFO: Generating Android minimum SDK...
[LoadComponentInfo] INFO: Generating native libraries...
[LoadComponentInfo] INFO: Component "io.horizon.qrcodegenerator.QRCodeGenerator" does not specify native
[LoadComponentInfo] Native Libraries needed, n = 0
[LoadComponentInfo] INFO: Generating permissions...
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.BarcodeScanner" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.Button" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.Clock" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.File" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.Form" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.HorizontalArrangement" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.Image" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.Label" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.ListView" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.Notifier" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.TextBox" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.TinyDB" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.VerticalArrangement" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "io.horizon.qrcodegenerator.QRCodeGenerator" does not specify permissionConstraints
[LoadComponentInfo] usesLocation = False
[LoadComponentInfo] Permissions needed, n = 7
[LoadComponentInfo] INFO: Component "io.horizon.qrcodegenerator.QRCodeGenerator" does not specify queries
[LoadComponentInfo] INFO: Component "io.horizon.qrcodegenerator.QRCodeGenerator" does not specify services
[LoadComponentInfo] Component services needed, n = 0
[LoadComponentInfo] INFO: Generating component broadcast receivers...
[LoadComponentInfo] INFO: Component "io.horizon.qrcodegenerator.QRCodeGenerator" does not specify broadcastReceiver
[LoadComponentInfo] Task succeeded in 0.006 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 1.158 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: 1
[CreateManifest] VName: 1.0
[CreateManifest] Min SDK 7
[CreateManifest] INFO: Writing screen 'appinventor.ai_cemsad36cpt.pase_de_lista.Screen3'
[CreateManifest] INFO: Writing screen 'appinventor.ai_cemsad36cpt.pase_de_lista.Screen1'
[CreateManifest] INFO: Writing screen 'appinventor.ai_cemsad36cpt.pase_de_lista.Screen2'
[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.135 seconds
[AttachCompAssets] Starting Task
[AttachCompAssets] Task succeeded in 0.0 seconds
[MergeResources] Starting Task
[MergeResources] Task succeeded in 0.158 seconds
[SetupLibs] Starting Task
[SetupLibs] Task succeeded in 0.0 seconds
[RunAapt] Starting Task
[RunAapt] Task succeeded in 0.873 seconds
[GenerateClasses] Starting Task
[GenerateClasses] INFO: Source File: appinventor/ai_cemsad36cpt/pase_de_lista/Screen3.yail
[GenerateClasses] INFO: Source File: appinventor/ai_cemsad36cpt/pase_de_lista/Screen1.yail
[GenerateClasses] INFO: Source File: appinventor/ai_cemsad36cpt/pase_de_lista/Screen2.yail
[GenerateClasses] INFO: Libraries Classpath = /tmp/kawa13400618288088840001.jar:/tmp/acra-4.4.05318734484095638194.jar:/tmp/AndroidRuntime12527191804416074397.jar:/tmp/annotation938516420929822603.jar:/tmp/appcompat5475767126317252542.jar:/tmp/asynclayoutinflater11928807246704480409.jar:/tmp/collection16868740960172289847.jar:/tmp/constraintlayout11774548455557412609.jar:/tmp/constraintlayout-solver4697635520388449465.jar:/tmp/coordinatorlayout4510031982751502995.jar:/tmp/core15296385552588122433.jar:/tmp/core-common9973711601884493478.jar:/tmp/core-runtime3388559467904038867.jar:/tmp/cursoradapter18378335848003319762.jar:/tmp/customview1938943597922894035.jar:/tmp/documentfile12590695183989851664.jar:/tmp/drawerlayout903116671612182872.jar:/tmp/fragment16043906357684342846.jar:/tmp/interpolator8209078093032216325.jar:/tmp/legacy-support-core-ui3499665726620267297.jar:/tmp/legacy-support-core-utils17410957741290165328.jar:/tmp/lifecycle-common10781825586947424173.jar:/tmp/lifecycle-livedata18384837575752684912.jar:/tmp/lifecycle-livedata-core8260862320781103232.jar:/tmp/lifecycle-runtime2713930311008779797.jar:/tmp/lifecycle-viewmodel12919159605009531502.jar:/tmp/loader16706541191005896971.jar:/tmp/localbroadcastmanager17318518801951795290.jar:/tmp/print8446740408578024233.jar:/tmp/slidingpanelayout365759649894383511.jar:/tmp/swiperefreshlayout8163766993158279419.jar:/tmp/vectordrawable14117667049222835710.jar:/tmp/vectordrawable-animated16496931025403665939.jar:/tmp/versionedparcelable11521692755236803409.jar:/tmp/viewpager15419635076744307222.jar:/tmp/1719496215289_0.18103906041596174-0/youngandroidproject/../assets/external_comps/io.horizon.qrcodegenerator/files/AndroidRuntime.jar:/tmp/recyclerview6120517832986192814.jar:/tmp/cardview7623973834081370005.jar:/tmp/Barcode4856231164572363013.jar:/tmp/QRGenerator15061254134489646220.jar:/tmp/1719496215289_0.18103906041596174-0/youngandroidproject/../build/classes:/tmp/android5823548787250959768.jar
(compiling appinventor/ai_cemsad36cpt/pase_de_lista/Screen3.yail to appinventor.ai_cemsad36cpt.pase_de_lista.Screen3)
(compiling appinventor/ai_cemsad36cpt/pase_de_lista/Screen1.yail to appinventor.ai_cemsad36cpt.pase_de_lista.Screen1)
(compiling appinventor/ai_cemsad36cpt/pase_de_lista/Screen2.yail to appinventor.ai_cemsad36cpt.pase_de_lista.Screen2)
(compiling /tmp/runtime7624679233226930712.scm to com.google.youngandroid.runtime)
[GenerateClasses] Task succeeded in 2.427 seconds
[RunD8] Starting Task
[RunD8] INFO: Using pre-dexed dex-cached-a565821fcfb40dd06856c57f2784936e.dex <- /tmp/AndroidRuntime12527191804416074397.jar
[RunD8] INFO: Using pre-dexed dex-cached-4afd1465d334dee94ac700edb0374a45.dex <- /tmp/kawa13400618288088840001.jar
[RunD8] INFO: Using pre-dexed dex-cached-558104d32e109ad96655ecbe9fe4e39f.dex <- /tmp/annotation938516420929822603.jar
[RunD8] INFO: Using pre-dexed dex-cached-ef239d31d31d166f7410d71e14db1a68.dex <- /tmp/swiperefreshlayout8163766993158279419.jar
[RunD8] INFO: Using pre-dexed dex-cached-de87276390f7a8c71064f3e7908c143b.dex <- /tmp/core-common9973711601884493478.jar
[RunD8] INFO: Using pre-dexed dex-cached-c950a9845cca4523f19bc2fc922b41bf.dex <- /tmp/legacy-support-core-utils17410957741290165328.jar
[RunD8] INFO: Using pre-dexed dex-cached-35076b6f638faca00c217e98a0385344.dex <- /tmp/interpolator8209078093032216325.jar
[RunD8] INFO: Using pre-dexed dex-cached-bee920fd1e059913bf2d820dbb234720.dex <- /tmp/lifecycle-common10781825586947424173.jar
[RunD8] INFO: Using pre-dexed dex-cached-1e4d689047e2ee2cc76b7203626e9c33.dex <- /tmp/customview1938943597922894035.jar
[RunD8] INFO: Using pre-dexed dex-cached-74360288e1016af9d6afdd39a2caa1b8.dex <- /tmp/asynclayoutinflater11928807246704480409.jar
[RunD8] INFO: Using pre-dexed dex-cached-d53c4c8eedbf41663110b03a33fe9914.dex <- /tmp/lifecycle-runtime2713930311008779797.jar
[RunD8] INFO: Using pre-dexed dex-cached-032c68a2c5e93c1baac1524e105bbe88.dex <- /tmp/collection16868740960172289847.jar
[RunD8] INFO: Using pre-dexed dex-cached-91b7d1f3cb5fd0fd2f3a4c939316139b.dex <- /tmp/versionedparcelable11521692755236803409.jar
[RunD8] INFO: Using pre-dexed dex-cached-16ea1fc3b7e49139559eafccec2708ab.dex <- /tmp/lifecycle-viewmodel12919159605009531502.jar
[RunD8] INFO: Using pre-dexed dex-cached-84637f838557e65ad5856467fd22316c.dex <- /tmp/print8446740408578024233.jar
[RunD8] INFO: Using pre-dexed dex-cached-a9e803bf51318b35fcaf603f59f25f7c.dex <- /tmp/vectordrawable14117667049222835710.jar
[RunD8] INFO: Using pre-dexed dex-cached-b73957ec00af79319f56aedf27dff3fc.dex <- /tmp/core-runtime3388559467904038867.jar
[RunD8] INFO: Using pre-dexed dex-cached-e3991bb5e40b91eb1bbb1ae83bde23b2.dex <- /tmp/core15296385552588122433.jar
[RunD8] INFO: Using pre-dexed dex-cached-e890ce7827a13b8714afbb241f7e89b2.dex <- /tmp/lifecycle-livedata-core8260862320781103232.jar
[RunD8] INFO: Using pre-dexed dex-cached-81757b9148a3984b5874ef1fd300acdb.dex <- /tmp/documentfile12590695183989851664.jar
[RunD8] INFO: Using pre-dexed dex-cached-b83403f2b639cc6e7a6f9c0681d69367.dex <- /tmp/viewpager15419635076744307222.jar
[RunD8] INFO: Using pre-dexed dex-cached-c2a16bb02f51a6fcd1ff46dd1a78d0bf.dex <- /tmp/slidingpanelayout365759649894383511.jar
[RunD8] INFO: Using pre-dexed dex-cached-2eabb48fdf784357d984acbda18ea6a3.dex <- /tmp/appcompat5475767126317252542.jar
[RunD8] INFO: Using pre-dexed dex-cached-7a5a85c38b934be86a121ca9b5e7477b.dex <- /tmp/vectordrawable-animated16496931025403665939.jar
[RunD8] INFO: Using pre-dexed dex-cached-a3a712d1d179d231b40a977ed5593202.dex <- /tmp/lifecycle-livedata18384837575752684912.jar
[RunD8] INFO: Using pre-dexed dex-cached-9b1768a7734de4eaf5a635a007ad4b25.dex <- /tmp/coordinatorlayout4510031982751502995.jar
[RunD8] INFO: Using pre-dexed dex-cached-d3d338969c3cd4ad53a888753da3b580.dex <- /tmp/cursoradapter18378335848003319762.jar
[RunD8] INFO: Using pre-dexed dex-cached-a116e0a41475b6522ae295f7cc4ff4b3.dex <- /tmp/legacy-support-core-ui3499665726620267297.jar
[RunD8] INFO: Using pre-dexed dex-cached-a07a23b88daaae0b48cdd25378e03b03.dex <- /tmp/localbroadcastmanager17318518801951795290.jar
[RunD8] INFO: Using pre-dexed dex-cached-bb8901219e7be6c576cc65e75503d7fa.dex <- /tmp/fragment16043906357684342846.jar
[RunD8] INFO: Using pre-dexed dex-cached-fca718e99e97cb52f4c8c0ada2c74e72.dex <- /tmp/drawerlayout903116671612182872.jar
[RunD8] INFO: Using pre-dexed dex-cached-ccb6f0c5e0adc11059c3d609a2fd15d6.dex <- /tmp/loader16706541191005896971.jar
[RunD8] INFO: Using pre-dexed dex-cached-c0e4dda29672c028ea3ce0e3785040de.dex <- /tmp/constraintlayout11774548455557412609.jar
[RunD8] INFO: Using pre-dexed dex-cached-85f46a2fd295a23f59a391cccd7a11c8.dex <- /tmp/constraintlayout-solver4697635520388449465.jar
[RunD8] INFO: Using pre-dexed dex-cached-370141da323cce576844a05ab81d1c69.dex <- /tmp/Barcode4856231164572363013.jar
[RunD8] INFO: Using pre-dexed dex-cached-742155d268fadbad92adb35be882bd67.dex <- /tmp/recyclerview6120517832986192814.jar
[RunD8] INFO: Using pre-dexed dex-cached-1bc51353c62ddc7fef531c4bbfd9e480.dex <- /tmp/cardview7623973834081370005.jar
[RunD8] INFO: Using pre-dexed dex-cached-34183dd13eefd80bd93dbefb2cca2c89.dex <- /tmp/QRGenerator15061254134489646220.jar
[RunD8] ERROR: d8 failed.
[RunD8] Task errored in 1.919 seconds

I guess BarcodeScanner together with the QR extension are causing the problem. Maybe you can use an alternative extension to be able to read both, QR and bar codes like this:

gracias. deja pruebo con esta extensión. muy amable Ramon.

pero si me funciona por separado. osea al generar solo para crear el codigo qr. creo la apk y si me la crea, luego creo el de escanear codigo qr y si me crea la otra apk. pero las quiero juntas en una sola apk y ahi no deja

It seems there is any incompatibility between the extension and the component and that is the reason the app doesn't compile when both are together.

Perhaps, you can try to generate the QR and alternative extension.