Exporting to Android (MV Android Client)

Hi, I just opened the client however I am unable to find the build variant....Am I missing something?

1698765015980.png
Gave it a try but couldn't get it work. Same applies to https://hackmd.io/@Mirai/RPGMakerMVMZ-Android_eng Even just making a fresh RPGMaker project -> export to web -> moving to assets/www leads to the screen sometimes being black.

I tried the trick on the previous page about the index.html as well but no dice, although I suppose it goes into the right direction. When I rapidly tap the screen while it's starting it always starts without being stuck with black screen+background music playing.

Guess I will be sticking around with cordova, as deprecated and painfult it is...

EDIT: https://forums.rpgmakerweb.com/index.php?threads/solved-rpg-maker-mz-huge-black-screen-issue.138768/ This worked for me.

EDIT2: Only(?) issue I remain to face is that there is a strange amount of padding below and above the webview for me.
EDIT2: Only(?) issue I remain to face is that there is a strange amount of padding below and above the webview for me.
Out of curiosity, can you identify whether the padding are inside or outside the WebView?
If you can't identify it, momentarily replace the index.html with an empty page with just a different background color, preferably yellow or green.
Out of curiosity, can you identify whether the padding are inside or outside the WebView?
If you can't identify it, momentarily replace the index.html with an empty page with just a different background color, preferably yellow or green.
Replacing the BG color in the body with white makes everything around the "game area" turn white, so I guess the webview, including the space above and below, is actually truly fullscreen.

I figured it out after several hours. It's from this snipped in RPGMaker.

Code:
Graphics._stretchHeight = function() {
if (Utils.isMobileDevice()) {
// [Note] Mobile browsers often have special operations at the top and
        //   bottom of the screen.
        const rate = Utils.isLocal() ? 1.0 : 0.9;
return document.documentElement.clientHeight * rate;
} else {
return window.innerHeight;
    }
};
Hello everyone, for some reason my project is not working well on Android 12.
I have been using my project on several Android systems (9, 10, 11...) and it works perfectly on all of them, but on my new mobile, which is Android 12, there are graphical errors.
Does somebody knows why it could be?
Replacing the BG color in the body with white makes everything around the "game area" turn white, so I guess the webview, including the space above and below, is actually truly fullscreen.

I figured it out after several hours. It's from this snipped in RPGMaker.

Code:
Graphics._stretchHeight = function() {
if (Utils.isMobileDevice()) {
// [Note] Mobile browsers often have special operations at the top and
        //   bottom of the screen.
        const rate = Utils.isLocal() ? 1.0 : 0.9;
return document.documentElement.clientHeight * rate;
} else {
return window.innerHeight;
    }
};
I was thinking the problem was outside of the WebView, but from what I understand now that's not the case.
If it is actually in the body of the document, I had tried to solve it before:
I was thinking the problem was outside of the WebView, but from what I understand now that's not the case.
If it is actually in the body of the document, I had tried to solve it before:
There were technically 3 different issues with the Fullscreen. Two of which were because of the WebView.
(1) There is a difference between Fullscreen and Immersive Fullscreen, the prior reserving space for the bars, even if you make their styling invisible. Immersive Fullscreen truly hides them.
(2) Outdated API which made fullscreen flags not work.
A solution to these two problems, I found online


And then the third problem is the one I posted about on in this thread resulting from the stretching factor. Technically, there is still a tiny bit of padding so it's not 100% edge to edge but maybe that's intended to have enough space for the user to perform a touch interaction with his finger at the edges.

I made a quick plugin to customize the stretch rate (in this case just setting it to 1 for my case).

Spoiler
JavaScript:
//=============================================================================
// RPG Maker MZ - Mobile
// ----------------------------------------------------------------------------
// (C)2021 aura-dev
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
// ----------------------------------------------------------------------------
// Version
// 1.0.0 2023/12/19
// ----------------------------------------------------------------------------
// [GitLab]: https://gitgud.io/aura-dev/star_knightess_aura
//=============================================================================

/*:
 * @target MZ
 * @plugindesc Mobile
 * @author aura-dev
 *
 * @help mobile.js
 *
 * Bundle plugin for functionality that only serves mobile deployments.
 *
 * @param stretchHeightRate
 * @text Stretch Height Rate
 * @type Number
 * @default 1
 * @desc Multiplier rate by which the height of the canvas is stretched by. By default set to 1 here,
 * which assumes that there are no elements in the height orientation that can overlap with the canvas.
 * If there are, adjust the rate accordingly.
 *
 */

(() => {
    const PLUGIN_ID = "mobile";
    const PARAMS = PluginManager.parameters(PLUGIN_ID);
    const STRETCH_HEIGHT_RATE = parseFloat(PARAMS["stretchHeightRate"]);
   
    // Inject custom logic to not adjust the height on mobile devices for additional element.
    // if the game runs in fullscreen, then this will otherwise just create empty space
    const _Graphics_strechHeight = Graphics._stretchHeight;
    Graphics._stretchHeight = function() {
        if (Utils.isMobileDevice()) {
            return document.documentElement.clientHeight * STRETCH_HEIGHT_RATE;
        }
       
        return _Graphics_strechHeight.call();
    };
})();
Hello everyone, for some reason my project is not working well on Android 12.
I have been using my project on several Android systems (9, 10, 11...) and it works perfectly on all of them, but on my new mobile, which is Android 12, there are graphical errors.
Does somebody knows why it could be?
This is what my project looks like on Android 12 :/
Screenshot_2023-12-27-09-13-27-513_com.fftcls.fftcls.jpg

On my other phone, with Android 11, it looked perfect...
This is what my project looks like on Android 12 :/
View attachment 289916
On my other phone, with Android 11, it looked perfect...

It didn't look as extreme for me but this fixed it on my device
Hello, I did all the steps but I'm encountering this error when I try to create the apk file.

(My game is created in RPG Maker MV.)
Screen.PNG
Although the program interface is in English, the error is in Portuguese, I don't understand why, I don't believe that this is the reason for the error.
But it would be good to analyze the XML files better first.
Although the program interface is in English, the error is in Portuguese, I don't understand why, I don't believe that this is the reason for the error.
But it would be good to analyze the XML files better first.
Hi @Dev_With_Coffee I changed my windows language and the screen now looks like this.
Capture.PNG
Strangely the error changed completely...
I believe it is an error in the installation of Android Studio, in fact it would be more in the configuration or due to the absence of one or more functioning APIs.
So the ideal would be to install Android Studio and configure everything again.

Maybe the best solution is to use an automated tool, for the first build maybe this one will help you:
Pointing out, this compiler does not support cordova, so plugins for managing local files will not work.
The Freeware version is limited in several aspects, I recommend using it for testing purposes only.
@Dev_With_Coffee I tested the website 2 apk builder but it supports 100 MB files. (free version)

ok I reinstalled and tried again and this screen appears.


Capture.PNG
See that the error has completely changed.
But error related to JAVA, how strange, are you sure you have JDK and JAVA installed on your computer? The error itself is returning a link with instructions for updating.

In any case, read this:

And maybe this:
Any tips about permissions? As how to set network permissions \ Read or write files?
hi i don´t know what is the problem, i followed the tutorial, i can´t build the apk, not even a debug one to test
1712398666596.png
Hello, I have created an account exclusively so that someone can help me with my problem, I was able to create the apk successfully, the problem is when I run the apk, I get this warning, I decrypted the .rpgmvp files and put them in the folder to detect the .png, but still not given me result, someone could help me with this?
1715994185919.png
Hello, I have created an account exclusively so that someone can help me with my problem, I was able to create the apk successfully, the problem is when I run the apk, I get this warning, I decrypted the .rpgmvp files and put them in the folder to detect the .png, but still not given me result, someone could help me with this?View attachment 305428
When you compress the game when you export, it could lead to that error due to some plugin wasn't designed to handle files that were compressed. One way to fix this is to fix that plugin or simply just export your project to mobile without compressing it.
Edit: I mean encrypt. I forgot the English word for it.
When you compress the game when you export, it could lead to that error due to some plugin wasn't designed to handle files that were compressed. One way to fix this is to fix that plugin or simply just export your project to mobile without compressing it.
Edit: I mean encrypt. I forgot the English word for it.
how do I do the second method? the one of exporting it without encrypting, I tried to export it in the 2 ways, the first one leaving the rpgmvp files intact, the second one I decrypted them to .png
what do I have to do to export it without encrypting it?

Original thread: https://forums.rpgmakerweb.com/threads/exporting-to-android-mv-android-client.84971/