XML Project file Loads on PC Perfectly, but Fails on Android apk

0 favourites
  • 3 posts
From the Asset Store
Excel2JSON
$1.20 USD
60% off
Convert multiple Excel files into JSON files and import them into construct3.
  • I created a dialogue system for my game that takes in a .xml project file.

    Steps:

    1. Use AJAX to call the project file

    2. On return, loop through the XML dialogue elements

    3. Display the dialogue elements until the end of the conversation

    On PC, this works perfectly.

    When I export to Android APK, it fails. No errors, nothing.

    I ended up downloading Android Studio, and the error I'm getting in there is "Cannot find "JoeIntro0.xml". I also found an additional line that's looking for "www/JoeIntro0.xml".

    I did a search in my android studio project for that file and it DOES exist in there in the path specified. I'm not sure what to do.

    Has anyone had issues with Android AJAX calls in Android before?

  • Where possible, use the "Request project file" action to load project files. This lets you choose the file from a dropdown list and handles cross-platform quirks automatically for you.

    If you're using "Request URL" and entering the name of a project file, you'll need to enter it all in lowercase, as (for historical reasons) Construct lowercases all filenames on export, and platforms like Android are case sensitive.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • This worked perfectly, thank you so much for helping!

    Just to confirm my solution.

    Scenario A: Lowercase file names and lowercase requests

    1. Made all my xml files lowercase

    2. Request URLs have lowercase XML names

    Scenario B: Request Project File

    1. I switched all my "Request URLs" to "Request Project Files"

    Thank you so much again!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)