locked
Live player android - Access to path denied RRS feed

  • Question

  • User66293 posted

    Hi,

    I'm trying out the Xamarin Live player on a Oneplus 5 android 7.1 but I get the following error:

    Built with 2 messages (1,1): error: Internal Build Error: Access to the path '/data/user/0/com.xamarin.live/files/C/dev/MyCompany/Some-Git/Some/src/SomeDemo/SomeDemo/' is denied. C:\dev\MyCompany\Some-Git\Some\src\SomeDemo\SomeDemo.Android\MainActivity.cs(1,1): error: The type or namespace name 'App' could not be found (are you missing a using directive or an assembly reference?)

    Debugging with a USB cable does seem to work and pairing my devices with Visual Studio to.

    So anyone some ideas?

    Thanks!

    Thursday, September 7, 2017 8:44 AM

All replies

  • User9477 posted

    Same problem here

    Sunday, September 10, 2017 10:02 AM
  • User225049 posted

    same problem, did you find the solution?

    Tuesday, September 19, 2017 8:18 PM
  • User9477 posted

    Moved to LiveXamL. working great.

    Tuesday, September 19, 2017 9:42 PM
  • User66293 posted

    No, unfortunatly I haven't found a solution. But to be honest I haven't searched much anymore.

    But as @zahikramer mentioned, you can use:

    • LiveXAML: http://www.livexaml.com/

    Or

    • GorillaPlayer: http://gorillaplayer.com/
    Wednesday, September 20, 2017 1:01 PM
  • User344719 posted

    same problem!

    Wednesday, October 4, 2017 2:04 PM
  • User18210 posted

    Same problem.

    Friday, October 13, 2017 7:51 AM
  • User213349 posted

    Same problem

    Sunday, October 15, 2017 6:13 AM
  • User344719 posted

    this problem still exists in Visual Studio 15.4.0 (stable)

    Monday, October 16, 2017 7:27 PM
  • User213349 posted

    https://bugzilla.xamarin.com/show_bug.cgi?id=56538

    Tuesday, October 17, 2017 3:14 PM
  • User25759 posted

    We are working on .NET Standard support, which is why you would be experiencing this. Will be coming soon.

    Thursday, October 19, 2017 8:44 PM
  • User18210 posted

    Thank you for the update.

    Wednesday, October 25, 2017 1:36 PM
  • User355584 posted

    @JamesMontemagno Cheers! Looking forward to .NET Standard support....

    Thursday, October 26, 2017 7:51 PM
  • User344719 posted

    waiting .net standard support...

    Monday, November 13, 2017 1:08 PM
  • User234095 posted

    Same problem using Visual Studio 15.5 Preview with a .net standard 2.0 project as shared code.

    (1,1): error: Internal Build Error: Access to the path '/data/user/0/com.xamarin.live/files/C/Users/Mats/Documents/Visual Studio 2017/Projects/MyArsenal/MyArsenal.Core/' is denied.

    Trying to preview on Galaxy S8 with Android 7.1

    Anyone can provide help ?

    Thursday, November 16, 2017 1:33 PM
  • User25759 posted

    I just pushed out a new version (1.2.80) to google play which now supports .NET Standard project types.

    For iOS the Test Flight Fast Ring version supports it as well.

    Monday, November 20, 2017 11:24 PM
  • User213349 posted

    Still does not work with version 1.2.80 on Android

    The following errors were encountered when building and running your app:

    • Failed to resolve assembly: 'FFImageLoading, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' • Failed to resolve assembly: 'FFImageLoading, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' • Failed to resolve assembly: 'FFImageLoading, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' • Dependent project MyProject.csproj failed to build, using old version. • MainActivity.cs: The type or namespace name 'DroidShadowFrame' could not be found (are you missing a using directive or an assembly reference?)

    Tuesday, November 21, 2017 7:56 AM
  • User25759 posted

    You will need to report a bug and provide a sample: https://aka.ms/live-player-report-issue

    As most likely some of those assemblies aren't supported.

    Did you try a new project just to make sure that is working for you?

    Tuesday, November 21, 2017 7:10 PM
  • User213349 posted

    I have created a new bug https://bugzilla.xamarin.com/show_bug.cgi?id=60795

    Wednesday, November 22, 2017 7:14 AM
  • User210784 posted

    Is Xamarin Live player working with netstandard2?

    Attempting connection to debug address: 192.168.1.111:37847. Connected to: 192.168.1.111:37847. Deploying C:\Temp\xamarin\2018-01-04_App3\App3\App3\App3.Android\App3.Android.csproj... Got device info: Motorola Moto G (5) Plus Player (Android) @ 192.168.1.111:37847 Synchronizing files... Building and running... Built with 1 messages. (1,1): error: Failed to load assembly from stream: System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path "/data/user/0/com.xamarin.live/files/.nuget/packages/xamarin.android.support.media.compat/25.4.0.2/lib/MonoAndroid70/Xamarin.Android.Support.Media.Compat.dll". at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0017d] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00000] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) at System.IO.File.OpenRead (System.String path) [0x00000] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 at .$LocalFileSystem+Upsight-IFileSystem-OpenReadAsync@49-1.Invoke () [0x00012] in <5a3c110c11b47c3aa74503830c113c5a>:0 at System.Threading.Tasks.Task1[TResult].InnerInvoke () [0x0000f] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 at System.Threading.Tasks.Task.Execute () [0x00010] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 --- End of inner exception stack trace --- --- End of inner exception stack trace --- ---> (Inner Exception #0) System.AggregateException: One or more errors occurred. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path "/data/user/0/com.xamarin.live/files/.nuget/packages/xamarin.android.support.media.compat/25.4.0.2/lib/MonoAndroid70/Xamarin.Android.Support.Media.Compat.dll". at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0017d] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00000] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) at System.IO.File.OpenRead (System.String path) [0x00000] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 at <StartupCode$Continuous-Core-Droid>.$LocalFileSystem+Upsight-IFileSystem-OpenReadAsync@49-1.Invoke () [0x00012] in <5a3c110c11b47c3aa74503830c113c5a>:0 at System.Threading.Tasks.Task1[TResult].InnerInvoke () [0x0000f] in <896ad1d315ca4ba7b117efb8dacaedcf>:0

    Sunday, January 7, 2018 7:33 PM
  • User210784 posted

    Does Xamarin Live work with .netstandard 2?

    Sunday, January 7, 2018 9:07 PM
  • User210784 posted

    Is live player working with netstandard2 library? At this moment, I am getting the following error.

    Attempting connection to debug address: 192.168.1.111:37847. Connected to: 192.168.1.111:37847. Deploying C:\Temp\xamarin\2018-01-04_App3\App3\App3\App3.Android\App3.Android.csproj... Got device info: Motorola Moto G (5) Plus Player (Android) @ 192.168.1.111:37847 Synchronizing files... Building and running... Built with 1 messages. (1,1): error: Failed to load assembly from stream: System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path "/data/user/0/com.xamarin.live/files/.nuget/packages/xamarin.android.support.media.compat/25.4.0.2/lib/MonoAndroid70/Xamarin.Android.Support.Media.Compat.dll". at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0017d] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00000] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) at System.IO.File.OpenRead (System.String path) [0x00000] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 at .$LocalFileSystem+Upsight-IFileSystem-OpenReadAsync@49-1.Invoke () [0x00012] in <5a3c110c11b47c3aa74503830c113c5a>:0 at System.Threading.Tasks.Task1[TResult].InnerInvoke () [0x0000f] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 at System.Threading.Tasks.Task.Execute () [0x00010] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 --- End of inner exception stack trace --- --- End of inner exception stack trace --- ---> (Inner Exception #0) System.AggregateException: One or more errors occurred. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path "/data/user/0/com.xamarin.live/files/.nuget/packages/xamarin.android.support.media.compat/25.4.0.2/lib/MonoAndroid70/Xamarin.Android.Support.Media.Compat.dll". at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0017d] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00000] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) at System.IO.File.OpenRead (System.String path) [0x00000] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 at <StartupCode$Continuous-Core-Droid>.$LocalFileSystem+Upsight-IFileSystem-OpenReadAsync@49-1.Invoke () [0x00012] in <5a3c110c11b47c3aa74503830c113c5a>:0 at System.Threading.Tasks.Task1[TResult].InnerInvoke () [0x0000f] in <896ad1d315ca4ba7b117efb8dacaedcf>:0

    Tuesday, January 9, 2018 1:40 PM
  • User25759 posted

    Media.Compat issue is now fixed in 1.4.134

    Wednesday, January 10, 2018 11:16 PM
  • User156231 posted

    Hello @JamesMontemagno .NET Standard 2.0 Class Library still not works with Live Player. My .NET Standard 2.0 Class Library is AlmicantaratXF

    error: The type or namespace name 'AlmicantaratXF' could not be found (are you missing a using directive or an assembly reference?)

    Tuesday, February 19, 2019 10:48 AM