(FIXED) INSTALL_FAILED_INVALID_APK: Failed to extract native libraries, res=-2 bitrise build

Bitrise Build Issue Report template

Description of the issue

After adding Twilio library to the project generated APK size is twice bigger then when I’m building from Android Studio.
When I’m trying to install APK to device I’m getting
INSTALL_FAILED_INVALID_APK: Failed to extract native libraries, res=-2 bitrise build

Environment:

I’m using latest Bitrise plugin versions

Reproducibility

  • _Does a “Rebuild” help? NO
  • Does the issue happen sporadically, or every time? : every time
  • Does upgrading the build Step to the latest version help? : NO
  • When did the issue start? : after adding Twilio library to the project

HAVE FIXED with https://stackoverflow.com/a/55186445/3816129

Where are you trying to install? On physical device? On FTL?

On physical devices which are Samsung S10e with Android 10, Emulator with Android 7. I crashes on other devices, my team reported they cannot setup APK

Do you (or some 3rd party library) set explicitly android:extractNativeLibs in manifest?

@koral I don’t set this flag in my manifest code. Cannot say anything about com.twilio:video-android:5.2.0 library which seems is a root of this problem. Android Studio makes builds without any problems

@koral any updates regarding this fix?

Hard to say something more without a build log. BTW I’m not a Bitrise employee so I cannot access logs even if you provide links.

I’ve encountered that error when android:extractNativeLibs was set to false.
So I may only suggest to try setting/changing this value as a blind shot.

I see, thanks for your help

Hey @DmytroBatyuk, can you please enable Support Access on this project?

Enabled Support Access

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.