Android app not installing from PlayStore in Kitkat

Our application is not installed on phones running Android KitKat. However, the same application is installed when trying to install apk directly. It also works great on other versions of Android. Error with error code -2. I tried all the parameters that are in the google support link, but did not help.

Error message

Manifest file:

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.appilyever.app" android:versionCode="1" android:versionName="1.0"> <uses-sdk android:minSdkVersion="15" android:targetSdkVersion="23"/> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <uses-permission android:name="android.permission.READ_PHONE_STATE" /> <uses-permission android:name="android.permission.GET_ACCOUNTS" /> <uses-permission android:name="android.permission.WAKE_LOCK" /> <uses-permission android:name="android.permission.VIBRATE" /> <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" /> <uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_CONTACTS" /> <uses-permission android:name="android.permission.READ_PROFILE" /> <uses-permission android:name="android.permission.WRITE_CONTACTS" /> <permission android:name="android.os.Bundle.permission.C2D_MESSAGE" android:protectionLevel="signature" /> <uses-permission android:name="com.appilyever.app.gcm.permission.C2D_MESSAGE" /> <application android:icon="@drawable/logo" android:label="@string/app_name"> <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyCMV925evT4ROgFFRBqGevExaX4xNdh8hg" /> <activity android:name=".WebViewActivity" android:screenOrientation="portrait" android:theme="@android:style/Theme.NoTitleBar"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <receiver android:name="com.appilyever.app.gcm.GcmBroadcastReceiver" android:exported="true" android:permission="com.google.android.c2dm.permission.SEND" > <intent-filter> <!-- Receives the actual messages. --> <action android:name="com.google.android.c2dm.intent.RECEIVE" /> <action android:name="com.google.android.c2dm.intent.REGISTRATION" /> <category android:name="com.appilyever.app.gcm" /> </intent-filter> </receiver> <service android:name="com.appilyever.app.gcm.GcmIntentService" android:enabled="true" /> </application> </manifest> 
+6
source share
2 answers

As it was discovered by several people in the Google Play Store -2 codec , and now I myself, the new release with minor changes will make the problem go away.

For future reference, the corresponding line in the device log is as follows:

  04-28 19: 49: 24.629: W / Finsky (19249): [11195] com.google.android.finsky.receivers.aa.a (2975): IOException while copying my.package.name (my.package.name ): java.io.IOException: Output length overrun 

After which it downloads the package file again, and then fails:

  04-28 19: 49: 45.619: A / Finsky (19249): [1] com.google.android.finsky.installer.aq.a (168): Already streaming file my.package.name682140009.apk for my.package .name
 04-28 19: 49: 45.619: A / Finsky (19249): com.google.android.flib.log.WhatATerribleException
 04-28 19: 49: 45.619: A / Finsky (19249): at com.google.android.flib.log.ae (SourceFile: 107)
 04-28 19: 49: 45.619: A / Finsky (19249): at com.google.android.finsky.utils.FinskyLog.e (SourceFile: 70)
 04-28 19: 49: 45.619: A / Finsky (19249): at com.google.android.finsky.installer.aq.a (SourceFile: 168)
 04-28 19: 49: 45.619: A / Finsky (19249): at com.google.android.finsky.receivers.z.onPostExecute (SourceFile: 3852)
+1
source

I was able to install your application successfully on my device running on 4.4.4. Try clearing the Google Play Store cache on a device that cannot be installed. Steps Settings β†’ Applications β†’ All β†’ Google Play Store β†’ Clear Cache . It is also recommended to clear the cache for Google Play services: Settings β†’ Applications β†’ All β†’ Google Play Services β†’ Clear Cache . Then try installing the application again. Also, do not disregard the magic device - sometimes restarting the device will eliminate some of these errors. Perhaps closely related to your problem:

Play Store not loading or loading applications

Error loading application on Play Store: "Cannot install App" ..

-one
source

All Articles