Forum Xamarin.Forms

Issue: InstallFailedException

I am currently having an issue with running my Xamarin.Forms app on my mobile device whether it be emulated or my physical test device.
I am on Visual Studio 2019 and it is a new app project and I have had it running before but usually after the first run it does not work again after that if it did.
The error code is as follows:

ADB0010: Mono.AndroidTools.InstallFailedException: Failure [INSTALL_FAILED_INVALID_APK: Package couldn't be installed in /data/app/com.companyname.appname-w4jR_g7Ki-eDsfg24hSJUA==: Package /data/app/com.companyname.appname-w4jR_g7Ki-eDsfg24hSJUA==/base.apk code is missing]
   at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName) in E:\A\_work\254\s\External\androidtools\Mono.AndroidTools\Internal\AdbOutputParsing.cs:line 341
   at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass95_0.<InstallPackage>b__0(Task`1 t) in E:\A\_work\254\s\External\androidtools\Mono.AndroidTools\AndroidDevice.cs:line 753
   at System.Threading.Tasks.ContinuationTaskFromResultTask`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at AndroidDeviceExtensions.<PushAndInstallPackage>d__11.MoveNext() in E:\A\_work\254\s\External\androidtools\Xamarin.AndroidTools\Devices\AndroidDeviceExtensions.cs:line 187
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at AndroidDeviceExtensions.<PushAndInstallPackage>d__11.MoveNext() in E:\A\_work\254\s\External\androidtools\Xamarin.AndroidTools\Devices\AndroidDeviceExtensions.cs:line 203
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Xamarin.AndroidTools.AndroidDeploySession.<InstallPackage>d__112.MoveNext() in E:\A\_work\254\s\External\androidtools\Xamarin.AndroidTools\Sessions\AndroidDeploySession.cs:line 414
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Xamarin.AndroidTools.AndroidDeploySession.<RunAsync>d__106.MoveNext() in E:\A\_work\254\s\External\androidtools\Xamarin.AndroidTools\Sessions\AndroidDeploySession.cs:line 217
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidTools.AndroidDeploySession.<RunLoggedAsync>d__104.MoveNext() in E:\A\_work\254\s\External\androidtools\Xamarin.AndroidTools\Sessions\AndroidDeploySession.cs:line 119

I have tried many things including:
Repairing the SDK
Uninstalling Visual Studio, Android Studio, Android SDK and then re-installing them

Posts

  • bogg8bogg8 Member
    edited January 2020

    It's very similar also to my case. We only differ in project's name. I can't deploy in my emulator (Pixel 2 - Android 9). though it successfully build the solution.

    It happened to me after I added the firebase messaging. Before, it was running fine under Android 8.1, remote push notification using firebase works well in my local and debug mode. Then I archive and deployed it to actual device, the push notification did not work which makes me decide to deploy it using Android 9 - Pie. After that upgrade, it introduce me to this kind of bug, I'm stuck for 4 days already with no hint or directions.

  • JensEngelbrechtJensEngelbrecht SEMember ✭✭

    I am having similar problems, any updates ?

  • MathewPotrykusMathewPotrykus USMember ✭✭

    Unfortunately no. I still have this issue to date and I'm even on a new laptop that has a relatively fresh install of Visual Studio 2019 and the Xamarin components. Whether it is a new project or an existing one run on a physical device linked by USB or the built-in emulator, I still get this issue.
    It seems that if I do a signed release build for my existing projects then they can still be installed and will work but this makes debugging any issues and testing out new code very difficult.

    This also seems to be since targeting Android 9 however switching back to say Android 8.1 still does not resolve the issue.
    It's like it tries and fails to install the apk but leaves behind a ghost of some files that the phone cannot remove and then the installer cannot install over.

  • MathewPotrykusMathewPotrykus USMember ✭✭
    edited January 2020

    I have had a strange development. I can now get the app to deploy onto my device but only when running in a Release configuration. This happens to remove my ability for the xaml renderer preview to work but I can run it on the device. To see my preview again I have to switch back to Debug mode and Clean the solution. If I try running in Debug configuration then I still get the error.
    Also bizarrely, if I run targeting iPhoneSimulator instead of AnyCPU then it gives me Debug preview but runs in Release.

    Edit:
    The only noticeable changes I remember making was switching my targeted JDK to Microsoft's one that comes with Visual Studio's Xamarin.
    I played around with the Android project settings and matched the Debug Options to the Release Options but I don't think that made a difference.
    I have also tried including x86 and x86_64 for supported architectures but that seems to do more harm than good so I have taken it back out.

  • JensEngelbrechtJensEngelbrecht SEMember ✭✭
    edited February 2020

    I tried to switch to Preview channel:
    But didn't work with either debug or release, ill try to switch back to stable and try with release mode

    `

    === Visual Studio Community 2019 for Mac (Preview) ===

    Version 8.5 Preview (8.5 build 1765)
    Installation UUID: 88ed44bf-c00b-4921-92b4-29bbf11175f1
    GTK+ 2.24.23 (Raleigh theme)
    Xamarin.Mac 5.16.1.24 (d16-3 / 08809f5b)

    Package version: 608000099
    

    === Mono Framework MDK ===

    Runtime:
    Mono 6.8.0.99 (2019-10/1182f8cbf5b) (64-bit)
    Package version: 608000099

    === Roslyn (Language Service) ===

    3.4.0-beta4-19568-04+82f2e2541478e239dc4b04f231e90dc2b3dcb422

    === NuGet ===

    Version: 5.4.0.6315
    === Xamarin.Android ===

    Version: 10.2.0.84 (Visual Studio Community)
    Commit: xamarin-android/d16-5/ac3f71f
    Android SDK: /Users/jensengelbrecht/Library/Developer/Xamarin/android-sdk-macosx
    Supported Android versions:
    5.0 (API level 21)
    5.1 (API level 22)
    6.0 (API level 23)
    7.1 (API level 25)
    8.0 (API level 26)
    8.1 (API level 27)

    SDK Tools Version: 26.1.1
    SDK Platform Tools Version: 29.0.5
    SDK Build Tools Version: 29.0.2

    Build Information:
    Mono: df42020
    Java.Interop: xamarin/java.interop/[email protected]
    ProGuard: xamarin/proguard/[email protected]
    SQLite: xamarin/sqlite/[email protected]
    Xamarin.Android Tools: xamarin/xamarin-android-tools/[email protected]

    === Microsoft Mobile OpenJDK ===

    Java SDK: /Users/jensengelbrecht/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25
    1.8.0-25
    Android Designer EPL code available here:
    https://github.com/xamarin/AndroidDesigner.EPL

    === Android SDK Manager ===

    Version: 16.5.0.38
    Hash: 5adcbfa
    Branch: remotes/origin/d16-5
    Build date: 2020-01-23 22:00:54 UTC

    === Android Device Manager ===

    Version: 16.5.0.65
    Hash: 327dcef
    Branch: remotes/origin/d16-5
    Build date: 2020-01-23 22:01:14 UTC

    === Xamarin Designer ===

    Version: 16.5.0.407
    Hash: b2fe237b2
    Branch: remotes/origin/d16-5
    Build date: 2020-01-17 15:38:58 UTC

    === Xamarin Inspector ===

    Version: 1.4.3
    Hash: db27525
    Branch: 1.4-release
    Build date: Mon, 09 Jul 2018 21:20:18 GMT
    Client compatibility: 1

    === Apple Developer Tools ===

    Xcode 11.3.1 (15715)
    Build 11C504

    === Xamarin.Mac ===

    Version: 6.14.1.23 (Visual Studio Community)
    Hash: b85e70fa
    Branch: d16-5
    Build date: 2020-01-23 13:02:56-0500

    === Xamarin.iOS ===

    Version: 13.14.1.23 (Visual Studio Community)
    Hash: b85e70fa
    Branch: d16-5
    Build date: 2020-01-23 13:02:57-0500

    === Build Information ===

    Release ID: 805001765
    Git revision: 82d06fb0cf3913595daba135e73f433e7228aeb9
    Build date: 2020-01-27 14:17:41+00
    Build branch: master
    Xamarin extensions: 23791586e0d1ad7559ba0e7cf0708277f963b461

    === Operating System ===

    Mac OS X 10.15.2
    Darwin 19.2.0 Darwin Kernel Version 19.2.0
    Sat Nov 9 03:47:04 PST 2019
    root:xnu-6153.61.1~20/RELEASE_X86_64 x86_64

    === Enabled user installed extensions ===

    Stack Overflow Search 0.7.1
    NuGet Package Management Extensions 0.21
    NuGet Package Explorer 0.4

    `

    Get this from Visual Studio

    /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(612,2): error ADB1000: Deployment failed /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(612,2): error ADB1000: Mono.AndroidTools.InstallFailedException: Failure [INSTALL_FAILED_INVALID_APK: Package couldn't be installed in /data/app/com.mobisma.Truckify-Lx9K_zEZR4hvThOqQ_bIow==: Package /data/app/com.mobisma.Truckify-Lx9K_zEZR4hvThOqQ_bIow==/base.apk code is missing] /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(612,2): error ADB1000: at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess (System.String output, System.String packageName) [0x00152] in /Users/runner/runners/2.164.1/work/1/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Mono.AndroidTools/Internal/AdbOutputParsing.cs:341 /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(612,2): error ADB1000: at Mono.AndroidTools.AndroidDevice+<>c__DisplayClass95_0.<InstallPackage>b__0 (System.Threading.Tasks.Task1[TResult] t) [0x00016] in /Users/runner/runners/2.164.1/work/1/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Mono.AndroidTools/AndroidDevice.cs:753
    /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(612,2): error ADB1000: at System.Threading.Tasks.ContinuationTaskFromResultTask1[TAntecedentResult].InnerInvoke () [0x00024] in <5af71a3f034041b7a582d7d0de9be721>:0 /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(612,2): error ADB1000: at System.Threading.Tasks.Task.Execute () [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-10/external/bockbuild/builds/mono-x64/external/corert/src/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:2319 /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(612,2): error ADB1000: --- End of stack trace from previous location where exception was thrown --- /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(612,2): error ADB1000: /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(612,2): error ADB1000: at AndroidDeviceExtensions.PushAndInstallPackage (Mono.AndroidTools.AndroidDevice device, System.String apkFile, System.String packageName, System.Boolean reinstall, Mono.AndroidTools.Adb.AdbProgressReporter notifyProgress, System.Threading.CancellationToken token) [0x00189] in /Users/runner/runners/2.164.1/work/1/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Xamarin.AndroidTools/Devices/AndroidDeviceExtensions.cs:187 /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(612,2): error ADB1000: at AndroidDeviceExtensions.PushAndInstallPackage (Mono.AndroidTools.AndroidDevice device, System.String apkFile, System.String packageName, System.Boolean reinstall, Mono.AndroidTools.Adb.AdbProgressReporter notifyProgress, System.Threading.CancellationToken token) [0x003df] in /Users/runner/runners/2.164.1/work/1/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Xamarin.AndroidTools/Devices/AndroidDeviceExtensions.cs:203 /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(612,2): error ADB1000: at Xamarin.AndroidTools.AndroidDeploySession.InstallPackage () [0x002ea] in /Users/runner/runners/2.164.1/work/1/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Xamarin.AndroidTools/Sessions/AndroidDeploySession.cs:414 /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(612,2): error ADB1000: at Xamarin.AndroidTools.AndroidDeploySession.RunAsync (System.Threading.CancellationToken token) [0x003ae] in /Users/runner/runners/2.164.1/work/1/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Xamarin.AndroidTools/Sessions/AndroidDeploySession.cs:217 /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(612,2): error ADB1000: at Xamarin.AndroidTools.AndroidDeploySession.RunLoggedAsync (System.Threading.CancellationToken token) [0x0002f] in /Users/runner/runners/2.164.1/work/1/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Xamarin.AndroidTools/Sessions/AndroidDeploySession.cs:119 /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(612,2): error ADB0010: Mono.AndroidTools.InstallFailedException: Failure [INSTALL_FAILED_INVALID_APK: Package couldn't be installed in /data/app/com.mobisma.Truckify-Lx9K_zEZR4hvThOqQ_bIow==: Package /data/app/com.mobisma.Truckify-Lx9K_zEZR4hvThOqQ_bIow==/base.apk code is missing] /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(612,2): error ADB0010: at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess (System.String output, System.String packageName) [0x00152] in /Users/runner/runners/2.164.1/work/1/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Mono.AndroidTools/Internal/AdbOutputParsing.cs:341 /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(612,2): error ADB0010: at Mono.AndroidTools.AndroidDevice+<>c__DisplayClass95_0.<InstallPackage>b__0 (System.Threading.Tasks.Task1[TResult] t) [0x00016] in /Users/runner/runners/2.164.1/work/1/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Mono.AndroidTools/AndroidDevice.cs:753
    /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(612,2): error ADB0010: at System.Threading.Tasks.ContinuationTaskFromResultTask1[TAntecedentResult].InnerInvoke () [0x00024] in <5af71a3f034041b7a582d7d0de9be721>:0 /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(612,2): error ADB0010: at System.Threading.Tasks.Task.Execute () [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-10/external/bockbuild/builds/mono-x64/external/corert/src/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:2319 /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(612,2): error ADB0010: --- End of stack trace from previous location where exception was thrown --- /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(612,2): error ADB0010: /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(612,2): error ADB0010: at AndroidDeviceExtensions.PushAndInstallPackage (Mono.AndroidTools.AndroidDevice device, System.String apkFile, System.String packageName, System.Boolean reinstall, Mono.AndroidTools.Adb.AdbProgressReporter notifyProgress, System.Threading.CancellationToken token) [0x00189] in /Users/runner/runners/2.164.1/work/1/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Xamarin.AndroidTools/Devices/AndroidDeviceExtensions.cs:187 /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(612,2): error ADB0010: at AndroidDeviceExtensions.PushAndInstallPackage (Mono.AndroidTools.AndroidDevice device, System.String apkFile, System.String packageName, System.Boolean reinstall, Mono.AndroidTools.Adb.AdbProgressReporter notifyProgress, System.Threading.CancellationToken token) [0x003df] in /Users/runner/runners/2.164.1/work/1/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Xamarin.AndroidTools/Devices/AndroidDeviceExtensions.cs:203 /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(612,2): error ADB0010: at Xamarin.AndroidTools.AndroidDeploySession.InstallPackage () [0x002ea] in /Users/runner/runners/2.164.1/work/1/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Xamarin.AndroidTools/Sessions/AndroidDeploySession.cs:414 /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(612,2): error ADB0010: at Xamarin.AndroidTools.AndroidDeploySession.RunAsync (System.Threading.CancellationToken token) [0x003ae] in /Users/runner/runners/2.164.1/work/1/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Xamarin.AndroidTools/Sessions/AndroidDeploySession.cs:217 /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(612,2): error ADB0010: at Xamarin.AndroidTools.AndroidDeploySession.RunLoggedAsync (System.Threading.CancellationToken token) [0x0002f] in /Users/runner/runners/2.164.1/work/1/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Xamarin.AndroidTools/Sessions/AndroidDeploySession.cs:119 0 Warning(s) 2 Error(s)

    And this from log:

    2-06 14:41:01.854: I/Finsky(13591): [1133] zye.b(3): Verify: Verification package=com.mobisma.Truckify, id=3 response=0 02-06 14:41:01.881: I/Finsky(13591): [1139] aadp.c(3): PSIC verification started with installer uid: 2000 package name: null, originating uid: -1 02-06 14:41:01.886: I/Finsky(13591): [2] zzh.c(15): Verifying id=3, result=1 02-06 14:41:01.887: D/PackageManager(3353): [VERIFY] verifyPendingInstall(3, ALLOW), uid=10034 02-06 14:41:01.887: D/PackageManager(3353): [VERIFY] PACKAGE_VERIFIED: 02-06 14:41:01.887: D/PackageManager(3353): PackageVerificationState{ 02-06 14:41:01.887: D/PackageManager(3353): verifier packages=com.android.vending(10034),com.samsung.android.sm.devicesecurity(5012), 02-06 14:41:01.887: D/PackageManager(3353): intent=Intent { act=android.intent.action.PACKAGE_NEEDS_VERIFICATION dat=file:///data/app/vmdl1751637521.tmp typ=application/vnd.android.package-archive flg=0x10000001 cmp=com.android.vending/com.google.android.finsky.verifier.impl.PackageVerificationReceiver (has extras) } 02-06 14:41:01.887: D/PackageManager(3353): others=3, false, false, false, false, false 02-06 14:41:01.887: D/PackageManager(3353): } 02-06 14:41:01.888: D/PackageManager(3353): [VERIFY] setVerifierResponse {verificationID=3, uid=10034, code=1} 02-06 14:41:01.888: D/PackageManager(3353): [VERIFY] sendOrderedBroadcastToPendingVerifier: 02-06 14:41:01.888: D/PackageManager(3353): PackageVerificationState{ 02-06 14:41:01.888: D/PackageManager(3353): verifier packages=com.samsung.android.sm.devicesecurity(5012), 02-06 14:41:01.888: D/PackageManager(3353): intent=Intent { act=android.intent.action.PACKAGE_NEEDS_VERIFICATION dat=file:///data/app/vmdl1751637521.tmp typ=application/vnd.android.package-archive flg=0x10000001 cmp=com.android.vending/com.google.android.finsky.verifier.impl.PackageVerificationReceiver (has extras) } 02-06 14:41:01.888: D/PackageManager(3353): others=3, false, false, false, false, false 02-06 14:41:01.888: D/PackageManager(3353): } 02-06 14:41:01.906: D/PackageManager(3353): [VERIFY] verifyPendingInstall2(3, ALLOW), uid=5012 02-06 14:41:01.907: D/PackageManager(3353): [VERIFY] onReceive for RequiredVerifier id=3, mUid = 5012 02-06 14:41:01.908: D/PackageManager(3353): [VERIFY] sendMessageDelayed(CHECK_PENDING_VERIFICATION, 3, 17000) 02-06 14:41:01.909: D/PackageManager(3353): [VERIFY] PACKAGE_VERIFIED: 02-06 14:41:01.909: D/PackageManager(3353): PackageVerificationState{ 02-06 14:41:01.909: D/PackageManager(3353): verifier packages=com.samsung.android.sm.devicesecurity(5012), 02-06 14:41:01.909: D/PackageManager(3353): intent=Intent { act=com.samsung.android.intent.action.PACKAGE_NEEDS_VERIFICATION2 dat=file:///data/app/vmdl1751637521.tmp typ=application/vnd.android.package-archive flg=0x10000001 cmp=com.samsung.android.sm.devicesecurity/.AppVerificationReceiver (has extras) } 02-06 14:41:01.909: D/PackageManager(3353): others=3, false, false, false, false, false 02-06 14:41:01.909: D/PackageManager(3353): } 02-06 14:41:01.909: D/PackageManager(3353): [VERIFY] setVerifierResponse {verificationID=3, uid=5012, code=1} 02-06 14:41:01.909: D/PackageManager(3353): [VERIFY] packageVerificationCompletion: completed id=3 02-06 14:41:01.940: W/PackageManager(3353): verifying app can be installed or not 02-06 14:41:01.940: D/ApplicationPolicy(3353): isApplicationInstallationEnabled 02-06 14:41:01.940: D/ApplicationPolicy(3353): isApplicationInstallationEnabled : Checking PKG WL - false 02-06 14:41:01.940: D/ApplicationPolicy(3353): isApplicationInstallationEnabled : Checking PKG BL - true 02-06 14:41:01.941: D/ApplicationPolicy(3353): isApplicationInstallationEnabled : Checking PERM BL - true 02-06 14:41:01.941: D/ApplicationPolicy(3353): isApplicationInstallationEnabled : Checking SIG BL - true 02-06 14:41:01.941: D/ApplicationPolicy(3353): isApplicationInstallationEnabled : Checking PKG WL - false 02-06 14:41:01.941: D/ApplicationPolicy(3353): isApplicationInstallationEnabled : Checking PKG BL - true 02-06 14:41:01.941: D/ApplicationPolicy(3353): isApplicationInstallationEnabled : Checking PERM BL - true 02-06 14:41:01.941: D/ApplicationPolicy(3353): isApplicationInstallationEnabled : Checking SIG BL - true 02-06 14:41:01.941: D/ApplicationPolicy(3353): isApplicationInstallationEnabled : enabled true 02-06 14:41:01.941: D/RestrictionPolicy(3353): isNewAdminInstallationEnabledInternal : false 02-06 14:41:01.944: I/AASAInstall(3353): ship device 02-06 14:41:01.984: I/SKBD(5346): alm isTosAccept false 02-06 14:41:02.059: W/SELinux(3353): SELinux: set fc_digest(/data/app/com.mobisma.Truckify-Lx9K_zEZR4hvThOqQ_bIow==) 02-06 14:41:02.062: W/PackageManager(3353): Package couldn't be installed in /data/app/com.mobisma.Truckify-Lx9K_zEZR4hvThOqQ_bIow== 02-06 14:41:02.062: W/PackageManager(3353): com.android.server.pm.PackageManagerException: Package /data/app/com.mobisma.Truckify-Lx9K_zEZR4hvThOqQ_bIow==/base.apk code is missing 02-06 14:41:02.062: W/PackageManager(3353): at com.android.server.pm.PackageManagerService.assertCodePolicy(PackageManagerService.java:12704) 02-06 14:41:02.062: W/PackageManager(3353): at com.android.server.pm.PackageManagerService.assertPackageIsValid(PackageManagerService.java:12858) 02-06 14:41:02.062: W/PackageManager(3353): at com.android.server.pm.PackageManagerService.scanPackageNewLI(PackageManagerService.java:11999) 02-06 14:41:02.062: W/PackageManager(3353): at com.android.server.pm.PackageManagerService.scanPackageTracedLI(PackageManagerService.java:11789) 02-06 14:41:02.062: W/PackageManager(3353): at com.android.server.pm.PackageManagerService.installNewPackageLIF(PackageManagerService.java:19423) 02-06 14:41:02.062: W/PackageManager(3353): at com.android.server.pm.PackageManagerService.installPackageLI(PackageManagerService.java:20906) 02-06 14:41:02.062: W/PackageManager(3353): at com.android.server.pm.PackageManagerService.installPackageTracedLI(PackageManagerService.java:20201) 02-06 14:41:02.062: W/PackageManager(3353): at com.android.server.pm.PackageManagerService.access$4100(PackageManagerService.java:557) 02-06 14:41:02.062: W/PackageManager(3353): at com.android.server.pm.PackageManagerService$9.run(PackageManagerService.java:17274) 02-06 14:41:02.062: W/PackageManager(3353): at android.os.Handler.handleCallback(Handler.java:873) 02-06 14:41:02.062: W/PackageManager(3353): at android.os.Handler.dispatchMessage(Handler.java:99) 02-06 14:41:02.062: W/PackageManager(3353): at android.os.Looper.loop(Looper.java:214) 02-06 14:41:02.062: W/PackageManager(3353): at android.os.HandlerThread.run(HandlerThread.java:65) 02-06 14:41:02.062: W/PackageManager(3353): at com.android.server.ServiceThread.run(ServiceThread.java:44) 02-06 14:41:02.062: E/ArtManagerService(3353): Invalid app id: -1

  • RogerSchmidlinRogerSchmidlin CHUniversity ✭✭✭

    I am hitting the same issue. Did you guys solve it in the meantime?

  • Greg_ruGreg_ru Member ✭✭
    edited April 2020

    Also impacted by this problem...
    Xamarin random build errors starts to be really annoying, i mean it's 2020 time to release something stable :#

  • Greg_ruGreg_ru Member ✭✭

    Solved it by disabling Multidex, and settings Dextool to D8 instead of dx.

  • GROSSRYAN2GROSSRYAN2 Member ✭✭

    Thanks Greg_ru…

  • Layah_X1Layah_X1 Member

    Hello, I have a problem when I'm launching my application on my divise. I have updated VS 2017 which I use to work but I still have the following error:
    Severity Code Description Project File Line Deletion status
    Error ADB0010: Failure [INSTALL_FAILED_INVALID_APK: Scanning Failed .: Package /data/app/com.gs2e.releveindex.SmartReleve-XfNaqWU_6F9LI4V54AH50A==/base.apk code is missing]
    to Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess (String output, String packageName)
    to Mono.AndroidTools.AndroidDevice. <> c__DisplayClass95_0. b__0 (Task1 t) at System.Threading.Tasks.ContinuationTaskFromResultTask1.InnerInvoke ()
    at System.Threading.Tasks.Task.Execute () 0
    please thank you for helping me to solve the problem.

Sign In or Register to comment.