App not installed error

Hello Forum,

I have implemented one sample app and i have archived it using adhoc methodolgy. when i m installing it in asus zenfone 2(android 5.0) it installed .

But when i m installing it in other phone (moto e3 power which have android 6.1 and micromax with android 5.0) it is giving me error of app not installed.

i am using visual studio 2015 which have xamarin.android 7.1.0.43 and xamarin 4.3.0.789 and using jdk 1.8.0_121 .

Answers

  • JohnMillerJohnMiller Xamurai USForum Administrator, Xamarin Team Xamurai

    @NiteeshKumar,

    Issues like this are best investigated by checking the "logcat" logs from the devices that are failing. After you try to install the app, collect the logcat from the devices and analyze the output for errors relating to your apk package. If you are having trouble analyzing anything in the log, please share.

    https://developer.android.com/studio/command-line/logcat.html

  • NiteeshKumarNiteeshKumar USMember

    @JohnMiller ,

    First of all thanks for response, I am unable to understand where i will write the logcat code and how

    i tried Android.Util("tag","string message"); . Which i placed in mainactivity.oncreate method but nothing happened.

    Please help

  • JohnMillerJohnMiller Xamurai USForum Administrator, Xamarin Team Xamurai

    @NiteeshKumar,

    You don't have to add any code. Instead, reproduce the issue and then use the terminal to run this command:

    adb logcat
    

    That will connect to the device and output the logs from the device into the console that you could analyze.

  • NiteeshKumarNiteeshKumar USMember

    @JohnMiller ,

    i have run it in adb command promt but not found any issue .

    In AVD Application app is running ,And in one of my phone its working but in other phone when installing its giving me error app not installed .

    I have also connect mobile using usb debugging and its deploying successfully and working fine. But when i am installing it through distribute its giving me same error.

    Is there any way that when i will install apk its store error log in my external or i can see in console through usb debugging or any other way.

    i am sharing image of application properties:-






  • DavidUrbanskyDavidUrbansky ✭✭ USMember ✭✭

    Are there any updates on this? I have the same problems as NiteeshKumar. My adb logcat looks like this around the time I press the "install" button on the phone - I don't see what error there could be do you @JohnMiller ?

    Time Device Name Type PID Tag Message
    05-23 21:47:28.119 HUAWEI GRA-L09 Info 4035 HwCustMobileSignalControllerImpl subId:0 phoneType:1 networktype:13 targetClass:3 masterLevel:4 slaveLevel:-1
    05-23 21:47:28.109 HUAWEI GRA-L09 Info 3429 SendBroadcastPermission action:android.intent.action.SIG_STR, mPermissionType:0
    05-23 21:47:28.109 HUAWEI GRA-L09 Info 3429 MQoS onSignal: mSubId=0,currDataSubID=0
    05-23 21:47:28.109 HUAWEI GRA-L09 Info 3429 MQoS received cell-signal:5
    05-23 21:47:27.950 HUAWEI GRA-L09 Info 3429 TrafficMonitor update:rxPkts:1,txPkts:0,rxBytes:36,txBytes:0
    05-23 21:47:27.950 HUAWEI GRA-L09 Info 3429 TrafficMonitor start expired. level:-1
    05-23 21:47:27.950 HUAWEI GRA-L09 Info 3429 TrafficMonitor gettimer:interval=2000
    05-23 21:47:27.667 HUAWEI GRA-L09 Error 3429 WifiConfigStore updateConfiguration freq=2412 BSSID=08:96:d7:7d:25:76 RSSI=-73 "skynet"WPA_PSK
    05-23 21:47:27.665 HUAWEI GRA-L09 Info 3429 SendBroadcastPermission action:android.net.wifi.RSSI_CHANGED, mPermissionType:0
    05-23 21:47:27.133 HUAWEI GRA-L09 Info 10396 HwSecImmHelper mSecurityInputMethodService is null
    05-23 21:47:27.116 HUAWEI GRA-L09 Info 3429 art Explicit concurrent mark sweep GC freed 14619(743KB) AllocSpace objects, 2(496KB) LOS objects, 8% free, 45MB/49MB, paused 1.973ms total 200.205ms
    05-23 21:47:26.947 HUAWEI GRA-L09 Info 3429 TrafficMonitor count:456,rx_sum:12,tx_sum:12,rxBytes:1530,during_ms:2002,rx_speed:764.2357642357643,tx_speed:2975.5244755244757,rto:1.0
    05-23 21:47:26.942 HUAWEI GRA-L09 Info 3429 TrafficMonitor during_ms:2002,period_ms:2000
    05-23 21:47:26.940 HUAWEI GRA-L09 Info 3429 TrafficMonitor expired arrive. level:-1
    05-23 21:47:26.916 HUAWEI GRA-L09 Info 3429 art Starting a blocking GC Explicit
    05-23 21:47:25.943 HUAWEI GRA-L09 Info 3429 TrafficMonitor update:rxPkts:12,txPkts:12,rxBytes:1530,txBytes:5957
    05-23 21:47:25.943 HUAWEI GRA-L09 Info 3429 TrafficMonitor gettimer:interval=2000
    05-23 21:47:25.943 HUAWEI GRA-L09 Info 3429 TrafficMonitor start expired. level:-1
    05-23 21:47:25.769 HUAWEI GRA-L09 Info 10073 Finsky [1] com.google.android.finsky.verifier.impl.br.c(103): Verification complete: id=2, package_name=com.spoonacular
    05-23 21:47:25.762 HUAWEI GRA-L09 Info 3429 SendBroadcastPermission action:android.intent.action.PACKAGE_VERIFIED, mPermissionType:0
    05-23 21:47:25.761 HUAWEI GRA-L09 Info 10073 Finsky [1] com.google.android.finsky.verifier.impl.br.c(92): Verifying id=2, result=1
    05-23 21:47:25.750 HUAWEI GRA-L09 Info 10073 Finsky [1] com.google.android.finsky.verifier.impl.be.b(6): Verification id=2 response=0
    05-23 21:47:25.687 HUAWEI GRA-L09 Info 4266 HwSystemManager NormalTraffic:update notification type = -1
    05-23 21:47:25.687 HUAWEI GRA-L09 Error 4266 HwSystemManager NotificationUtil:Month Warning Notification not create
    05-23 21:47:25.687 HUAWEI GRA-L09 Info 4266 HwSystemManager ITrafficInfo:ITrafficInfo create 301updateBytes = 226948051
    05-23 21:47:25.665 HUAWEI GRA-L09 Error 4266 HwSystemManager CommonMethodUtil:No package name to uid:-4
    05-23 21:47:25.646 HUAWEI GRA-L09 Error 4266 HwSystemManager CommonMethodUtil:No package name to uid:0
    05-23 21:47:25.607 HUAWEI GRA-L09 Info 4266 HwSystemManager NormalTraffic:updateBytes total limit = -1 warn = -1 used = 226948051
    05-23 21:47:25.587 HUAWEI GRA-L09 Info 4266 HwSystemManager ExtraTrafficSetting:result is empty
    05-23 21:47:25.578 HUAWEI GRA-L09 Info 4266 HwSystemManager NatTrafficNotifyService:delta byte = 0 no traffic delta = 0Traffic state is 301
    05-23 21:47:25.572 HUAWEI GRA-L09 Error 4266 HwSystemManager LeisureTrafficSetting:result is empty
    05-23 21:47:25.567 HUAWEI GRA-L09 Info 4266 HwSystemManager TafficState:default sub id = 0slotIndex = 0 subscriptionId = 0
    05-23 21:47:25.550 HUAWEI GRA-L09 Info 4266 HwSystemManager NormalTrafficAnalysis:alert byte = 0 last alert byte = 0
    05-23 21:47:25.550 HUAWEI GRA-L09 Error 4266 HwSystemManager NormalTrafficAnalysis:alert byte = 0, so return
    05-23 21:47:25.512 HUAWEI GRA-L09 Info 3429 SendBroadcastPermission action:com.android.server.action.NETWORK_STATS_UPDATED, mPermissionType:0
    05-23 21:47:25.386 HUAWEI GRA-L09 Info 10073 System core_booster, getBoosterConfig = false
    05-23 21:47:25.302 HUAWEI GRA-L09 Info 10073 System core_booster, getBoosterConfig = false
    05-23 21:47:25.299 HUAWEI GRA-L09 Info 10073 Finsky [428] com.google.android.finsky.services.ForegroundCoordinator.a(34): Not entering foreground
    05-23 21:47:25.298 HUAWEI GRA-L09 Info 10073 Finsky [428] com.google.android.finsky.services.ForegroundCoordinator.a(11): Task 7 requested foreground
    05-23 21:47:25.116 HUAWEI GRA-L09 Info 3429 WifiProHistoryRecordManager HomeApSwitchRate bssid:08:96:d7:7d:25:76, rate=0.3
    05-23 21:47:25.116 HUAWEI GRA-L09 Info 3429 HuaweiWifiWatchdogStateMachine rs ota tcp lr rttvb bad: false, false, false, true, false; rsth:-75
    pkt chk not bad, reset sc to 0.
    05-23 21:47:25.116 HUAWEI GRA-L09 Info 3429 WifiProHistoryRecordManager HomeApSwitchRate totalConnectHours:2534, restTimeRate=0.8305842
    05-23 21:47:25.115 HUAWEI GRA-L09 Info 3429 HuaweiWifiWatchdogStateMachine PTcp RTT:0, rtt pkt=0, tcp_rx=0, tcp_tx=0, tcp_reTran=0, rtRate=0
    05-23 21:47:25.115 HUAWEI GRA-L09 Info 3429 MQoS QOS_level:5(5),wifi-link;use signalLvl:5;RAT:4G
    05-23 21:47:25.114 HUAWEI GRA-L09 Info 3429 MQoS rtt=500,tcp_tx_pkts=3461,tcp_rx_pkts=3562
    05-23 21:47:25.113 HUAWEI GRA-L09 Info 3429 WifiProJNI ######### CMD_QUERY_PKTS ########
    05-23 21:47:25.113 HUAWEI GRA-L09 Warning 3429 WifiProJNI poll before: g_monitor_fd =159
    05-23 21:47:25.113 HUAWEI GRA-L09 Info 3429 HuaweiWifiWatchdogStateMachine POta txb txg rxg:0, 1, 0. Lr =0% Totpkt=1
    05-23 21:47:25.113 HUAWEI GRA-L09 Info 3429 QosMonitor postEventFromNative: msg=100,arg1=0,arg2=9
    05-23 21:47:25.113 HUAWEI GRA-L09 Info 3429 HuaweiWifiWatchdogStateMachine current mHighDataFlowRate = 1.0
    05-23 21:47:25.112 HUAWEI GRA-L09 Info 3429 HuaweiWifiWatchdogStateMachine spd good count:0, add sc:0.0, rate:1.0
    05-23 21:47:25.109 HUAWEI GRA-L09 Error 3429 WifiConfigStore updateConfiguration freq=2412 BSSID=08:96:d7:7d:25:76 RSSI=-74 "skynet"WPA_PSK
    05-23 21:47:25.108 HUAWEI GRA-L09 Info 3429 SendBroadcastPermission action:android.net.wifi.RSSI_CHANGED, mPermissionType:0
    05-23 21:47:24.752 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.736 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.719 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.702 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.686 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.669 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.652 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.638 HUAWEI GRA-L09 Error 3429 WifiConfigStore updateConfiguration freq=2412 BSSID=08:96:d7:7d:25:76 RSSI=-73 "skynet"WPA_PSK
    05-23 21:47:24.635 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.619 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.602 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.585 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.568 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.552 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.535 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.529 HUAWEI GRA-L09 Info 3429 ActivityManager Displayed com.android.packageinstaller/.InstallAppProgress: +142ms
    05-23 21:47:24.519 HUAWEI GRA-L09 Info 10396 HwSecImmHelper mSecurityInputMethodService is null
    05-23 21:47:24.518 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.512 HUAWEI GRA-L09 Info 2910 [Gralloc] alloc succ handle[0x55bbf1c2f0] stride[1120]
    05-23 21:47:24.505 HUAWEI GRA-L09 Info 2910 [Gralloc] alloc succ handle[0x55bbed8f20] stride[1120]
    05-23 21:47:24.505 HUAWEI GRA-L09 Info 2910 [Gralloc] alloc w[1080] h[1812] format[1] usage[2816]
    05-23 21:47:24.503 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.498 HUAWEI GRA-L09 Info 2910 [Gralloc] alloc succ handle[0x55bbc84f50] stride[1120]
    05-23 21:47:24.498 HUAWEI GRA-L09 Info 2910 [Gralloc] alloc w[1080] h[1812] format[1] usage[2816]
    05-23 21:47:24.494 HUAWEI GRA-L09 Info 3429 AccountManagerService getTypesVisibleToCaller: isPermitted? true
    05-23 21:47:24.490 HUAWEI GRA-L09 Info 2910 [Gralloc] alloc w[1080] h[1812] format[1] usage[2816]
    05-23 21:47:24.485 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.481 HUAWEI GRA-L09 Info 10073 Finsky [1] com.google.android.finsky.verifier.impl.PackageVerificationReceiver.onReceive(12): Verification requested, id = 2
    05-23 21:47:24.474 HUAWEI GRA-L09 Info 3429 SendBroadcastPermission action:android.intent.action.PACKAGE_NEEDS_VERIFICATION, mPermissionType:0
    05-23 21:47:24.468 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.457 HUAWEI GRA-L09 Info 4266 HwSystemManager HandleInstalledPackageInfoService:getAppInfoByUidAndPid getAppInfoByUidAndPid time consume:2, pkgName = com.android.packageinstaller
    05-23 21:47:24.457 HUAWEI GRA-L09 Warning 4266 HwSystemManager HandleInstalledPackageInfoService:this is PackageInstaller branch, so return directly
    05-23 21:47:24.455 HUAWEI GRA-L09 Info 4266 HwSystemManager HandleInstalledPackageInfoService:onReceive action is com.huawei.android.action.GET_INSTALLER_PACKAGE_INFO
    05-23 21:47:24.452 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.449 HUAWEI GRA-L09 Info 3429 SendBroadcastPermission action:com.huawei.android.action.GET_INSTALLER_PACKAGE_INFO, mPermissionType:0
    05-23 21:47:24.435 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.419 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.402 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.385 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.368 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.346 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.328 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.311 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.295 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.280 HUAWEI GRA-L09 Info 3429 HW_DISPLAY_EFFECT read_value: read_value is 65537
    05-23 21:47:24.267 HUAWEI GRA-L09 Info 10396 HwSecImmHelper mSecurityInputMethodService is null

  • JLDubzJLDubz Member

    Had the same issue here. Turns out the debug versions and the distributed versions of the applications will not overlap due to signatures.

    I had this error in my logs: signatures do not match the previously installed version; ignoring!

    I uninstalled the debug version, tried the install again, and it worked without fail.

    Hope this helps!

  • paulgreberpaulgreber Member

    This may be a no-brainer but it screwed me up at first too. After you create your archive, you need to distribute it, even if you only plan on using it on your own device and not the Google Play store.

    After you create your archive, click Distribute. Then click Ad-Hoc (assuming you don't want it to go onto the Google Play Store). At the next screen, press the "+" icon to create a new signing identity or select a previously created signing identify from the list, then click Save As. Select where you want your distributed app go to, enter your password for that signing identity and APK file will be signed. Now When you copy that APK to your device and run it, it won't fail to install.

  • mrbmzmrbmz Member
    edited April 2

    I also had this issue. It was quite simple, the first time I tried to run the app the Google Play Protect prompt had come up and instead of pressing Install NOW I just pressed OK which actually blocked the App from installing (couldn't work out how to unblock it). To fix this I had to actually Re-Archive and build/sign the APK as a new version and it prompted me again. Just simply copying the file bac kover or renaming the APK file wasn't enough. Probably checks the MD5?

  • pkaplishpkaplish ✭✭ Member ✭✭

    Google Play scans the device for threats before installing anything from unknown source. When you try to install for the first time, it will ask if you want to install, if you let it install it'll work fine. But second time, even if it asks or not, it won't let you install. One solution for this is, go to your play store, under Play Protect disable ' scan device for security threats' and then install it, it should work! One other reason for the error could be that app is already installed in your device, uninstall the app or change the signature and then try to install it, It should work! If these don't work, try to debug through usb, adb would show you the error and then you can work on that!

  • avanindra_dubeyavanindra_dubey Member

    Hello All,

    The correct process of creating apk is given below

    1. First change your build type to Release from debug.
    2. Clean
    3. Rebuild
    4. Right click your android project and click on archive
    5. After successful archive click on Distribute and click on Ad-hoc
    6. Create keystore file
    7. After finishing click on Open Distribution
    8. Your apk file is ready.
  • davdidavdi USMember

    @avanindra_dubey said:
    Hello All,

    The correct process of creating apk is given below

    1. First change your build type to Release from debug.
    2. Clean
    3. Rebuild
    4. Right click your android project and click on archive
    5. After successful archive click on Distribute and click on Ad-hoc
    6. Create keystore file
    7. After finishing click on Open Distribution
    8. Your apk file is ready.

    ¡Many thanks, @avanindra_dubey!
    ¡It works!

    Only add delete previous archive before distribute ;)

  • Thierry.8340Thierry.8340 ✭✭ USMember ✭✭

    Thanks for sharing and here are my 2 cents on the issue.

    I get the error again if I uninstall the app from my phone and try to install it again.

    The only way around it for me was to Archive the app again and then Distribute it again. I don't have to change the version but still a pain having to do this every time.

Sign In or Register to comment.