Build .apk hang at 50%

[java] => res/layout-v26/abc_screen_toolbar.xml
 [java] => res/layout-v9/abc_select_dialog_material.xml
 [java] => res/layout-watch-v20/abc_alert_dialog_button_bar_material.xml
 [java] => res/layout-watch-v20/abc_alert_dialog_title_material.xml
 [java] => res/layout/abc_action_bar_title_item.xml
 [java] => res/layout/abc_action_bar_up_container.xml
 [java] => res/layout/abc_action_menu_item_layout.xml
 [java] => res/layout/abc_action_menu_layout.xml
 [java] => res/layout/abc_action_mode_bar.xml
 [java] => res/layout/abc_action_mode_close_item_material.xml
 [java] => res/layout/abc_activity_chooser_view.xml
 [java] => res/layout/abc_activity_chooser_view_list_item.xml
 [java] => res/layout/abc_alert_dialog_button_bar_material.xml
 [java] => res/layout/abc_alert_dialog_material.xml
 [java] => res/layout/abc_alert_dialog_title_material.xml
 [java] => res/layout/abc_cascading_menu_item_layout.xml
 [java] => res/layout/abc_dialog_title_material.xml
 [java] => res/layout/abc_expanded_menu_layout.xml
 [java] => res/layout/abc_list_menu_item_checkbox.xml
 [java] => res/layout/abc_list_menu_item_icon.xml
 [java] => res/layout/abc_list_menu_item_layout.xml
 [java] => res/layout/abc_list_menu_item_radio.xml
 [java] => res/layout/abc_popup_menu_header_item_layout.xml
 [java] => res/layout/abc_popup_menu_item_layout.xml
 [java] => res/layout/abc_screen_content_include.xml
 [java] => res/layout/abc_screen_simple.xml
 [java] => res/layout/abc_screen_simple_overlay_action_mode.xml
 [java] => res/layout/abc_screen_toolbar.xml
 [java] => res/layout/abc_search_dropdown_item_icons_2line.xml
 [java] => res/layout/abc_search_view.xml
 [java] => res/layout/abc_select_dialog_material.xml
 [java] => res/layout/abc_tooltip.xml
 [java] => res/layout/notification_action.xml
 [java] => res/layout/notification_action_tombstone.xml
 [java] => res/layout/notification_template_custom_big.xml
 [java] => res/layout/notification_template_icon_group.xml
 [java] => res/layout/notification_template_part_chronometer.xml
 [java] => res/layout/notification_template_part_time.xml
 [java] => res/layout/select_dialog_item_material.xml
 [java] => res/layout/select_dialog_multichoice_material.xml
 [java] => res/layout/select_dialog_singlechoice_material.xml
 [java] => res/layout/support_simple_spinner_dropdown_item.xml
 [java] => res/mipmap-anydpi-v26/ic_launcher.xml
 [java] => res/mipmap-anydpi-v26/ic_launcher_round.xml
 [java] => res/mipmap-hdpi-v4/ic_launcher.png
 [java] => res/mipmap-hdpi-v4/ic_launcher_foreground.png
 [java] => res/mipmap-hdpi-v4/ic_launcher_round.png
 [java] => res/mipmap-mdpi-v4/ic_launcher.png
 [java] => res/mipmap-mdpi-v4/ic_launcher_foreground.png
 [java] => res/mipmap-mdpi-v4/ic_launcher_round.png
 [java] => res/mipmap-xhdpi-v4/ic_launcher.png
 [java] => res/mipmap-xhdpi-v4/ic_launcher_foreground.png
 [java] => res/mipmap-xhdpi-v4/ic_launcher_round.png
 [java] => res/mipmap-xxhdpi-v4/ic_launcher.png
 [java] => res/mipmap-xxhdpi-v4/ic_launcher_foreground.png
 [java] => res/mipmap-xxhdpi-v4/ic_launcher_round.png
 [java] => res/mipmap-xxxhdpi-v4/ic_launcher.png
 [java] => res/mipmap-xxxhdpi-v4/ic_launcher_foreground.png
 [java] => res/mipmap-xxxhdpi-v4/ic_launcher_round.png
 [java] => res/xml/network_security_config.xml
 [java] => res/xml/provider_paths.xml
 [java] => resources.arsc
 [java] /tmp/1642492662144_0.2742395847211385-0/youngandroidproject/../build/tmp/classes.dex => classes.dex
 [java] Jan 18, 2022 3:58:06 PM com.google.appinventor.buildserver.Compiler setProgress
 [java] INFO: The current progress is 75%
 [java] Jan 18, 2022 3:58:06 PM com.google.appinventor.buildserver.BuildServer$ProgressReporter report
 [java] SEVERE: IOException during progress report!
 [java] Jan 18, 2022 3:58:06 PM com.google.appinventor.buildserver.Compiler runMultidex
 [java] INFO: DX time: 19.823000 seconds
 [java] Jan 18, 2022 3:58:06 PM com.google.appinventor.buildserver.BuildServer$ProgressReporter report
 [java] SEVERE: IOException during progress report!
 [java] /tmp/1642492662144_0.2742395847211385-0/youngandroidproject/../build/tmp/classes2.dex => classes2.dex
 [java] Jan 18, 2022 3:58:06 PM com.google.appinventor.buildserver.BuildServer$ProgressReporter report
 [java] SEVERE: IOException during progress report!
 [java] Jan 18, 2022 3:58:06 PM com.google.appinventor.buildserver.Execution execute
 [java] INFO: ____Executing /tmp/zipalign5976448368132019428 -f 4 /tmp/1642492662144_0.2742395847211385-0/youngandroidproject/../build/deploy/hhh5.apk /tmp/1642492662144_0.2742395847211385-0/youngandroidproject/../build/tmp/zipaligned.apk
 [java] Jan 18, 2022 3:58:06 PM com.google.appinventor.buildserver.Compiler runZipAlign
 [java] INFO: ZIPALIGN time: 0.026 seconds
 [java] Jan 18, 2022 3:58:06 PM com.google.appinventor.buildserver.Execution execute
 [java] INFO: ____Executing /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -jar -mx1848M /tmp/apksigner4225494730027433154.jar sign -ks /tmp/1642492662144_0.2742395847211385-0/android.keystore -ks-key-alias AndroidKey -ks-pass pass:android /tmp/1642492662144_0.2742395847211385-0/youngandroidproject/../build/deploy/hhh5.apk
 [java] Jan 18, 2022 3:58:07 PM com.google.appinventor.buildserver.Compiler runApkSigner
 [java] INFO: APKSIGNER time: 0.586 seconds
 [java] Jan 18, 2022 3:58:07 PM com.google.appinventor.buildserver.BuildServer$ProgressReporter report
 [java] SEVERE: IOException during progress report!
 [java] Jan 18, 2022 3:58:07 PM com.google.appinventor.buildserver.BuildServer build
 [java] INFO: Build output: ________Preparing application icon<br>________Creating animation xml<br>________Creating style xml<br>________Creating provider_path xml<br>________Creating network_security_config xml<br>________Generating adaptive icon file<br>________Generating round adaptive icon file<br>________Generating adaptive icon background file<br>________Generating manifest file<br>________Attaching native libraries<br>________Attaching Android Archive (AAR) libraries<br>________Attaching component assets<br>________Invoking AAPT<br>AAPT time: 0.864 seconds<br>________Compiling source files<br>(compiling appinventor/ai_test/hhh5/Screen1.yail to appinventor.ai_test.hhh5.Screen1)<br>(compiling /tmp/runtime5098580866376632285.scm to com.google.youngandroid.runtime)<br>Kawa compile time: 1.272 seconds<br>________Invoking DX<br>DX time: 19.823000 seconds<br>________Invoking ApkBuilder<br>________ZipAligning the apk file<br>ZIPALIGN time: 0.026 seconds<br>________Signing the apk file<br>APKSIGNER time: 0.586 seconds<br>Build finished in 24.67 seconds<br>
 [java] Jan 18, 2022 3:58:07 PM com.google.appinventor.buildserver.BuildServer build
 [java] INFO: Build error output: 
 [java] Jan 18, 2022 3:58:07 PM com.google.appinventor.buildserver.BuildServer checkMemory
 [java] INFO: Build 4 current used memory: 23145952 bytes
 [java] Jan 18, 2022 3:58:07 PM com.google.appinventor.buildserver.BuildServer$1 run
 [java] INFO: CallbackURL: http://localhost:8888/ode2/receivebuild/d6i7xmc5o7c3zm2bn5i0n7xunq29tl4q4vwzmm7wuuhn88vvdvodv1oeacagedxbrfaqxxloidgui0thcixhn6vddbhkj0umhcm5p6lilvlanwg422ldr6p2sg8ko1haie93symn5a/build/Android
 [java] Jan 18, 2022 3:58:07 PM com.google.appinventor.buildserver.BuildServer$1 run
 [java] SEVERE: Exception: Connection refused (Connection refused) and the length is of inputZip is 1801
 [java] Jan 18, 2022 3:58:07 PM com.google.appinventor.buildserver.BuildServer checkMemory
 [java] INFO: Build 4 current used memory: 20400472 bytes
 [java] Jan 18, 2022 3:58:07 PM com.google.appinventor.buildserver.BuildServer$1 run
 [java] INFO: BUILD 4 FINISHED


when I builded .apk ,the process hanged at 50%,not moving later.
how to solve this problem,thank you

This was happened for me before...
I just have to refresh app inventor to solve my problem
sorry... I don't know what's this:

I refreshed,but it still has the problem

1 Like

can you show a screenshot of the blocks you used please?

hmm... I haven't learned these blocks yet. I started from another place.
maybe other users can help.

The blocks have to do nothing with the build fail.

are you using custom ai2? if yes did you run build server before building

It says there's an error, but doesn't actually display it. It either might be a memory issue, or an error which was ignored. I'm not sure if this is relevant to the build failing, or not.

1 Like


this is the server information,
i use this command to support 64bit,is it right?