Targeting SDK Android Q results in Failed to finalize session : INSTALL_FAILED_INVALID_APK: Failed to extract native libraries, res=-2

后端 未结 3 1796
有刺的猬
有刺的猬 2020-12-15 06:24

Once I switch my target api to \'Q\' I cannot install the APK on Android Q Emulator. I get error:

Failed to finalize session : INSTALL_FAILED_INVALID

3条回答
  •  不知归路
    2020-12-15 07:05

    If you want android:extractNativeLibs="false", use zipalign with -p key in order to page align ELFs within ZIP:

    zipalign -p 4 app.apk app-aligned.apk
    

提交回复
热议问题