Solved Trouble building a release copy for android
-
Is this a limitation of the community edition?
-
@kgregory To me it looks like your release build isn't really a release build: release build should be much smaller than debug build. You should check the settings for the release build.
There are no limitations in the open source Qt version. There are modules only available in the commercial version, but everything else is same. -
There is I posted earlier this year similar questions on size and naming of android apk
Finally I could find the thread.The size difference between debug and release versions of an application for android is not as drastic as with linux/windows apps. At least when looking at the overall size. Probably best is to compare the part in the .apk file which is not part of Qt libs. My application had about 7 MB, but most of it are not my application. Therefore, the question is,if there are bigger Qt libs bound into it.
-
@jsulm I suspected as much. What settings should I be looking at? I'm poking through the settings but nothing is popping out to me as obvious.
-
@kgregory In QtCreator on the left side click on "Projects", select "Build" and then "Release". Check the build steps.
-
I tried playing around with these build settings a bit and I'm still not having any luck. Is there anything obvious here?
-
I have compare with my settings. I did not find a difference.
Also still as in the post already mentioned above (https://forum.qt.io/topic/80168/size-and-naming-of-android-apk) the outcome of a release linkage is still "android-build-debug.apk".
Probably a better option for discussing this topic is https://groups.google.com/forum/#!forum/android-qt
-
Found the answer: there is a guide on publishing for Android. Following those steps to build a manifest and sign the .apk solved my problem. Thanks for the replys!
-
Good to know that your problem is solved.
I would be good to share a link to the place where you found the solution. This will help others.
-
Here is the solution.