- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I generated my iPhone build (which went through) and then generated an Android build. The first one was large (for some reason) of 109MB, which Google indicated was too much - only allows up to 50MB. I figured I would generate smaller filesizes for the icons and splash images. I did that, but after adding them to the Project pane and generated the build, it doubled the build file. I got a apk file of 209MB! I just now tried for even smaller png files, and now I can't even upload to the build server because Intel XDK states the file exceeds quota.
What is this newbie doing wrong that each time I do something the project almost doubles in size?
:(
- Tags:
- HTML5
- Intel® XDK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Looks to me like you may be including the built apps (APKs and IPAs) in your project directory so the are getting included in your builds...
You need to keep your "source directory" (usually named www) separate from the rest of your project directory. Check the Projects tab settings, you'll find an entry named "source directory" that normally points to a subdirectory inside the project directory (also noted on that Projects tab). If that directory is blank (which i suspect is the case with your project) it will cause everything that is inside your project directory to be part of your build, including a lot of unnecessary and unneeded files from being included in your built package.
You can unzip the built packages with a standard ZIP utility (they are ZIP files with different file extensions).
I recommend you do the following:
- create a www directory inside your project directory
- goto the Projects tab and select the folder icon to the right of the "Source Directory:" line
- select that "www" directory after clicking the folder icon (above)
- move all the directories and files that represent your app into the www directory (the index.html file, the relevant subdirectories, like js, css, images, etc)
- you might have to fix a few things up, but in most cases that should not be necessary, since the references in the project files are relative to that www directory
- now try building and check the size of your app
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Will you please give me more details on the issue you are experiencing? Every time you are adding the same image files, It is increasing the size of your app?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Brandon,
Basically, that is the impression that I am getting. When I generated my iPhone ipa builds, they were all under 55 mbs and when I generated my first Android apk build it was over 100mb. I generated app icons and splash images of smaller filesizes, added them, and the apk build doubled in size (over 200mb). I haven't done anything since then, and now I can't even generate a new build because the build won't upload.
I attached a screenshot of the folder with the ipa and apk files. I maybe can understand the ipa (iphone) builds getting bigger as I was adding information to the app, but why would the android builds keep doubling?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Looks to me like you may be including the built apps (APKs and IPAs) in your project directory so the are getting included in your builds...
You need to keep your "source directory" (usually named www) separate from the rest of your project directory. Check the Projects tab settings, you'll find an entry named "source directory" that normally points to a subdirectory inside the project directory (also noted on that Projects tab). If that directory is blank (which i suspect is the case with your project) it will cause everything that is inside your project directory to be part of your build, including a lot of unnecessary and unneeded files from being included in your built package.
You can unzip the built packages with a standard ZIP utility (they are ZIP files with different file extensions).
I recommend you do the following:
- create a www directory inside your project directory
- goto the Projects tab and select the folder icon to the right of the "Source Directory:" line
- select that "www" directory after clicking the folder icon (above)
- move all the directories and files that represent your app into the www directory (the index.html file, the relevant subdirectories, like js, css, images, etc)
- you might have to fix a few things up, but in most cases that should not be necessary, since the references in the project files are relative to that www directory
- now try building and check the size of your app
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Paul,
As soon as I read the first line in your reply, I knew that was the culprit. I moved all of the build files (and other psds) outside of the main folder and did a new build - it ended up being about 4mb; and I was successfully able to submit to the google play store
Thanks,
David

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page