Producing APK from RPGMV

● ARCHIVED · READ-ONLY
Started by RedFoxGaming 11 posts View original ↗
  1. Hello,

    Has anyone been able to actually produce apps for android using Crosswalk? I cannot get it to work. I even followed the help file instructions exactly with the exact version of crosswalk in the help file along with also using the most recent versions of everything and I am using JDK 8

    Both versions fail with this error:
    Crosswalk 10.39.235.16
    Code:
    c:\Users\cpwhi\Desktop\test\Fantasy Quest MV\www>python C:\crosswalk-10.39.235.16\make_apk.py --package=com.redfoxgaming.fantasyquest --manifest=manifest.json
    Checking manifest file
    Checking system requirements...ok
    
    Starting application build (x86)
     * Checking keystore for signing
       No keystore provided for signing. Using xwalk's keystore for debugging.
       Please use a valid keystore when distributing to the app market.
     * Updating project with xwalk_core_library
    Command "C:\Users\cpwhi\AppData\Local\Android\Sdk\tools\android.bat update lib-project --path C:\Users\cpwhi\AppData\Local\Temp\Fantasyquest-x_8uotck\xwalk_core_library --target android-23" exited with non-zero exit code 1

    Lastest Version of Crosswalk using the crosswalk-apk build command instead of make_apk.py does this:
    Code:
    c:\Users\cpwhi\Desktop\test\Fantasy Quest MV>crosswalk-pkg www
      Packaging c:\Users\cpwhi\Desktop\test\Fantasy Quest MV\www
      Checking host setup
      + Checking host setup for target android
      + Checking for android... ...whi\AppData\Local\Android\Sdk\tools\android.bat
      + Checking for ant... C:\apache-ant-1.10.5\bin\ant
      + Checking for java... ...s (x86)\Common Files\Oracle\Java\javapath\java.exe
    *** ERROR: Checking for lzma... null
      + Checking for ANDROID_HOME... C:\Users\cpwhi\AppData\Local\Android\
      Initializing build dir C:\Users\cpwhi\AppData\Local\Temp\kGM7A2
      + Copying app template from ...node_modules\crosswalk-app-tools\app-template
      + Loading 'android' platform backend
      + Building against API level null
      + Creating com.example.foo [done] error
     ** WARNING: File not found: C:\Users\cpwhi\AppData\Local\Temp\kGM7A2\com.example.foo\prj\android\src\com\example\foo\MainActivity.java
    *** ERROR: Command failed: C:\Users\cpwhi\AppData\Local\Android\Sdk\tools\android.bat create project -t  -p C:\Users\cpwhi\AppData\Local\Temp\kGM7A2\com.example.foo\prj\android -k com.example.foo -a MainActivity
    
      + Logfiles at C:\Users\cpwhi\AppData\Local\Temp\crosswalk-app-tools-com.example.foo
    C:\Users\cpwhi\AppData\Roaming\npm\node_modules\crosswalk-app-tools\src\crosswalk-pkg:581
                        throw new Error("Packaging failed");
                        ^
    
    Error: Packaging failed
        at callback (C:\Users\cpwhi\AppData\Roaming\npm\node_modules\crosswalk-app-tools\src\crosswalk-pkg:581:27)
        at Main.<anonymous> (C:\Users\cpwhi\AppData\Roaming\npm\node_modules\crosswalk-app-tools\src\Main.js:269:13)
        at PlatformBase.<anonymous> (C:\Users\cpwhi\AppData\Roaming\npm\node_modules\crosswalk-app-tools\android\lib\AndroidPlatform.js:486:17)
        at AndroidSDK.<anonymous> (C:\Users\cpwhi\AppData\Roaming\npm\node_modules\crosswalk-app-tools\android\lib\AndroidSDK.js:185:9)
        at ChildProcess.exithandler (child_process.js:282:5)
        at emitTwo (events.js:126:13)
        at ChildProcess.emit (events.js:214:7)
        at maybeClose (internal/child_process.js:925:16)
        at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

    Does anyone know what is going wrong here?
  2. your first error mentions your failure to load 'lzma'. I'd start with that. :)

    Its also having issues with your MainActivity file.
  3. 'Tech Support' is for when you cannot get the engine to run.

    [move]RPGMaker MV Deployment[/move]
  4. Supossodely the lzma error doesn't matter according to the instructions. But Android deployment is extremely confusing to me. No matter what I try or what versions of everything I try I can't get it to work .and I've already tried uninstalling everything and reinstalling the latest version of the Android SDK, JDK8, Ant and crosswalk and it still won't work. Only thing I haven't tried yet is using JDK10 .
  5. TBH, I'm not too sure. Its been a few years since I bothered exporting for android. As far as I can recall though, I didnt have any issues with the packaging process.

    You said you tried reinstalling them... But are you sure that the %PATH% variables have been setup properly for each respective environment? If they havent, then that would cause all kinds of errors.
  6. Actually upon further investigation, I believe crosswalk is dead with the current version of Android SDK. I tried packaging an app that just contained a simple index.html file and the manifest.json file and it flagged the same error with MainActivity.java

    I'm going to try a version of the Android Tools SDK 25.2.1 which is only slightly newer than what is referenced in the RPG Maker MV file and crosswalk-10.39.235.16 and see if this makes a difference.

    For an different question, since this is just an HTML5 project running behind an app that's launching it in a browser technically, are there android alternatives to crosswalk out there?
  7. Yes, a few. I cant think of their names, but i seen a post on the forums recently detailing the whole process. might be worth searching some stuff :)
  8. Crosswalk might not be supported anymore.
    I recommend this tutorial to create a debugging /unsigned APK for testing on Android, it worked for me.
  9. I will definitely try this. I did get crosswalk to work with an older version of the SDK on an Android 5.1 device but the game errors out on startup with a typeerror undefined is not a function
  10. I can say this thread could be closed now. I got crosswalk 10 to work with version 24 of the Android SDK and was able to produce an app. Crosswalk no longer works with the latest version of the Android SDK. I also just discovered Apache cordova so using this method is probably entirely obsolete now as Cordova seems way more supported and I may be able to produce an iOS version from it as well without a Mac.
  11. This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.