APK file

Discussion in 'Technical Discussion' started by arlidari, Dec 19, 2015.

Tags:
  1. arlidari

    arlidari Boxer

    Joined:
    Dec 19, 2015
    Messages:
    10
    Likes Received:
    1
    Hello, please tell me. How do I find out exactly which files can be deleted?
    Thus, much reduce the weight of APK file.

     
  2. wdfwi

    wdfwi Boxer

    Joined:
    Dec 10, 2015
    Messages:
    10
    Likes Received:
    2
    Whats the summary weight of sounds and your PNGs?
     
  3. arlidari

    arlidari Boxer

    Joined:
    Dec 19, 2015
    Messages:
    10
    Likes Received:
    1
    Yes, sounds and png, I understand, of course need to be reduced.
    But I'm interested in the extra, unnecessary files inside. For example, in the Lib folder.
    This three folders, and they have the same file (libplayer.so)
    armeabi
    armeabi-v7a
    x86
    They weigh 8 MB!.
    Why three of them? Can I leave just one?
     
  4. wdfwi

    wdfwi Boxer

    Joined:
    Dec 10, 2015
    Messages:
    10
    Likes Received:
    2
    I think no, you need 3 of them. But let's wait for someone who knows more :)
     
  5. jcalle

    jcalle Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,193
    Likes Received:
    541
  6. arlidari

    arlidari Boxer

    Joined:
    Dec 19, 2015
    Messages:
    10
    Likes Received:
    1
    Oh, thank you, it contains detailed information!
    What about file classes.dex
    it weighs 3 mb!
     
  7. jcalle

    jcalle Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,193
    Likes Received:
    541
    Android programs are compiled into .dex (Dalvik Executable) files

    I recommend that you check the Atlasses and sound, other files are important and essential to run the game.
     
  8. arlidari

    arlidari Boxer

    Joined:
    Dec 19, 2015
    Messages:
    10
    Likes Received:
    1
    Well clear!
    Please tell me, how can I compress libplayer.so files? You do it to yourself?
     
  9. jcalle

    jcalle Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,193
    Likes Received:
    541
    Decompress and re-compress APK is not right. (APK is not digitally signed)

    To make APK uses the Eclipse.

    Only modified files, Atlasses and audio files.
    Forget about the other files.

    "libplayer.so" is compressed to create the APK in Eclipse, as "classes.dex"
     
    Last edited: Dec 20, 2015
  10. arlidari

    arlidari Boxer

    Joined:
    Dec 19, 2015
    Messages:
    10
    Likes Received:
    1
    ok thank you.
     
  11. sysads

    sysads Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    885
    Likes Received:
    353
    No No No

    You are making a big mistake. The files generated after export are all needed and its based on what you did in your Buildbox project.
    To reduce the apk file size, you have to optimize your buildbox project (atlass, sounds, compress images etec)
     
    netkomm likes this.
  12. arlidari

    arlidari Boxer

    Joined:
    Dec 19, 2015
    Messages:
    10
    Likes Received:
    1
    Of course the images and sounds, you need to optimize before export, it is clear!
    The thing is that after the export to apk file, It may have unwanted files, deleting that you can reduce the weight and certainly not to touch the desired files.
     
  13. jcalle

    jcalle Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,193
    Likes Received:
    541
    "BuildBox" generates the code, you just have to compile with Eclipse.
    No file is unnecessary.
     
  14. sysads

    sysads Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    885
    Likes Received:
    353
    You still missing the point, Buildbox will not randomly generate files if its not needed :D
     

Share This Page