Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Error on APK file after exporting — Gideros Forum

Error on APK file after exporting

MysiaGamesMysiaGames Member
edited May 2014 in Bugs and issues
I've exported my game for Android project with "Encrypt code files" and "Encrypt asset files" option. After follow the steps to generate an APK file. This file got an error on a real device:

Gideros_Java : java.io.FileNotFoundException: assets/images/bullet.png
Gideros_Java : java.io.FileNotFoundException: assets/images/tank.png
... ( this happens for all my images inside my texture file)

For example i call the image with this command :
bmp_tank = Bitmap.new( pack:getTextureRegion("tank.png") )

Texture file is called with:
pack = TexturePack.new( "images/packImages.txt", "images/packImages.png" )

And my texture file is placed on:

images/packImages.png, packImages.txt (Gideros project)
assets/assets/images/packImages.png, packImages.txt (Android project exported)

This project was built on old version from 2012 maybe. With actual version i got this glitch. It seems something easy, any idea? .



Comments

  • ar2rsawseenar2rsawseen Maintainer
    hello @MysiaGames ;)
    But if you look in apk or exported eclipse project, does the files as assets/images/bullet.png and assets/images/tank.png are actually there?

    The only thing that comes to mind is this one for now:
    http://members.giderosmobile.com/knowledgebase.php?action=displayarticle&id=32
  • MysiaGamesMysiaGames Member
    edited May 2014
    After a change on the directories, finally I leave from this bug. On my real device i got the Gideros white screen (similar to Gideros Player) but the game doesn't has been launched.

    This is the execution Log:
    05-24 17:29:54.549: I/ActivityManager(364): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.mysiagames.z28daysbefore/com.giderosmobile.android.daysbeforeActivity u=0} from pid 768
    05-24 17:29:54.629: I/ActivityManager(364): Start proc com.mysiagames.z28daysbefore for activity com.mysiagames.z28daysbefore/com.giderosmobile.android.daysbeforeActivity: pid=7480 uid=10131 gids={1015, 3003, 1028}
    05-24 17:29:54.639: I/InputReader(364): Reconfiguring input devices.  changes=0x00000004
    05-24 17:29:54.639: I/InputReader(364): Device reconfigured: id=2, name='elan-touchscreen', surface size is now 800x1280, mode is 1
    05-24 17:29:54.689: I/ActivityManager(364): Config changed: {1.0 0mcc0mnc en_US sw600dp w961dp h528dp lrg land finger -keyb/v/h -nav/h s.14}
    05-24 17:29:54.809: D/dalvikvm(7480): Trying to load lib /data/data/com.mysiagames.z28daysbefore/lib/libzlib.so 0x426ac220
    05-24 17:29:54.819: I/ActivityManager(364): Start proc com.inporia.kaleidoscope for service com.inporia.kaleidoscope/com.urbanairship.push.PushService: pid=7496 uid=10103 gids={3003, 1015, 1028}
    05-24 17:29:54.859: D/dalvikvm(7496): WAIT_FOR_CONCURRENT_GC blocked 0ms
    05-24 17:29:54.939: D/dalvikvm(7480): Added shared lib /data/data/com.mysiagames.z28daysbefore/lib/libzlib.so 0x426ac220
    05-24 17:29:54.939: D/dalvikvm(7480): No JNI_OnLoad found in /data/data/com.mysiagames.z28daysbefore/lib/libzlib.so 0x426ac220, skipping init
    05-24 17:29:54.939: D/dalvikvm(7480): Trying to load lib /data/data/com.mysiagames.z28daysbefore/lib/libgvfs.so 0x426ac220
    05-24 17:29:54.939: D/dalvikvm(7480): Added shared lib /data/data/com.mysiagames.z28daysbefore/lib/libgvfs.so 0x426ac220
    05-24 17:29:54.939: D/dalvikvm(7480): No JNI_OnLoad found in /data/data/com.mysiagames.z28daysbefore/lib/libgvfs.so 0x426ac220, skipping init
    05-24 17:29:54.939: D/dalvikvm(7480): Trying to load lib /data/data/com.mysiagames.z28daysbefore/lib/liblua.so 0x426ac220
    05-24 17:29:54.939: D/dalvikvm(7480): Added shared lib /data/data/com.mysiagames.z28daysbefore/lib/liblua.so 0x426ac220
    05-24 17:29:54.939: D/dalvikvm(7480): No JNI_OnLoad found in /data/data/com.mysiagames.z28daysbefore/lib/liblua.so 0x426ac220, skipping init
    05-24 17:29:54.939: D/dalvikvm(7480): Trying to load lib /data/data/com.mysiagames.z28daysbefore/lib/libgideros.so 0x426ac220
    05-24 17:29:54.969: D/dalvikvm(7480): Added shared lib /data/data/com.mysiagames.z28daysbefore/lib/libgideros.so 0x426ac220
    05-24 17:29:54.969: D/dalvikvm(7480): No JNI_OnLoad found in /data/data/com.mysiagames.z28daysbefore/lib/libgideros.so 0x426ac220, skipping init
    05-24 17:29:54.969: D/dalvikvm(7480): Trying to load lib /data/data/com.mysiagames.z28daysbefore/lib/libiab.so 0x426ac220
    05-24 17:29:55.009: D/dalvikvm(7480): Added shared lib /data/data/com.mysiagames.z28daysbefore/lib/libiab.so 0x426ac220
    05-24 17:29:55.099: D/dalvikvm(646): GC_CONCURRENT freed 770K, 51% free 9506K/19335K, paused 5ms+4ms, total 55ms
    05-24 17:29:55.099: D/dalvikvm(646): WAIT_FOR_CONCURRENT_GC blocked 36ms
    05-24 17:29:55.259: D/Gideros_Java(7480): player mode
    05-24 17:29:55.259: D/Gideros_Java(7480): externalDir: /storage/sdcard0
    05-24 17:29:55.259: D/Gideros_Java(7480): internalDir: /data/data/com.mysiagames.z28daysbefore/files
    05-24 17:29:55.259: D/Gideros_Java(7480): cacheDir: /data/data/com.mysiagames.z28daysbefore/cache
    05-24 17:29:55.399: D/dalvikvm(7496): GC_CONCURRENT freed 253K, 8% free 7437K/8071K, paused 14ms+2ms, total 33ms
    05-24 17:29:55.699: D/libEGL(7480): loaded /system/lib/egl/libEGL_tegra.so
    05-24 17:29:56.359: D/libEGL(7480): loaded /system/lib/egl/libGLESv1_CM_tegra.so
    05-24 17:29:56.369: D/libEGL(7480): loaded /system/lib/egl/libGLESv2_tegra.so
    05-24 17:29:56.389: D/OpenGLRenderer(7480): Enabling debug mode 0
    05-24 17:29:56.419: I/Choreographer(7480): Skipped 66 frames!  The application may be doing too much work on its main thread.
    05-24 17:29:57.299: W/WindowManager(364): Window freeze timeout expired.
    05-24 17:29:57.299: W/WindowManager(364): Force clearing orientation change: Window{42c80810 com.mysiagames.z28daysbefore/com.giderosmobile.android.daysbeforeActivity paused=false}
    05-24 17:29:57.299: W/WindowManager(364): Force clearing orientation change: Window{42ae0ca0 com.android.systemui.ImageWallpaper paused=false}
    05-24 17:29:57.399: D/dalvikvm(7480): GC_CONCURRENT freed 348K, 9% free 7374K/8071K, paused 958ms+2ms, total 979ms
    05-24 17:29:57.399: D/dalvikvm(7480): WAIT_FOR_CONCURRENT_GC blocked 17ms
    05-24 17:29:57.399: D/dalvikvm(7480): WAIT_FOR_CONCURRENT_GC blocked 18ms
    05-24 17:29:57.429: W/IInputConnectionWrapper(768): showStatusIcon on inactive InputConnection
    05-24 17:29:57.429: I/ActivityManager(364): Displayed com.mysiagames.z28daysbefore/com.giderosmobile.android.daysbeforeActivity: +2s830ms
    05-24 17:29:58.319: D/VoldCmdListener(119): asec fspath com.inventortees-1
    05-24 17:29:58.499: D/dalvikvm(7496): GC_CONCURRENT freed 342K, 9% free 7546K/8263K, paused 55ms+2ms, total 77ms
    05-24 17:29:59.469: D/dalvikvm(364): WAIT_FOR_CONCURRENT_GC blocked 0ms
    05-24 17:29:59.489: D/dalvikvm(7281): GC_CONCURRENT freed 1203K, 9% free 18211K/19911K, paused 4ms+5ms, total 71ms
    05-24 17:29:59.569: D/dalvikvm(364): GC_EXPLICIT freed 812K, 17% free 14937K/17863K, paused 3ms+7ms, total 98ms
    05-24 17:30:00.139: D/dalvikvm(7301): GC_CONCURRENT freed 418K, 10% free 7239K/8007K, paused 12ms+2ms, total 30ms
    Any idea why the game doesn't start?
  • ar2rsawseenar2rsawseen Maintainer
    It seems everything is loaded correctly.
    This line says:
    05-24 17:29:55.259: D/Gideros_Java(7480): player mode
    That you are launching app in the player mode. So basically you created your own Gideros player and it is launching correctly.

    Did you enter IP address in the studio and pressed play to launch the game on device?
  • Yes, it Works exactly as this APK is the Gideros Player. But it's my final exported APK game. I Don't figure why my game Isn't run.
  • ar2rsawseenar2rsawseen Maintainer
    @MysiaGames apk file acts like player only in the case if assets folder is empty, as in you either have not exported assets to the project or deleted them after exporting. Simply go to Gideros Studio, open your project and select File -> Export and checn Export assets only and build an APK again and it should work ;)
  • Thanks ar2rsawseen, at the last was the TntCollision library that get me the error. I've updated to the last version and now works like a charm!
    It seems old version from 2012 doesn't work properly with 2014 Gideros.

Sign In or Register to comment.