Error : App not installed (Android.Forms)

Bernd Quambusch 6 Reputation points
2021-03-01T22:31:23.287+00:00

I wrote a app or android with xamarin.forms. To send it to the beta tester I clicked on the android project and then on 'archive'. Then on 'deplay' 'ad-hoc'. I get a file com...apk When I try to install it on a tablet it says 'app not installed'. Whats the problem ? Grettings Bernd

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,326 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Bernd Quambusch 6 Reputation points
    2021-03-04T13:20:42.72+00:00

    It was the wrong command. Now I used :

    pm uninstall com.finderwille.einsatz.app

    Result : Success

    Now Installation worked !

    Thank you for the help. The answer that helped me was deleted unhappily.

    Leon : Thank you. Your answer was not what I want, but it helped me finding the solution and it will help me in the future.

    Greetings Bernd

    1 person found this answer helpful.

  2. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 72,251 Reputation points Microsoft Vendor
    2021-03-03T08:26:39.137+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    You can try to use adb command(click the icon that I use red square in the screenshot to open the adb command) to install your apk file. If I put the apk file to D Disk, and the apk name is com.companyname.app57.apk, I used the following command to install, it worked.

       adb install D:\com.companyname.app57.apk  
    

    xxxx

    Best Regards,

    Leon Lu


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  3. Bernd Quambusch 6 Reputation points
    2021-03-04T12:34:35.257+00:00

    Now I read a lot about the signing and android log.

    I made a log from the android device and found the sentence :

    PackageManager: Package com.finderwille.einsatz.app signatures do not match previously installed version; ignoring!

    Before I had the debug version on the tablet, but I deinstalled it. The new one is release and signed (I hope). How can I remove the old debug version ?

    Greetings Bernd

    PS .: Here is the important part of the log :

    03-04 13:20:47.130  1195  3122 D PackageManager: [VERIFY] verifyPendingInstall2(7, ALLOW), uid=5012
    03-04 13:20:47.130  1195  1622 D PackageManager: [VERIFY] PACKAGE_VERIFIED: 
    03-04 13:20:47.130  1195  1622 D PackageManager: PackageVerificationState{
    03-04 13:20:47.130  1195  1622 D PackageManager:     verifier packages=com.samsung.android.sm.devicesecurity(5012),
    03-04 13:20:47.130  1195  1622 D PackageManager:     intent=Intent { act=com.samsung.android.intent.action.PACKAGE_NEEDS_VERIFICATION2 dat=file:///data/app/vmdl7830348.tmp typ=application/vnd.android.package-archive flg=0x10000001 cmp=com.samsung.android.sm.devicesecurity/.AppVerificationReceiver (has extras) }
    03-04 13:20:47.130  1195  1622 D PackageManager:     others=7, false, false, false, false, false
    03-04 13:20:47.130  1195  1622 D PackageManager: }
    03-04 13:20:47.130  1195  1622 D PackageManager: [VERIFY] setVerifierResponse {verificationID=7, uid=5012, code=1}
    03-04 13:20:47.130  1195  1622 D PackageManager: [VERIFY] packageVerificationCompletion: completed id=7
    03-04 13:20:47.133  1195  1195 D PackageManager: [VERIFY] onReceive for RequiredVerifier id=7,mUid = 5012
    03-04 13:20:47.149  1195  1372 I ApplicationPolicy: isApplicationExternalStorageWhitelisted:com.samsung.android.lool user:0
    03-04 13:20:47.149  1195  1372 D ApplicationPolicy: isApplicationExternalStorageWhitelisted: DO is not enabled on user 0. Allowed.
    03-04 13:20:47.149  1195  1372 D ActivityManager: package  com.samsung.android.lool, user - 0 is SDcard whitelisted
    03-04 13:20:47.149  1195  1372 I ApplicationPolicy: isApplicationExternalStorageBlacklisted:com.samsung.android.lool user:0
    03-04 13:20:47.149  1195  1372 D ApplicationPolicy: isApplicationExternalStorageBlacklisted: DO is not enabled on user 0. Allowed.
    03-04 13:20:47.149  1195  1372 I ApplicationPolicy: isApplicationExternalStorageBlacklisted:com.samsung.android.lool user:0
    03-04 13:20:47.149  1195  1372 D ApplicationPolicy: isApplicationExternalStorageBlacklisted: DO is not enabled on user 0. Allowed.
    03-04 13:20:47.153  1195  1622 W PackageManager: verifying app can be installed or not
    03-04 13:20:47.153  1195  1622 D ApplicationPolicy: isApplicationInstallationEnabled
    03-04 13:20:47.153  1195  1622 D ApplicationPolicy: isApplicationInstallationEnabled :  Checking PKG WL - false
    03-04 13:20:47.153  1195  1622 D ApplicationPolicy: isApplicationInstallationEnabled :  Checking PKG BL - true
    03-04 13:20:47.153  1195  1622 D ApplicationPolicy: isApplicationInstallationEnabled :  Checking PERM BL - true
    03-04 13:20:47.153  1195  1622 D ApplicationPolicy: isApplicationInstallationEnabled :  Checking SIG BL - true
    03-04 13:20:47.153  1195  1622 D ApplicationPolicy: isApplicationInstallationEnabled :  Checking PKG WL - false
    03-04 13:20:47.153  1195  1622 D ApplicationPolicy: isApplicationInstallationEnabled :  Checking PKG BL - true
    03-04 13:20:47.153  1195  1622 D ApplicationPolicy: isApplicationInstallationEnabled :  Checking PERM BL - true
    03-04 13:20:47.153  1195  1622 D ApplicationPolicy: isApplicationInstallationEnabled :  Checking SIG BL - true
    03-04 13:20:47.154  1195  1622 D ApplicationPolicy: isApplicationInstallationEnabled :  Checking PKG WL - false
    03-04 13:20:47.154  1195  1622 D ApplicationPolicy: isApplicationInstallationEnabled :  Checking PKG BL - true
    03-04 13:20:47.154  1195  1622 D ApplicationPolicy: isApplicationInstallationEnabled :  Checking PERM BL - true
    03-04 13:20:47.154  1195  1622 D ApplicationPolicy: isApplicationInstallationEnabled :  Checking SIG BL - true
    03-04 13:20:47.154  1195  1622 D ApplicationPolicy: isApplicationInstallationEnabled :  enabled true
    03-04 13:20:47.155  1195  1622 W PackageManager: Package com.finderwille.einsatz.app signatures do not match previously installed version; ignoring!
    03-04 13:20:47.157  1195  1622 D PackageManager: result of install: -7{265970863}
    
    0 comments No comments

  4. 10520314 1 Reputation point
    2021-08-07T10:38:32.263+00:00

    There is an Android app (My APK) that shows the installation error detail (if any).
    Open My APK -> Select an APK -> Click menu -> Install (MAI)

    It does not fix the issue but it shows the reason why that APK fails to install.

    0 comments No comments