Android compile skipping directories

Monkey Targets Forums/Android/Android compile skipping directories

rIKmAN(Posted 2013) [#1]
I have a game that runs fine in HTML5 and on my iOS devices, and I have just tried compiling for Android.
The resulting apk does not work when I test in BlueStacks, although other apks from Monkey work fine

Here is the part of the log I think is the problem:
-package-resources:
     [aapt] Creating full resource package...
     [aapt]     (skipping dir '_down' due to ANDROID_AAPT_IGNORE pattern '_*')
     [aapt]     (skipping dir '_down_right' due to ANDROID_AAPT_IGNORE pattern '_*')
     [aapt]     (skipping dir '_right' due to ANDROID_AAPT_IGNORE pattern '_*')
     [aapt]     (skipping dir '_up' due to ANDROID_AAPT_IGNORE pattern '_*')
     [aapt]     (skipping dir '_up_right' due to ANDROID_AAPT_IGNORE pattern '_*')
     [aapt]     (skipping dir '_down' due to ANDROID_AAPT_IGNORE pattern '_*')
     [aapt]     (skipping dir '_down_right' due to ANDROID_AAPT_IGNORE pattern '_*')
     [aapt]     (skipping dir '_right' due to ANDROID_AAPT_IGNORE pattern '_*')
     [aapt]     (skipping dir '_up' due to ANDROID_AAPT_IGNORE pattern '_*')
     [aapt]     (skipping dir '_up_right' due to ANDROID_AAPT_IGNORE pattern '_*')


It looks like it is skipping my image directories because of the _ in the folder name, which is then causing a "Monkey Runtime Error : java.lang.NullPointerException"

Is there any way for me to change the pattern so _ are allowed?
I have looked through the compiler directives and searched on here but found nothing of relevance.

Thanks in advance.


dragon(Posted 2013) [#2]
as i know, android convert file asset to a "java-object-asset".
so that you can easy access it from code

You can not begin a filename with "_"
but you can use "_" somewhere else in name
flash have also restrictions, you can not use many symbols

so use only a..z A..Z 0..1
do not start with number


rIKmAN(Posted 2013) [#3]
I hoped there would be a quicker way, but I have amended a load of folders and paths and now it works.

Thanks for that dragon.