Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Uhh, sorry. There was another error 🥲

[20:03:52] Building APK...

[20:03:52] PAD: OFF | minSdk: 24 | targetSdk: 36 | Orient: landscape

[20:03:52] Output: Documents/AG APK BUILDER (default)

[20:03:52] [AdMob] Disabled — build tanpa monetisasi

[20:03:52] [AGNotification] Disabled — build tanpa notifikasi

[20:03:52] [AGJoystick] Disabled — build tanpa virtual joystick

[20:03:52] [Java] Using: C:\Users\HELLO\Downloads\AG-APK-Builder-v1-4\resources\jre

[20:03:52] [AdMob] Toggle disabled — AdMob is not used.

[20:03:52] [AGNotification] Toggle nonaktif — Notification tidak digunakan.

[20:03:52] [AGJoystick] Toggle nonaktif — Joystick tidak digunakan.

[20:03:52] [AGPay] AGPay.js tidak ditemukan — AGPay nonaktif.

[20:03:52] [Build] AdMob : disabled

[20:03:52] [Build] Notif : disabled

[20:03:52] [Build] Joystick : disabled

[20:03:52] [Build] AGPay : disabled

[20:03:52] [Build] PAD : disabled

[20:03:52] [Build] Orient. : landscape

[20:03:52] Preparing environment... (AGP 8.3.2)

[20:04:07] [Gradle] wrapper → gradle-8.7-bin.zip (absolute file:///)

[20:04:07] [AGP] Memeriksa AGP & Kotlin plugin cache...

[20:04:07] OK gradle (cached)

[20:04:07] OK gradle-api (cached)

[20:04:07] OK builder (cached)

[20:04:07] OK builder-model (cached)

[20:04:07] OK com.android.application.gradle.plugin (cached)

[20:04:07] OK org.jetbrains.kotlin.android.gradle.plugin (cached)

[20:04:07] OK kotlin-gradle-plugin (cached)

[20:04:07] [AGP] Semua plugin siap. Build akan jalan offline.

[20:04:07] Injecting www...

[20:04:07] [Java] MainActivity.java written (Standard)

[20:04:57] Updating strings.xml...

[20:04:57] Patching manifest...

[20:04:57] [Orientation] screenOrientation set to: landscape

[20:04:57] Processing icons...

[20:04:57] Updating Gradle...

[20:04:57] [Gradle] compileSdk=35, targetSdk=35

[20:04:57] Running Gradle bundleRelease...

[20:04:58] To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.7/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.

[20:05:01] Daemon will be stopped at the end of the build

[20:05:17] > Task :app:preBuild UP-TO-DATE > Task :app:preReleaseBuild UP-TO-DATE

[20:05:17] > Task :app:generateReleaseResValues

[20:05:18] > Task :app:mapReleaseSourceSetPaths > Task :app:generateReleaseResources

[20:05:21] > Task :app:createReleaseCompatibleScreenManifests > Task :app:extractDeepLinksRelease

[20:05:22] > Task :app:mergeReleaseResources Omitting file C:\Users\HELLO\Downloads\AG-APK-Builder-v1-4\resources\base_module\app\src\main\res\mipmap-mdpi\ic_launcher.png because it is hidden.

[20:05:22] Omitting file C:\Users\HELLO\Downloads\AG-APK-Builder-v1-4\resources\base_module\app\src\main\res\mipmap-xxhdpi\ic_launcher_round.png because it is hidden.

[20:05:22] Omitting file C:\Users\HELLO\Downloads\AG-APK-Builder-v1-4\resources\base_module\app\src\main\res\mipmap-hdpi\ic_launcher_round.png because it is hidden.

[20:05:22] Omitting file C:\Users\HELLO\Downloads\AG-APK-Builder-v1-4\resources\base_module\app\src\main\res\mipmap-mdpi\ic_launcher_round.png because it is hidden. Omitting file C:\Users\HELLO\Downloads\AG-APK-Builder-v1-4\resources\base_module\app\src\main\res\mipmap-xxxhdpi\ic_launcher.png because it is hidden. Omitting file C:\Users\HELLO\Downloads\AG-APK-Builder-v1-4\resources\base_module\app\src\main\res\mipmap-xxhdpi\ic_launcher.png because it is hidden. Omitting file C:\Users\HELLO\Downloads\AG-APK-Builder-v1-4\resources\base_module\app\src\main\res\mipmap-xhdpi\ic_launcher_round.png because it is hidden. Omitting file C:\Users\HELLO\Downloads\AG-APK-Builder-v1-4\resources\base_module\app\src\main\res\mipmap-xhdpi\ic_launcher.png because it is hidden.

[20:05:23] Omitting file C:\Users\HELLO\Downloads\AG-APK-Builder-v1-4\resources\base_module\app\src\main\res\mipmap-xxxhdpi\ic_launcher_round.png because it is hidden. Omitting file C:\Users\HELLO\Downloads\AG-APK-Builder-v1-4\resources\base_module\app\src\main\res\mipmap-hdpi\ic_launcher.png because it is hidden.

[20:05:23] Omitting file C:\Users\HELLO\Downloads\AG-APK-Builder-v1-4\resources\base_module\app\src\main\res\mipmap-xxxhdpi\ic_launcher_foreground.png because it is hidden.

[20:05:23] > Task :app:processReleaseMainManifest

[20:05:24] > Task :app:processReleaseManifest > Task :app:processApplicationManifestReleaseForBundle

[20:05:24] > Task :app:checkReleaseAarMetadata

[20:05:24] > Task :app:packageReleaseResources

[20:05:25] > Task :app:parseReleaseLocalResources

[20:05:25] > Task :app:extractReleaseVersionControlInfo

[20:05:25] > Task :app:mergeReleaseShaders > Task :app:compileReleaseShaders NO-SOURCE > Task :app:generateReleaseAssets UP-TO-DATE

[20:05:40] > Task :app:mergeReleaseAssets

[20:05:40] > Task :app:buildKotlinToolingMetadata

[20:05:40] > Task :app:checkKotlinGradlePluginConfigurationErrors > Task :app:javaPreCompileRelease

[20:05:40] > Task :app:checkReleaseDuplicateClasses > Task :app:mergeReleaseArtProfile

[20:05:40] > Task :app:extractProguardFiles > Task :app:mergeReleaseJniLibFolders > Task :app:mergeReleaseNativeLibs NO-SOURCE > Task :app:stripReleaseDebugSymbols

[20:05:40] NO-SOURCE > Task :app:writeReleaseAppMetadata

[20:05:40] > Task :app:collectReleaseDependencies > Task :app:configureReleaseDependencies

[20:05:41] > Task :app:extractReleaseNativeSymbolTables NO-SOURCE > Task :app:parseReleaseIntegrityConfig

[20:05:41] UP-TO-DATE > Task :app:validateSigningRelease > Task :app:processReleaseManifestForPackage

[20:05:43] > Task :app:processReleaseResources

[20:05:43] > Task :app:compileReleaseKotlin NO-SOURCE

[20:05:45] > Task :app:compileReleaseJavaWithJavac

[20:05:45] Note: C:\Users\HELLO\Downloads\AG-APK-Builder-v1-4\resources\base_module\app\src\main\java\com\hazunee\holdinghands\MainActivity.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.

[20:05:45] > Task :app:mergeReleaseGeneratedProguardFiles UP-TO-DATE

[20:05:45] > Task :app:processReleaseJavaRes

[20:05:45] > Task :app:bundleReleaseResources

[20:05:45] > Task :app:expandReleaseArtProfileWildcards

[20:05:49] > Task :app:mergeReleaseJavaResource

[20:06:19] > Task :app:minifyReleaseWithR8

[20:07:05] > Task :app:buildReleasePreBundle

[20:09:11] > Task :app:compileReleaseArtProfile

[20:09:24] > Task :app:packageReleaseBundle

[20:09:42] > Task :app:signReleaseBundle FAILED

[20:09:43] FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:signReleaseBundle'. > A failure occurred while executing com.android.build.gradle.internal.tasks.FinalizeBundleTask$BundleToolRunnable

[20:09:43] * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org. BUILD FAILED in 4m 45s

[20:09:43] 40 actionable tasks: 38 executed, 2 up-to-date

[20:09:43] FAILURE: Build completed with 2 failures. 1: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':app:signReleaseBundle'. > A failure occurred while executing com.android.build.gradle.internal.tasks.FinalizeBundleTask$BundleToolRunnable * Try: > Run with --stacktrace

[20:09:43] option to get the stack trace.

[20:09:43] > Run with

[20:09:43] --info or --debug option to get more log output. >

[20:09:43] Run with --scan to get full insights. > Get more help at https://help.gradle.org. ============================================================================== 2: Task failed with an exception. ----------- * What went wrong: Java heap space * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. >

[20:09:43] Run with --scan to get full insights.

[20:09:43] > Get more help at https://help.gradle.org. ============================================================================== BUILD FAILED in 4m 46s

[20:09:44] FAILURE: Build failed with an exception. * What went wrong: Could not receive a message from the daemon. * Try: > Run with --stacktrace option to get the stack trace.

[20:09:44] > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org.

[20:09:44] [ERROR] CMD FAILED exit code 1

[20:09:48] [ERROR] Build failed: Error invoking remote method 'build-apk': Error: CMD FAILED exit code 1

This is the same error as yesterday, Javaheap ran out of RAM to process the build. May I know how much RAM your PC has so I can tell you the best Java heap settings?

It's okay. The problem has been resolved. My laptop has 16 GB of RAM. I tried changing the JVM memory to “4g,” but it didn’t work. Then I tried changing it to “8g,” and that worked. Any PC or laptop with 16 GB of RAM should be able to do this—there should be at least 3 or 4 GB of RAM left after changing the JVM memory to 8. And try not to open anything other than AG so you have more RAM available. Oh, and I wanted to ask—is the file size limit really only 2 GB? Will it be increased in future updates?


Sorry for the late reply—I’ve been busy with real life stuff 😅

Yes, that's a good solution for people who have the same problem, thank you, actually the size limit of the ag apk builder is small, only 150 mb, the big ones are the raw materials for android studio, such as gradle, java, cache, in the future I will add virtual android and many new plugins, maybe the size will increase, but this is an option if you don't want to use it, it's okay. No problem i'm always here if you need again.