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

android
#1

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
0 Likes

#2

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

0 Likes

#3

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

0 Likes

#4

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

0 Likes

#5

@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

0 Likes

#6

@koral any updates regarding this fix?

0 Likes

#7

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.

0 Likes

#8

I see, thanks for your help

0 Likes