All APKs built in Xamarin give me "Describe error there is a problem parsing the package" on install

LuisRodriguez.1627LuisRodriguez.1627 USMember
edited June 2015 in Xamarin.Android

Hi everyone,

I was wondering if anybody knew why I'm having the following issue:

https://www.dropbox.com/home?preview=Screenshot_2015-06-30-11-26-37.png

Any application .apk I try to install on any phone (Asus Zenfone and Samsung Galaxy 6 in tests) that was created in Xamarin Studio will give me the error shown on the image above. I even made a new project and the error still appears to happening. I repaired Xamarin Studio and Xamarin and I'm still getting the errors.

I can debug(install) the application on both debug/release env directly to the phone and it works there, but the .apk is having an error.

Edit:

Here's my working environment information to see if it is of any help:

Xamarin Studio v 5.9.3 (build 1)
Windows 8.1 Pro x64
Projects Target Api: Android 4.4 (API 19)

I have tried different API levels and no success.

Galaxy 6 Android v5.0.2 (API 21)

Best Answer

Answers

  • Hi guys,

    I'm still unable to use any APK created from my Xamarin.

    My last resort would be a machine windows re install and xamarin re install.

    Anyone have anything?

  • CheesebaronCheesebaron DKInsider, University mod

    What does your manifest look like? Are you using the Signed APK?

  • LuisRodriguez.1627LuisRodriguez.1627 USMember
    edited June 2015

    Thanks for the reply @Cheesebaron
    <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.companyname.appbane"> <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="19" /> <application android:label="appName" android:theme="@android:style/Theme.Holo" android:icon="@drawable/icon"></application> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.READ_PHONE_STATE" /> <uses-permission android:name="android.permission.INSTALL_PACKAGES" /> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> <uses-permission android:name="android.permission.BLUETOOTH_PRIVILEGED" /> <uses-permission android:name="android.permission.BLUETOOTH" /> </manifest>

    This is pretty much my AndroidManifest.xml

    Also I'm using the un-signed package. If I use the sign package, the application installs, but it doesn't launch. As soon as I launch it, it crashes.

  • CheesebaronCheesebaron DKInsider, University mod

    What does logcat say about the crash when you use a signed package?

  • MatForsbergMatForsberg USUniversity ✭✭

    have you allowed installation from unknown sources in your settings?

  • These are my App configurations. The names is hidden due to app regulations and for Build Settings they are identical for debug/release

  • @MatForsberg Yes, it's enabled on the phones I've tried.

    @Cheesebaron I'll need to get it. Curiously now the signed app is installing and working and I haven't really touched anything. The un-signed one is still not installing.

  • LuisRodriguez.1627LuisRodriguez.1627 USMember
    edited June 2015

    Log Cat:

    `D/StatusBar.NetworkController( 3871): refreshNwBoosterIndicator - setNWBoosterIndicators(false)

    D/StatusBar.NetworkController( 3871): refreshNwBoosterIndicator - setNWBoosterIndicators(false)
    
    W/AudioPolicyIntefaceImpl( 2992): Skipped to add effects on session 2807
    
    V/AudioPolicyManager( 2992): startOutput() output 4, stream 1, session 2807
    
    V/AudioPolicyManager( 2992): changeRefCount() stream 1, count 1
    
    D/AudioPolicyManager( 2992): getDeviceForStrategy mLastPolicySelection device = 4
    
    V/AudioPolicyManager( 2992): getNewOutputDevice() selected device 4
    
    V/AudioPolicyManager( 2992): setOutputDevice() output 4 device 0004 delayMs 0
    
    V/AudioPolicyManager( 2992): setOutputDevice() prevDevice 0004
    
    D/AudioPolicyManager( 2992): getDeviceForStrategy mLastPolicySelection device = 4
    
    D/StatusBar.NetworkController( 3871): refreshNwBoosterIndicator - setNWBoosterIndicators(false)
    
    D/AudioPolicyManager( 2992): getDeviceForStrategy mLastPolicySelection device = 4
    
    V/AudioPolicyManager( 2992): setOutputDevice() changing device
    
    V/AudioPolicyManager( 2992): DeviceVector::refreshTypes() mDeviceTypes 00000004
    
    V/AudioPolicyManager( 2992): DeviceVector::getDevicesFromType() for type 4 found 0xec33c980
    
    D/StatusBar.NetworkController( 3871): refreshNwBoosterIndicator - setNWBoosterIndicators(false)
    
    E/PersonaManagerService( 3507): inState():  stateMachine is null !!
    
    I/PersonaManagerService( 3507): PersonaId don't exist
    
    I/ActivityManager( 3507): do not start freezing screen for locked container getKeyguardshowstate = false
    
    D/audio_hw_primary( 2992): out_set_parameters: enter: kvpairs: routing=4
    
    I/audio_hw_primary( 2992): out_set_parameters adev->out_device:4
    
    I/audio_hw_primary( 2992): get_scenario return scenario_type:0
    
    I/audio_hw_primary( 2992): get_output_snd_device_id device:0x3
    
    V/audio_hw_primary( 2992): select_devices output_scenario:0 input_scenario:-1 out_snd_device 0x3 in_snd_device:0x0
    
    I/audio_hw_primary( 2992): select_devices - do not update mixer_path
    
    V/AudioPolicyManager( 2992): setOutputDevice() createAudioPatch returned 0 patchHandle 2808num_sources 1 num_sinks 1
    
    V/AudioPolicyManager( 2992): checkAndSetVolume() cannot set stream 6 volume with force use = 0 for comm
    
    D/AudioFlinger( 2992): releaseAudioSessionId
    
    D/AudioFlinger( 2992): releasing 2803 from 3507 for 3507
    
    D/AudioFlinger( 2992): purging stale effects ++
    
    D/AudioFlinger( 2992): purging stale effects --
    
    V/AudioPolicyManager( 2992): releaseOutput() 4
    
    V/ApplicationPolicy( 3507): isApplicationStateBlocked userId 0 pkgname com.android.packageinstaller
    
    W/ActivityManager( 3507): userId = 0, bbcId = -10000
    
    W/ActivityManager( 3507): NORMAL SET : dst_category = 0, src_allowCategory = 0,2-1023
    
    W/ActivityManager( 3507): NORMAL SET : srcAppInfo.processName = com.sec.android.app.myfiles, destAppInfo.processName = com.android.packageinstaller
    
    D/CustomFrequencyManagerService( 3507): acquireDVFSLockLocked : type : DVFS_MIN_LIMIT  frequency : 1800000  uid : 1000  pid : 3507  pkgName : [email protected]
    
    W/ActivityManager( 3507): mDVFSHelper.acquire()
    
    V/ApplicationPolicy( 3507): isApplicationStateBlocked userId 0 pkgname com.sec.android.app.myfiles
    
    V/ApplicationPolicy( 3507): isApplicationStateBlocked userId 0 pkgname com.android.packageinstaller
    
    D/MultiWindowConverter( 3507): dismissGuide() : Before attaching the guide view, mForceDismissGuide : false
    
    D/PointerIcon( 3507): setMouseIconStyle1 pointerType: 1001iconType:101 flag:0
    
    D/PointerIcon( 3507): setMouseCustomIcon IconType is same.101
    
    D/QuickConnectManager( 8311): unregisterListener!!!
    
    I/QuickConnectManager( 8311): mQuickConnectService != null
    
    I/QuickConnectService( 3507): unregisterCallback
    
    D/QuickConnectService( 3507): unregisterCallback >>> Compare listener : com.android.dialer.DialtactsActivity
    
    D/QuickConnectService( 3507): unregisterCallback >>> Compare listener : com.sec.android.app.myfiles.common.MainActivity
    
    D/QuickConnectService( 3507): unregisterCallback >>> Removed listener ClassName : com.sec.android.app.myfiles.common.MainActivity
    
    D/MyFilesUi( 8311): [email protected] onPause()
    
    W/ContextImpl( 3507): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1700 com.android.internal.policy.impl.PhoneWindowManager.notifyToSSRM:5733 com.android.internal.policy.impl.PhoneWindowManager.access$600:209 com.android.internal.policy.impl.PhoneWindowManager$PolicyHandler.handleMessage:842 android.os.Handler.dispatchMessage:102 
    
    V/MultiWindowTrayService(12020): onForegroundActivitiesChanged  /arrangeState : 0
    
    D/SSRM:a  ( 3507): DeviceInfo:: 000000000000
    
    D/SSRM:a  ( 3507): SettingsAirViewInfo:: 000000000
    
    D/SSRM:a  ( 3507): DeviceInfo:: 000000000000
    
    D/SSRM:a  ( 3507): SettingsAirViewInfo:: 000000000
    
    D/BatteryService( 3507): [email protected] : batteryPropertiesChanged!
    
    D/BatteryService( 3507): level:100, scale:100, status:5, health:2, present:true, voltage: 4363, temperature: 295, technology: Li-ion, AC powered:false, USB powered:true, POGO powered:false, Wireless powered:false, icon:17303396, invalid charger:0
    
    D/BatteryService( 3507): online:4, current avg:-43, charge type:1, power sharing:false, high voltage charger:false, capacity:280000, current_now:110
    
    D/BatteryService( 3507): Sending ACTION_BATTERY_CHANGED.
    
    I/MotionRecognitionService( 3507): Plugged
    
    I/MotionRecognitionService( 3507): mGripSensorEnabled= false
    
    D/KeyguardUpdateMonitor( 3871): received broadcast android.intent.action.BATTERY_CHANGED
    
    D/KeyguardUpdateMonitor( 3871): handleBatteryUpdate
    
    V/EmergencyMode( 4195): [EmergencyStateReceiver] onReceive : android.intent.action.BATTERY_CHANGED
    
    V/EmergencyMode( 4195): [EmergencyStateReceiver] ACTION_BATTERY_CHANGED mBatteryLevelForLogging = 100
    
    D/QSTile.TorchLightTile( 3871): ACTION_BATTERY_CHANGED - Level :: 100, Status :: 5
    
    W/PackageInstaller(15160): Parse error when parsing manifest. Discontinuing installation`
    

    This one is pretty much the one that comes up:
    W/PackageInstaller(15160): Parse error when parsing manifest. Discontinuing installation`

  • @Cheesebaron yes that is with unsigned. Signed seems to be working now without anything done. All I had was Xamarin have a craah earlier and after that signed is working on all the phones. Unsigned however is still giving the error. I really wonder what could it be.

Sign In or Register to comment.