if you want fullscreen try using the visustella core plugin
Viewing post in Error
Hello again, Anaryx 😁 . I'm having another problem—please help 🙏
[17:04:53] Building APK...
[17:04:53] PAD: OFF | minSdk: 21 | targetSdk: 36 | Orient: landscape
[17:04:53] Output: Documents/AG APK BUILDER (default)
[17:04:53] [AdMob] Disabled — build tanpa monetisasi
[17:04:53] [AGNotification] Disabled — build tanpa notifikasi
[17:04:53] [AGJoystick] Disabled — build tanpa virtual joystick
[17:04:53] [Java] Using: C:\Users\HELLO\Downloads\AG-APK-Builder-v1-4\resources\jre
[17:04:53] [AdMob] Toggle disabled — AdMob is not used.
[17:04:53] [AGNotification] Toggle nonaktif — Notification tidak digunakan.
[17:04:53] [AGJoystick] Toggle nonaktif — Joystick tidak digunakan.
[17:04:53] [AGPay] AGPay.js tidak ditemukan — AGPay nonaktif.
[17:04:53] [Build] AdMob : disabled
[17:04:53] [Build] Notif : disabled
[17:04:53] [Build] Joystick : disabled
[17:04:53] [Build] AGPay : disabled
[17:04:53] [Build] PAD : disabled
[17:04:53] [Build] Orient. : landscape
[17:04:53] Preparing environment... (AGP 8.3.2)
[17:04:53] [Gradle] wrapper → gradle-8.7-bin.zip (absolute file:///)
[17:04:53] [AGP] Memeriksa AGP & Kotlin plugin cache...
[17:04:53] OK gradle (cached)
[17:04:53] OK gradle-api (cached)
[17:04:53] OK builder (cached)
[17:04:53] OK builder-model (cached)
[17:04:53] OK com.android.application.gradle.plugin (cached)
[17:04:53] OK org.jetbrains.kotlin.android.gradle.plugin (cached)
[17:04:53] OK kotlin-gradle-plugin (cached)
[17:04:53] [AGP] Semua plugin siap. Build akan jalan offline.
[17:04:53] Injecting www...
[17:04:53] [Java] MainActivity.java written (Standard)
[17:05:29] Updating strings.xml...
[17:05:29] Patching manifest...
[17:05:29] [Orientation] screenOrientation set to: landscape
[17:05:29] Processing icons...
[17:05:29] Updating Gradle...
[17:05:29] [Gradle] compileSdk=35, targetSdk=35
[17:05:29] Running Gradle bundleRelease...
[17:05:41] 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.
[17:05:52] Daemon will be stopped at the end of the build
[17:06:21] > Task :app:preBuild UP-TO-DATE > Task :app:preReleaseBuild UP-TO-DATE
[17:06:21] > Task :app:generateReleaseResValues
[17:06:23] > Task :app:mapReleaseSourceSetPaths > Task :app:generateReleaseResources
[17:06:30] > Task :app:mergeReleaseResources
[17:06:30] 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.
[17:06:30] 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.
[17:06:30] 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. 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. 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. 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.
[17:06:30] 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. 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. 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-xxhdpi\ic_launcher.png because it is hidden.
[17:06:30] > Task :app:createReleaseCompatibleScreenManifests > Task :app:extractDeepLinksRelease
[17:06:32] > Task :app:processReleaseMainManifest
[17:06:32] > Task :app:processReleaseManifest > Task :app:processApplicationManifestReleaseForBundle
[17:06:32] > Task :app:mergeReleaseResources 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.
[17:06:32] > Task :app:checkReleaseAarMetadata
[17:06:32] > Task :app:packageReleaseResources
[17:06:33] > Task :app:parseReleaseLocalResources > Task :app:extractReleaseVersionControlInfo > Task :app:mergeReleaseShaders
[17:06:33] > Task :app:compileReleaseShaders NO-SOURCE > Task :app:generateReleaseAssets UP-TO-DATE
[17:07:02] > Task :app:processReleaseManifestForPackage
[17:07:03] > Task :app:mergeReleaseAssets
[17:11:05] > Task :app:buildKotlinToolingMetadata
[17:11:06] > Task :app:checkKotlinGradlePluginConfigurationErrors
[17:11:06] > Task :app:javaPreCompileRelease
[17:11:06] > Task :app:extractProguardFiles
[17:11:06] > Task :app:mergeReleaseJniLibFolders
[17:11:06] > Task :app:mergeReleaseArtProfile > Task :app:mergeReleaseNativeLibs NO-SOURCE > Task :app:stripReleaseDebugSymbols NO-SOURCE > Task :app:writeReleaseAppMetadata
[17:11:07] > Task :app:checkReleaseDuplicateClasses
[17:11:08] > Task :app:collectReleaseDependencies
[17:11:08] > Task :app:configureReleaseDependencies > Task :app:extractReleaseNativeSymbolTables NO-SOURCE > Task :app:parseReleaseIntegrityConfig UP-TO-DATE > Task :app:validateSigningRelease
[17:11:12] > Task :app:processReleaseResources
[17:11:12] > Task :app:compileReleaseKotlin NO-SOURCE
[17:11:13] > Task :app:bundleReleaseResources
[17:11:15] > Task :app:compileReleaseJavaWithJavac
[17:11:15] Note: C:\Users\HELLO\Downloads\AG-APK-Builder-v1-4\resources\base_module\app\src\main\java\com\hazunee\holdinghandsid\MainActivity.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.
[17:11:16] > Task :app:mergeReleaseGeneratedProguardFiles UP-TO-DATE
[17:11:16] > Task :app:processReleaseJavaRes
[17:11:19] > Task :app:expandReleaseArtProfileWildcards
[17:11:24] > Task :app:mergeReleaseJavaResource
[17:11:54] > Task :app:minifyReleaseWithR8
[17:12:25] > Task :app:buildReleasePreBundle
[17:12:25] > Task :app:compileReleaseArtProfile
[17:12:41] > Task :app:packageReleaseBundle
[17:12:51] > Task :app:signReleaseBundle FAILED
[17:12:52] 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 * Try:
[17:12:52] > Run with --stacktrace option to get the stack trace.
[17:12:52] 40 actionable tasks: 38 executed, 2 up-to-date
[17:12:52] > 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 7m 21s
[17:12:53] FAILURE: Build failed with an exception. * What went wrong: Java heap space * Try: > Run with --stacktrace option to get the stack trace.
[17:12:53] > 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 7m 22s
[17:12:53] [ERROR] CMD FAILED exit code 1
[17:13:00] [ERROR] Build failed: Error invoking remote method 'build-apk': Error: CMD FAILED exit code 1
Hello again. This error occurs because your PC is running out of RAM during the build process. If you have more than 8GB of RAM, you can download the JVM fix file and adjust the 8GB setting to match your PC's specifications. If your PC has 8GB of RAM or less, you should close some applications to allow the APK build to proceed without interruption.
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
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.