Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
5
Erster Beitrag:
vor 1 Jahr, 1 Monat
Letzter Beitrag:
vor 1 Jahr, 1 Monat
Beteiligte Autoren:
Yogi Yang, Arie, Danny Lauwers

[WM] - How to put APK on diet?

Startbeitrag von Yogi Yang am 08.07.2016 13:37

Hello,

On a mobile app that I am working on I have observed that the more I edit existing project its final compiled APK file size seems to increase drastically (from 4.5 MB to 18 MB). I don't understand as to why.

So I experimented by copying the whole project folder from its current folder to another folder.
Opened the project in WM and then changed its name, added a few controls to main window.
In compile wizard I changed the package id and APK name.

Final compiled APK size was 5 MB only!

Any ideas as to why this is happening and how can I get WM to put the finally compiled APK on a diet?

TIA

Yogi Yang

Antworten:

Hi,

Have you included the HFSQL lib into the exe, this makes it extra large when compiled. It is one of the options in the wizard for creating the APK.

Danny

von Danny Lauwers - am 08.07.2016 13:40
Hello,

No I have not included the HFSQL library as we are using the default DB SQLite.

TIA

Yogi Yang

von Yogi Yang - am 11.07.2016 06:35
Hi Yogi Yang,

WM uses a temp-map for compilation and building the apk. Maybe it uses it as a cache too, to rebuild only part that have cahnged, I'm not sure.
But removing this map helped me in situations where the build process acually failed with some uncommon reasons.
On my machine it is called
c:\Users\Arie\AppData\Local\Temp\FRMK_Android_20.0.325.0US\

Try reomving such a map and rebuild the apk.

von Arie - am 11.07.2016 08:10
Thanks Arie.

This tip solved my problem!

Regards,

Yogi Yang

von Yogi Yang - am 11.07.2016 14:16
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.