Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7003931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:07:59+00:00 2026-05-27T21:07:59+00:00

This is my first time trying to package my libgdx project into .apk file

  • 0

This is my first time trying to package my libgdx project into .apk file and I get surprised that the file is 2 times larger than the total size of asset files. the assets folder supposed to be 4MB but the .apk file became 8MB.
I tried to check the source of the problem by extracting the .apk file. at first I thought it was the library file that cause the problem,
but then I checked that it only take 1MB of memory. Then I found out that the image and music folder inside asset folder are copied outside and that take double the size of the total size.

here is my android directory structure in eclipse project

-src
-gen
-asset 
    ->image (30kB)
    ->musics (3MB)
    ->sfx (100kB)
-bin
-libs
-res

and here is the directory inside .apk file

-assets
    ->image (30kB)
    ->musics (3MB)
    ->sfx (100kB)
-com
-images (30kB)
-lib
-META-INF
-musics (3MB)
-res
-sfx (100kB)

is there anyone here ever had the same problem?
any solution about this?
thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:08:00+00:00Added an answer on May 27, 2026 at 9:08 pm

    Your assets get pulled in twice: once from the $ANDROID_PROJECT/assets directory, and once from the classpath of your desktop project.

    Have 3 projects, shared code, desktop, android. The shared code project contains the actual application code, the desktop project contains a source folder link to the android/assets folder as well as the desktop starter class, the android project contains the assets and the android starter class.

    You can also try to not export the assets source folder from your main project, that’s a bit more meh though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this is my first time trying to use document classes in AS3 and im
This is the first time I'm trying random numbers with C (I miss C#).
This is my first time making a hash table. I'm trying to associate strings
Disclaimer: This is my first time writing unit tests...be gentle! :) I am trying
This is the first time I'm creating an open-source project, and I've decided (based
This is my first time trying to use Web Start, and I am trying
I am somewhat new to android development, this is my first time trying to
This is my first time trying to use a custom view in XML and
So I'm trying to write a parser in ANTLR, this is my first time
I am trying to compile a gcc project on cygwin for the first time.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.