Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 577 Bytes

how-to-reduce-the-size-of-apk.md

File metadata and controls

24 lines (18 loc) · 577 Bytes
  1. mv assets/models to phone's /sdcard/kantv/models manually before build, it will reduce the size of apk significantly

    zhouwg:$ cd cdeosplayer/kantv/src/main/assets/
    zhouwg:$ ls
    config.json  jfk.wav  kantv.bin  mnist-4.png  mnist-5.png  mnist-7.png  models  qnnlib  res  test.m3u
    zhouwg:$ du -h
    212M    ./models
    3.0M    ./res
    49M     ./qnnlib
    264M	.
    zhouwg:$
    
    
  2. build APK from source code by command line(default is Release build)

    . build/envsetup.sh
    lunch 1
    ./build-all.sh android