Issue creating android apks with Intel XDK

I've tried with different projects already and the result is the same: With some phone and tablet models in the emulator tab, I get an error telling me that the game can't find the title .m4a music or the cursor .m4a sound and I already have those files in their respective folder. If I build the apk and then install the game on my Galaxy S4, I get a similar error and I can't play it there either.
 

This is what I get with the debugger:

"Console was cleared /C:/Users/ayask/AppData/Local/Intel/XDK/xdk/components/client/emulator/index.js:17

Error: Failed to load: audio/bgm/Mystic%20Quest.m4a

    at Function.AudioManager.checkWebAudioError (http://127.0.0.1:58889/http-services/emulator-webserver/ripple/userapp/x/C/Users/ayask/Documents/NeutralLord/www/js/rpg_managers.js:1193:15)

    at Function.AudioManager.checkErrors (http://127.0.0.1:58889/http-services/emulator-webserver/ripple/userapp/x/C/Users/ayask/Documents/NeutralLord/www/js/rpg_managers.js:1180:10)

    at Scene_Title.Scene_Base.update (http://127.0.0.1:58889/http-services/emulator-webserver/ripple/userapp/x/C/Users/ayask/Documents/NeutralLord/www/js/rpg_scenes.js:43:18)

    at Scene_Title.update (http://127.0.0.1:58889/http-services/emulator-webserver/ripple/userapp/x/C/Users/ayask/Documents/NeutralLord/www/js/rpg_scenes.js:265:33)

    at Function.SceneManager.updateScene (http://127.0.0.1:58889/http-services/emulator-webserver/ripple/userapp/x/C/Users/ayask/Documents/NeutralLord/www/js/rpg_managers.js:1673:25)

    at Function.SceneManager.updateMain (http://127.0.0.1:58889/http-services/emulator-webserver/ripple/userapp/x/C/Users/ayask/Documents/NeutralLord/www/js/rpg_managers.js:1641:10)

    at Function.SceneManager.update (http://127.0.0.1:58889/http-services/emulator-webserver/ripple/userapp/x/C/Users/ayask/Documents/NeutralLord/www/js/rpg_managers.js:1576:14) rpg_managers.js:1618"

 

Am I doing something wrong? Thanks in advance.

Screenshot_78.png
As stated elsewhere, 

Android versions before 4.4.x do not support WebAudio or WebGL. You have to use a Cordova build.

The XDK "emulator"'s are just feature switches against Chromium. So if you didn't select a cordova build, then it's going to try and run the html5 build against the featureset of an Android device which none support WebAudio consistantly. The Emulators are "accelerated" and do not replicate the performance of the mobile device.

If you don't hear music/sound in the "emulator" that is actually correct behavior.

Also try to avoid putting spaces in the filenames as they are expanded to %20.
how are you loading the Game into XDK?
I was doing a standard html5 build and then replacing the www folder with the game www one... I'm gonna try the same with a cordova build.
I was doing a standard html5 build and then replacing the www folder with the game www one... I'm gonna try the same with a cordova build.
And still getting the same error...
I was doing a standard html5 build and then replacing the www folder with the game www one... I'm gonna try the same with a cordova build.
There is actually more you have to do to the index.html.

Like, literately, create a blank cordova project, copy the contents of the index.html somewhere, dump all the files from the RPG Maker mobile deployment into it, and then copy the lines needed to enable Cordova into it.

You'll end up with something like this from the Cordova stock index.html:

<!DOCTYPE html><html><!-- * Please see the included README.md file for license terms and conditions. --><head> <title>Blank Cordova Mobile App Project Template (Lite)</title> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <!-- see http://webdesign.tutsplus.com/tutorials/htmlcss-tutorials/quick-tip-dont-forget-the-viewport-meta-tag --> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> <style> /* following two viewport lines are equivalent to the meta viewport statement above, needed for Windows */ /* see http://www.quirksmode.org/blog/archives/2014/05/html5_dev_conf.html and http://dev.w3.org/csswg/css-device-adapt/ */ @-ms-viewport { width: 100vw ; zoom: 100% ; } @viewport { width: 100vw ; zoom: 100% ; } @-ms-viewport { user-zoom: fixed ; } @viewport { user-zoom: fixed ; } </style> <script src="cordova.js"></script> <!-- phantom library, needed for Cordova api calls, added during build --> <script src="js/app.js"></script> <!-- recommended location of your JavaScript code relative to other JS files --> <script src="xdk/init-dev.js"></script> <!-- normalizes device and document ready events, see README for details --></head><body> <p>Hello, Cordova!</p></body></html>and this from the RPG Mobile deployment:

<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <meta name="viewport" content="user-scalable=no"> <link rel="icon" href="icon/icon.png" type="image/png"> <link rel="apple-touch-icon" href="icon/icon.png"> <link rel="stylesheet" type="text/css" href="fonts/gamefont.css"> <title>Project1</title> </head> <body style="background-color: black"> <script type="text/javascript" src="js/libs/pixi.js"></script> <script type="text/javascript" src="js/libs/fpsmeter.js"></script> <script type="text/javascript" src="js/libs/lz-string.js"></script> <script type="text/javascript" src="js/rpg_core.js"></script> <script type="text/javascript" src="js/rpg_managers.js"></script> <script type="text/javascript" src="js/rpg_objects.js"></script> <script type="text/javascript" src="js/rpg_scenes.js"></script> <script type="text/javascript" src="js/rpg_sprites.js"></script> <script type="text/javascript" src="js/rpg_windows.js"></script> <script type="text/javascript" src="js/plugins.js"></script> <script type="text/javascript" src="js/main.js"></script> </body></html>Put the two together:

Code:
<!DOCTYPE html><html>    <head>        <meta charset="UTF-8">        <meta name="apple-mobile-web-app-capable" content="yes">        <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">    <!-- see [URL="http://webdesign.tutsplus.com/tutorials/htmlcss-tutorials/quick-tip-dont-forget-the-viewport-meta-tag"]http://webdesign.tutsplus.com/tutorials/htmlcss-tutorials/quick-tip-dont-forget-the-viewport-meta-tag[/URL] -->    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">        <link rel="icon" href="icon/icon.png" type="image/png">        <link rel="apple-touch-icon" href="icon/icon.png">        <link rel="stylesheet" type="text/css" href="fonts/gamefont.css">        <title>Project1</title>    <style>        /* following two viewport lines are equivalent to the meta viewport statement above, needed for Windows */        /* see [URL="http://www.quirksmode.org/blog/archives/2014/05/html5_dev_conf.html"]http://www.quirksmode.org/blog/archives/2014/05/html5_dev_conf.html[/URL] and [URL="http://dev.w3.org/csswg/css-device-adapt/"]http://dev.w3.org/csswg/css-device-adapt/[/URL] */        @-ms-viewport { width: 100vw ; zoom: 100% ; }  @viewport { width: 100vw ; zoom: 100% ; }        @-ms-viewport { user-zoom: fixed ; }           @viewport { user-zoom: fixed ; }    </style>    <script src="cordova.js"></script>          <!-- phantom library, needed for Cordova api calls, added during build -->    <script src="js/app.js"></script>           <!-- recommended location of your JavaScript code relative to other JS files -->    <script src="xdk/init-dev.js"></script>     <!-- normalizes device and document ready events, see README for details -->    </head>    <body style="background-color: black">        <script type="text/javascript" src="js/libs/pixi.js"></script>        <script type="text/javascript" src="js/libs/fpsmeter.js"></script>        <script type="text/javascript" src="js/libs/lz-string.js"></script>        <script type="text/javascript" src="js/rpg_core.js"></script>        <script type="text/javascript" src="js/rpg_managers.js"></script>        <script type="text/javascript" src="js/rpg_objects.js"></script>        <script type="text/javascript" src="js/rpg_scenes.js"></script>        <script type="text/javascript" src="js/rpg_sprites.js"></script>        <script type="text/javascript" src="js/rpg_windows.js"></script>        <script type="text/javascript" src="js/plugins.js"></script>        <script type="text/javascript" src="js/main.js"></script>    </body></html>
Ayaskull, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.
Can you please upload your www folder to dropbox or any host of your choice?  I'd like to try to build it.
were you ever able to figure this out?  I am having the EXACT same issue - frustrating as all hell.  Building a game for mobile was the 1 and only reason I purchased MV.
Ayaskull, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.
Sorry... Didn't notice.
There is actually more you have to do to the index.html.

Like, literately, create a blank cordova project, copy the contents of the index.html somewhere, dump all the files from the RPG Maker mobile deployment into it, and then copy the lines needed to enable Cordova into it.

You'll end up with something like this from the Cordova stock index.html:

<!DOCTYPE html><html><!-- * Please see the included README.md file for license terms and conditions. --><head> <title>Blank Cordova Mobile App Project Template (Lite)</title> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <!-- see http://webdesign.tutsplus.com/tutorials/htmlcss-tutorials/quick-tip-dont-forget-the-viewport-meta-tag --> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> <style> /* following two viewport lines are equivalent to the meta viewport statement above, needed for Windows */ /* see http://www.quirksmode.org/blog/archives/2014/05/html5_dev_conf.html and http://dev.w3.org/csswg/css-device-adapt/ */ @-ms-viewport { width: 100vw ; zoom: 100% ; } @viewport { width: 100vw ; zoom: 100% ; } @-ms-viewport { user-zoom: fixed ; } @viewport { user-zoom: fixed ; } </style> <script src="cordova.js"></script> <!-- phantom library, needed for Cordova api calls, added during build --> <script src="js/app.js"></script> <!-- recommended location of your JavaScript code relative to other JS files --> <script src="xdk/init-dev.js"></script> <!-- normalizes device and document ready events, see README for details --></head><body> <p>Hello, Cordova!</p></body></html>and this from the RPG Mobile deployment:

<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <meta name="viewport" content="user-scalable=no"> <link rel="icon" href="icon/icon.png" type="image/png"> <link rel="apple-touch-icon" href="icon/icon.png"> <link rel="stylesheet" type="text/css" href="fonts/gamefont.css"> <title>Project1</title> </head> <body style="background-color: black"> <script type="text/javascript" src="js/libs/pixi.js"></script> <script type="text/javascript" src="js/libs/fpsmeter.js"></script> <script type="text/javascript" src="js/libs/lz-string.js"></script> <script type="text/javascript" src="js/rpg_core.js"></script> <script type="text/javascript" src="js/rpg_managers.js"></script> <script type="text/javascript" src="js/rpg_objects.js"></script> <script type="text/javascript" src="js/rpg_scenes.js"></script> <script type="text/javascript" src="js/rpg_sprites.js"></script> <script type="text/javascript" src="js/rpg_windows.js"></script> <script type="text/javascript" src="js/plugins.js"></script> <script type="text/javascript" src="js/main.js"></script> </body></html>Put the two together:

<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <!-- see http://webdesign.tutsplus.com/tutorials/htmlcss-tutorials/quick-tip-dont-forget-the-viewport-meta-tag --> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> <link rel="icon" href="icon/icon.png" type="image/png"> <link rel="apple-touch-icon" href="icon/icon.png"> <link rel="stylesheet" type="text/css" href="fonts/gamefont.css"> <title>Project1</title> <style> /* following two viewport lines are equivalent to the meta viewport statement above, needed for Windows */ /* see http://www.quirksmode.org/blog/archives/2014/05/html5_dev_conf.html and http://dev.w3.org/csswg/css-device-adapt/ */ @-ms-viewport { width: 100vw ; zoom: 100% ; } @viewport { width: 100vw ; zoom: 100% ; } @-ms-viewport { user-zoom: fixed ; } @viewport { user-zoom: fixed ; } </style> <script src="cordova.js"></script> <!-- phantom library, needed for Cordova api calls, added during build --> <script src="js/app.js"></script> <!-- recommended location of your JavaScript code relative to other JS files --> <script src="xdk/init-dev.js"></script> <!-- normalizes device and document ready events, see README for details --> </head> <body style="background-color: black"> <script type="text/javascript" src="js/libs/pixi.js"></script> <script type="text/javascript" src="js/libs/fpsmeter.js"></script> <script type="text/javascript" src="js/libs/lz-string.js"></script> <script type="text/javascript" src="js/rpg_core.js"></script> <script type="text/javascript" src="js/rpg_managers.js"></script> <script type="text/javascript" src="js/rpg_objects.js"></script> <script type="text/javascript" src="js/rpg_scenes.js"></script> <script type="text/javascript" src="js/rpg_sprites.js"></script> <script type="text/javascript" src="js/rpg_windows.js"></script> <script type="text/javascript" src="js/plugins.js"></script> <script type="text/javascript" src="js/main.js"></script> </body></html>
That didn't work...
Can you please upload your www folder to dropbox or any host of your choice?  I'd like to try to build it.
I'll upload it later when I get a better internet connection.
Whatever happened to this post? I'm having this exact same problem and I'd like to know if anyone found a solution.
omega1227, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.


I suggest you start a new thread which will enable you to be specific about what is happening with your game.

Original thread: https://forums.rpgmakerweb.com/threads/issue-creating-android-apks-with-intel-xdk.49675/