Dhruv Gohil Dhruv Gohil - 26 days ago 22
Android Question

Deployment failed, Internal error

I am working on Xamarin Android Application.When I run my application I am getting this error :

error: Unexpected install output: pkg: /data/local/tmp/com.iKart.androidapplication-Signed.apk
Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]


My Package Name is : com.iKart.androidapplication

I have already uninstall my application from device using adb uninstall,still I am getting this error.

What is the solution ? Please Help!

This is my Menifest :

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.iKart.androidapplication">
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="21" />
<application android:theme="@style/Theme.AppCompat.Light" android:label="Mono.Droid">
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id" />
<activity android:name="com.facebook.FacebookActivity" android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation" android:theme="@android:style/Theme.Translucent.NoTitleBar" android:label="@string/app_name" />
</application>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</manifest>


In Android Device Logging(Visual Studio) I am getting :

09-16 11:16:20.736 D/AndroidRuntime(23211):
09-16 11:16:20.736 D/AndroidRuntime(23211): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
09-16 11:16:20.736 D/AndroidRuntime(23211): CheckJNI is OFF
09-16 11:16:20.746 D/dalvikvm(23211): Trying to load lib libjavacore.so 0x0
09-16 11:16:20.746 D/dalvikvm(23211): Added shared lib libjavacore.so 0x0
09-16 11:16:20.756 D/dalvikvm(23211): Trying to load lib libnativehelper.so 0x0
09-16 11:16:20.756 D/dalvikvm(23211): Added shared lib libnativehelper.so 0x0
09-16 11:16:20.957 D/AndroidRuntime(23211): Calling main entry com.android.commands.pm.Pm
09-16 11:16:20.967 D/PackageItemInfo(23211): PackageItemInfo static run
09-16 11:16:20.967 D/AndroidRuntime(23211): Shutting down VM
09-16 11:16:21.157 D/dalvikvm(23211): GC_FOR_ALLOC freed 3206K, 51% free 3107K/6332K, paused 5ms, total 7ms
09-16 11:16:21.167 I/dalvikvm-heap(23211): Grow heap (frag case) to 7.284MB for 2359312-byte allocation
09-16 11:16:21.177 D/dalvikvm(23211): GC_CONCURRENT freed 9K, 38% free 5402K/8640K, paused 2ms+4ms, total 10ms
09-16 11:16:21.247 D/dalvikvm(23211): GC_FOR_ALLOC freed 466K, 35% free 5674K/8640K, paused 5ms, total 5ms
09-16 11:16:21.247 I/dalvikvm-heap(23211): Grow heap (frag case) to 7.779MB for 250016-byte allocation
09-16 11:16:21.257 D/dalvikvm(23211): GC_FOR_ALLOC freed 34K, 34% free 5917K/8888K, paused 5ms, total 5ms
09-16 11:16:21.257 I/dalvikvm-heap(23211): Grow heap (frag case) to 7.823MB for 46672-byte allocation
09-16 11:16:21.297 D/PackageItemInfo(23211): MessageLoop costTime=336
09-16 11:16:21.307 D/dalvikvm(23211): GC_CONCURRENT freed 1102K, 27% free 6590K/8936K, paused 1ms+1ms, total 6ms
09-16 11:16:21.307 D/dalvikvm(23211): Compiler shutdown in progress - discarding request
09-16 11:16:21.307 D/dalvikvm(23211): Compiler shutdown in progress - discarding request
09-16 11:16:21.307 D/dalvikvm(23211): Compiler shutdown in progress - discarding request
09-16 11:16:21.307 D/dalvikvm(23211): Compiler shutdown in progress - discarding request
09-16 11:16:21.307 D/dalvikvm(23211): Compiler shutdown in progress - discarding request

Answer

I have solved this Myself : uninstall app from device and then run again.If it still not work then open Android SDK Command Prompt
(open Xamrin-studio > Tools > open a Android SDK Command Prompt)
then write following :

D:\Android\android-sdk> adb uninstall (Applicationpackagename)

you can get application package name from Androidmenifest file which is in properties folder.
This will definitely solve the error.
Thank you

Comments