Can't generate Android APK signed with APK v2 scheme -


i'm trying build apk signed new v2 scheme. i'm using android studio 2.1.3 tried android 2.2 rc, gradle version have been using 2.1.3. changed compiled version api 24 , build tools 24.0.2 still can't generate apk v2.

i tried checking app using following command, adb shell pm dump | grep apksigningversion

everytim 'apksigningversion=1' , can't find magic “apk sig block 42” in apk itself.

all i'm trying generate apk signed v2 scheme. can generate old jar signed v1 apks without problem.

i want know

  1. what changes should make generate v2 singed apk's other compiler changes.
  2. is there tool convert v1 signed old apk's convert v2 scheme.

thanks in advance

taken https://developer.android.com/about/versions/nougat/android-7.0.html#apk_signature_v2:

android 7.0 introduces apk signature scheme v2, new app-signing scheme offers faster app install times , more protection against unauthorized alterations apk files. default, android studio 2.2 , android plugin gradle 2.2 sign app using both apk signature scheme v2 , traditional signing scheme, uses jar signing.

as text states, need use android studio 2.2 (currently available beta) , update android plugin gradle latest version.


Comments

Popular posts from this blog

serialization - Convert Any type in scala to Array[Byte] and back -

matplotlib support failed in PyCharm on OSX -

python - Matplotlib: TypeError: 'AxesSubplot' object is not callable -