Bug 29649 - Reason: Access to Path is denied (XA0000)
Summary: Reason: Access to Path is denied (XA0000)
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.4.2
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-05-01 09:52 UTC by Matt Butler
Modified: 2016-04-13 18:09 UTC (History)
6 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Screen Shot of Error (233.62 KB, image/png)
2015-05-01 09:52 UTC, Matt Butler
Details
Xamarin Studio Android Build/Deploy Error (114.28 KB, image/png)
2015-05-20 14:44 UTC, Matt Butler
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_REPRODUCIBLE

Description Matt Butler 2015-05-01 09:52:52 UTC
Created attachment 11021 [details]
Screen Shot of Error

After Xamarin Update on 4/29, we can't build our droid app, we get this error.

Here is the log file for Android:

[2015-05-01 08:31:26.3] INFO: sdk: Looking for Android SDK..
[2015-05-01 08:31:26.3] INFO: sdk:   Key HKCU\SOFTWARE\Novell\Mono for Android\AndroidSdkDirectory found:
    Path contains adb.exe in \platform-tools (C:\Users\kmoeller\AppData\Local\Android\android-sdk).
[2015-05-01 08:31:26.3] INFO: sdk:   Key HKLM\SOFTWARE\Novell\Mono for Android\AndroidSdkDirectory found:
    Path does not contain adb.exe in \platform-tools (C:\android-sdk-windows).
[2015-05-01 08:31:26.3] INFO: sdk:   Key HKCU\SOFTWARE\Xamarin\MonoAndroid\PrivateAndroidSdkPath not found.
[2015-05-01 08:31:26.3] INFO: sdk:   Key HKCU\SOFTWARE\Android SDK Tools\Path not found.
[2015-05-01 08:31:26.3] INFO: sdk:   Key HKLM\SOFTWARE\Android SDK Tools\Path found:
    Path contains adb.exe in \platform-tools (C:\Users\kmoeller\AppData\Local\Android\android-sdk).
[2015-05-01 08:31:26.3] INFO: sdk: Looking for Android NDK..
[2015-05-01 08:31:26.3] INFO: sdk:   Key HKCU\SOFTWARE\Novell\Mono for Android\AndroidNdkDirectory found:
    Path contains ndk-stack.exe in \. (C:\Users\kmoeller\Documents\Android\ndk\android-ndk-r8d).
[2015-05-01 08:31:26.3] INFO: sdk:   Key HKLM\SOFTWARE\Novell\Mono for Android\AndroidNdkDirectory not found.
[2015-05-01 08:31:26.3] INFO: sdk:   Key HKCU\SOFTWARE\Novell\Mono for Android\JavaSdkDirectory not found.
[2015-05-01 08:31:26.3] INFO: sdk:   Key HKLM\SOFTWARE\Novell\Mono for Android\JavaSdkDirectory not found.
[2015-05-01 08:31:26.3] INFO: sdk: Looking for Java 6 SDK..
[2015-05-01 08:31:26.3] INFO: sdk:   Key HKLM\SOFTWARE\JavaSoft\Java Development Kit\CurrentVersion found.
[2015-05-01 08:31:26.3] INFO: sdk:   Key HKLM\SOFTWARE\JavaSoft\Java Development Kit\1.6\JavaHome not found.
[2015-05-01 08:31:26.3] INFO: sdk:   Key HKLM\SOFTWARE\JavaSoft\Java Development Kit\1.7\JavaHome found:
    Path contains jarsigner.exe in \bin (C:\Program Files (x86)\Java\jdk1.7.0_71).
[2015-05-01 08:31:26.3] INFO: Found Xamarin.Android 5.1.0
[2015-05-01 08:31:26.3] INFO: Found Android SDK. API levels: 10, 15, 16, 17, 18, 19, 20, 21
[2015-05-01 08:32:04.9] INFO: Tracking android devices started
[2015-05-01 08:32:04.9] DEBUG: TrackDeviceTask got: 192.168.147.101:5555	device
[2015-05-01 08:32:04.9] INFO: Got new device list from adb with 1 devices
[2015-05-01 08:32:04.9] DEBUG: RunShellCommand: 192.168.147.101:5555 getprop
[2015-05-01 08:32:40.4] DEBUG: RunShellCommand: 192.168.147.101:5555 am broadcast -a "mono.android.intent.action.PACKAGE_VERSIONS" -e "packages" "Mono.Android.DebugRuntime,Mono.Android.Platform.ApiLevel_21,com.journyx.timesheet" "Mono.Android.DebugRuntime/com.xamarin.mono.android.PackageVersions"
[2015-05-01 08:32:40.7] DEBUG: RunShellCommand: 192.168.147.101:5555 cat /data/system/packages.xml
[2015-05-01 08:32:44.5] ERROR: Deployment failed
Xamarin.AndroidTools.AndroidDeploymentException: PackagingFailed ---> System.Exception: Packaging failed
   --- End of inner exception stack trace ---
   at Xamarin.AndroidTools.AndroidDeploySession.Run(CancellationToken token)
   at Xamarin.AndroidTools.AndroidDeploySession.RunLogged(CancellationToken token)
[2015-05-01 08:40:30.1] DEBUG: RunShellCommand: 192.168.147.101:5555 am broadcast -a "mono.android.intent.action.PACKAGE_VERSIONS" -e "packages" "Mono.Android.DebugRuntime,Mono.Android.Platform.ApiLevel_21,com.journyx.timesheet" "Mono.Android.DebugRuntime/com.xamarin.mono.android.PackageVersions"
[2015-05-01 08:40:30.4] DEBUG: RunShellCommand: 192.168.147.101:5555 cat /data/system/packages.xml
[2015-05-01 08:40:33.2] ERROR: Deployment failed
Xamarin.AndroidTools.AndroidDeploymentException: PackagingFailed ---> System.Exception: Packaging failed
   --- End of inner exception stack trace ---
   at Xamarin.AndroidTools.AndroidDeploySession.Run(CancellationToken token)
   at Xamarin.AndroidTools.AndroidDeploySession.RunLogged(CancellationToken token)
Comment 2 Sunil Kumar 2015-05-04 10:00:42 UTC
I have tried to reproduce this issue and not able to reproduce it. I have followed below steps to reproduce this issue:

1. Update XS and XVS to latest stable i.e. XS 5.9.0.431 and XVS 3.11.445.
2. Create Xamarin.Forms PCL project.
3. Updated the Forms version 1.4.2.6359.
4. Build/Run the application.

I observed that I am able to build and run Xamarin.Forms application successfully. I created Android application and also able to build and run Android application successfully.

Screencast: 

Please let me know if I have to follow any other steps to reproduce this issue.

Also if possible could you please provide us Sample, ide log and build info. This may be helpful to reproduce this issue at our end.

For ide log,Location: XS-> Help-> Open log Directory-> ide.log(latest time
stamp)
For Build info, Location XS-> Help-?> About-> Show details-> Copy information.
Comment 3 Sunil Kumar 2015-05-04 10:08:01 UTC
Here is the update to above issue, screencast: http://www.screencast.com/t/atpX5dkIo

Environment info: 
=== Xamarin Studio ===

Version 5.9 (build 431)
Installation UUID: af8b0e23-bef7-4d92-b9de-c688528f8f70
Runtime:
 Microsoft .NET 4.0.30319.34011
 GTK+ 2.24.22 (MS-Windows theme)
 GTK# 2.12.26

=== Xamarin.Android ===

Version: 5.1.0 (Enterprise Edition)
Android SDK: C:\Users\Naqeeb\AppData\Local\Android\android-sdk
 Supported Android versions:
  2.3    (API level 10)
  4.0.3  (API level 15)
  4.1    (API level 16)
  4.2    (API level 17)
  4.3    (API level 18)
  4.4    (API level 19)
  4.4.87 (API level 20)
  5.0    (API level 21)
Java SDK: C:\Program Files\Java\jdk1.7.0_71
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

=== Xamarin Android Player ===

Version: 0.1.1
Location: C:\Program Files\Xamarin Android Player\DeviceManager.exe

=== Build Information ===

Release ID: 509000431
Git revision: 7560726734fc7267de2fa9abed2509968deefaa8
Build date: 2015-04-17 17:09:09-04
Xamarin addins: 2e772c734ab3148054eae7bf8949f340fdeb5e5e

=== Operating System ===

Windows 6.2.9200.0 (64-bit)
Comment 4 Matt Butler 2015-05-20 14:44:13 UTC
Created attachment 11263 [details]
Xamarin Studio Android Build/Deploy Error
Comment 5 Matt Butler 2015-05-20 14:45:13 UTC
This persists on our side.  Just for S&G's I attempted this in Xamarin Studio, hoping something more might come to light.  here is the config of my XS.

Xamarin Studio
Version 5.9 (build 431)
Installation UUID: 0b0acc04-3f09-470b-8b39-969bb5eb072c
Runtime:
	Microsoft .NET 4.0.30319.34209
	GTK+ 2.24.22 (MS-Windows theme)
	GTK# 2.12.26

Xamarin.Android
Version: 5.1.1 (Business Edition)
Android SDK: C:\Users\kmoeller\AppData\Local\Android\android-sdk
	Supported Android versions:
		2.3   (API level 10)
		4.0.3 (API level 15)
		4.4   (API level 19)
		5.0   (API level 21)
Java SDK: C:\Program Files (x86)\Java\jdk1.7.0_71
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) Client VM (build 24.71-b01, mixed mode, sharing)

Xamarin Android Player
Not Installed

Build Information
Release ID: 509000431
Git revision: 7560726734fc7267de2fa9abed2509968deefaa8
Build date: 2015-04-17 17:09:09-04
Xamarin addins: 2e772c734ab3148054eae7bf8949f340fdeb5e5e

Operating System
Windows 6.2.9200.0 (64-bit)

Inside Xamarin.Android.targets I see this... oh here's a new bug for you, cut/paste doesn't work in XS on a PC.  so I'll upload a screen shot
Comment 6 Samantha Houts [MSFT] 2016-04-13 18:09:28 UTC
Thank you for taking the time to submit this report. After reviewing the description of this bug, we believe it no longer affects the current version of Xamarin.Forms. If you are still experiencing the issue after updating your packages, please reopen this report with an attached reproduction.
 
For your convenience, we have created some reproduction best practices viewable here: https://gist.github.com/jassmith/92405c300e54a01dcc6d

Warm regards,
Xamarin Forms Team