locked
How to fix project building successfully but APKs/release will not work on same device? RRS feed

  • Question

  • User372578 posted

    I am trying to build an APK for distribution. I have a project which I have been testing across 5 emulators ranging from Android 6.0 to Android 8.1 which all work successfully while debugging and running the application. When I go to create an APK and install that APK on any of those devices, it will show an installing progress bar then eventually either show an app not installed screen or app not compatible screen. When I try installing through release in Visual Studios, it fails and says "There were deployment errors. Continue?" but shows no errors regardless of whether I click "Yes" or "No".

    I follows the directions at microsoft/xamarin's "Preparing an Application for Release" (I can't post link because my account is new) for creating the APK.

    Project Android versions: Minimum Android version: Android 4.4 (API Level 19 - Kit Kat) Target Android version: Android 8.1 (API Level 27 - Oreo)

    Testing I've tried after looking online: Changing Linking in Linker properties to each setting Enabling/Disabling ProGaurd Verifying Internet is selected in Android Manifest

    Any help is much appreciated! Thank you!

    Monday, August 20, 2018 5:39 PM

Answers

  • User372478 posted

    https://stackoverflow.com/questions/24572052/install-failed-no-matching-abis-when-install-apk

    please check this one

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, August 23, 2018 1:18 PM
  • User372578 posted

    This solution worked for me: https://stackoverflow.com/a/39362426

    I found it in the link @PatelHarshP send: https://stackoverflow.com/questions/24572052/install-failed-no-matching-abis-when-install-apk

    Thank you for taking the time to help, @PatelHarshP ! I greatly appreciate it!

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, August 23, 2018 1:50 PM

All replies

  • User372478 posted

    @Suulomades please check in deploying to device and application output in release mode hopefully you can find error

    Wednesday, August 22, 2018 4:39 AM
  • User372578 posted

    @PatelHarshP ,

    This is the output in release (aside from the loading packages, warnings, etc):

    2>C:\Program Files\Java\jdk1.8.0_172\\bin\java.exe -jar "C:\Program Files (x86)\Android\android-sdk\build-tools\25.0.3\lib\apksigner.jar" sign --ks "C:\Users\tvaniseghem\AppData\Local\Xamarin\Mono for Android\debug.keystore" --ks-pass pass:android --ks-key-alias androiddebugkey --key-pass pass:android --min-sdk-version 19 --max-sdk-version 27  D:\Ccp.Dev\Ccp.Docs\Dev\AppUtility\NotificationAppv2\NotificationAppv2\NotificationAppv2.Android\bin\Release
    2>otificationApp.Droid.RC.Prod-Signed.apk 
    2>Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]
    2>   at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName)
    2>   at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass94_0.<InstallPackage>b__0(Task`1 t)
    2>   at System.Threading.Tasks.ContinuationTaskFromResultTask`1.InnerInvoke()
    2>   at System.Threading.Tasks.Task.Execute()
    2>Done building project "NotificationAppv2.Android.csproj".
    2>Build succeeded.
    2>Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]
    2>   at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName)
    2>   at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass94_0.<InstallPackage>b__0(Task`1 t)
    2>   at System.Threading.Tasks.ContinuationTaskFromResultTask`1.InnerInvoke()
    2>   at System.Threading.Tasks.Task.Execute()
    2>
    2>Deploy failed on api_7_0
    ========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
    ========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
    
    Wednesday, August 22, 2018 1:00 PM
  • User372478 posted

    @ Suulomades 2>Failure [INSTALLFAILEDNOMATCHINGABIS: Failed to extract native libraries, res=-113]

    enable Generate one package option

    Wednesday, August 22, 2018 1:27 PM
  • User372578 posted

    @PatelHarshP ,

    I went to the Android Properties -> Android Options -> Enabled "Generate one package (.apk) per selected ABI" and I am receiving the same error.

    Wednesday, August 22, 2018 1:35 PM
  • User367149 posted

    I am experiencing the same issue since updating today (version: 9.0.0.18)

    Wednesday, August 22, 2018 2:00 PM
  • User367149 posted

    Is there any solution to this? Seems to be a problem with the signing tool since updating.

    Thursday, August 23, 2018 12:09 PM
  • User372478 posted

    https://stackoverflow.com/questions/24572052/install-failed-no-matching-abis-when-install-apk

    please check this one

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, August 23, 2018 1:18 PM
  • User372578 posted

    @PatelHarshP I read the stackoverflow link - thank you for that. But why does it install correctly when running it on the emulator in debug but not when running it on the same emulator in release?

    Thursday, August 23, 2018 1:23 PM
  • User372578 posted

    This solution worked for me: https://stackoverflow.com/a/39362426

    I found it in the link @PatelHarshP send: https://stackoverflow.com/questions/24572052/install-failed-no-matching-abis-when-install-apk

    Thank you for taking the time to help, @PatelHarshP ! I greatly appreciate it!

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, August 23, 2018 1:50 PM