Thanks was the suggestion. Was about to try it, but haxelib was down for a few hours at the time and I couldn’t download the required format
library, so I started toying around while I waited…
Ended up upgrading the Android build tools to the latest (side note: I found the documentation to be very confusing / lacking as to which versions of what you should have installed), which seemed to solve the missing slashes issue, though I still get the “can’t create: no such file or directory” error, only now it has proper slashes, like below:
/system/bin/sh: can't create C:\Users\Driklyn\AppData\Local\Temp/temp_8197668: No such file or directory
However, I was able to successfully run the app regardless of the error, everything is just really small.
I am using the new Samsung Galaxy S6 as my device which has a 1440x2560 resolution and although I have the window size set to 256x256 in the project.xml
file, it is rendering at 1440x2560 regardless.
I tried messing around with StageScaleMode and setting fullscreen to true, but nothing seemed to change much of anything. Some settings just appeared to have change the center position, but that’s about it. The size is still at 1440x2560, which I confirmed by drawing a 720x1280 white rectangle to the screen and saw that it filled the top-left quadrant of the screen perfectly.
Also, how do I obtain the path to the assets folder? I tried using SystemPath.applicationDirectory
, but it gives me an Invalid directory
error when trying to read the directory contents (the path it gives me is /data/app/com.example.my-app/base.apk
).
I’m wondering if perhaps my app doesn’t have read/write permissions or something?? Not sure…
For future reference, these are the packages I currently have installed:
- Android SDK Tools: 24.1.2
- Android SDK Platform-tools: 22
- Android SDK Build-tools: 22.0.1
- Android 4.1.2 (API 16 rev 5)