TypeError Undefined is not a function Android

● ARCHIVED · READ-ONLY
Started by RedFoxGaming 7 posts View original ↗
  1. So I finally got my project to export to Android. So far so good. However the game crashes on startup with the error on the title .If one is accessable i can find a debug console and copy the info from it but I don't know if this exists in an Android deployment or if it stores an error log somewhere .

    Either way, it works fine on windows and as a game running off a web server. So it has to be sometging to do with abdroid .

    Does anyone know what commonly cause this error?
  2. Wrong filepath preventing some files to be loaded: Windows has an override that redirect a load function to the wrong file if the correct one can not be found. On other systems in the case of a failed load because the correct file does not exist the load will fail instead of the OS guessing which other file might fit.

    Or it could be that you used some of the plugins by srd that can not be used on true web deployment as they require node.js iirc.

    Edit: for the first case, show us your full path on Windows (from drive letter to index.HTML) and we can check for that.
  3. I've moved this thread to MV Deployment. Thank you.

  4. C:\users\cpwhi\desktop\test\Fantasy Quest\www\index.html

    I should also note that there is no plugins or custom graphics used as of now. It's all base resources because this is just me trying to learn the HTML5 and Android export parts. Would like to produce for iOS too but a MacBook is kinda needed for that
  5. therpglper1 said:
    \Fantasy Quest\
    Spaces are NOT allowed in filenames or foldernames under networking rules.
    Please remove them from the project folders name and if you have them in custom resources, remove them there as well.
    You can replace them with _ for better readability, that is an allowed special sign.
  6. Huh. I wonder if that could've been part of why it was hard to get crosswalk to build the app, besides the fact it's outdated and useless on latest Android. I'll try this when I get back home from work and verify there is no spaces.

    EDIT: It does actually work as is as a web server using the built in Windows 10 thing, but I think the path for that is
    C:/inetpub/www/ or something like that. I would have to look

    Edit2: I am also going to reproduce it with Cordova to see if it has something to do with crosswalk no longer being supported.
  7. This error still happens even with removing all spaces out of file names and everything