Live player android - Access to path denied

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!

Answers

  • zahikramerzahikramer ILMember ✭✭✭

    Same problem here

  • GSaldanaGSaldana USMember

    same problem, did you find the solution?

  • zahikramerzahikramer ILMember ✭✭✭

    Moved to LiveXamL.
    working great.

  • NicolasHotterbeekxNicolasHotterbeekx USMember ✭✭✭

    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:

    Or

  • ebicogluebicoglu USMember ✭✭

    same problem!

  • JonathanPeelJonathanPeel USMember ✭✭

    Same problem.

  • Asaf70Asaf70 ILMember ✭✭

    Same problem

  • ebicogluebicoglu USMember ✭✭

    this problem still exists in Visual Studio 15.4.0 (stable)

  • JamesMontemagnoJamesMontemagno USForum Administrator, Xamarin Team, Developer Group Leader Xamurai

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

  • JonathanPeelJonathanPeel USMember ✭✭

    Thank you for the update.

  • Dave.9984Dave.9984 USMember

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

  • ebicogluebicoglu USMember ✭✭

    waiting .net standard support...

  • MatsMaggiMatsMaggi USMember

    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 ?

  • JamesMontemagnoJamesMontemagno USForum Administrator, Xamarin Team, Developer Group Leader Xamurai

    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.

  • Asaf70Asaf70 ILMember ✭✭

    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?)

  • JamesMontemagnoJamesMontemagno USForum Administrator, Xamarin Team, Developer Group Leader Xamurai

    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?

  • Asaf70Asaf70 ILMember ✭✭
  • davidyardydavidyardy USUniversity ✭✭

    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 <StartupCode$Continuous-Core-Droid>[email protected] () [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>[email protected] () [0x00012] in <5a3c110c11b47c3aa74503830c113c5a>:0 at System.Threading.Tasks.Task1[TResult].InnerInvoke () [0x0000f] in <896ad1d315ca4ba7b117efb8dacaedcf>:0

  • davidyardydavidyardy USUniversity ✭✭

    Does Xamarin Live work with .netstandard 2?

  • davidyardydavidyardy USUniversity ✭✭

    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 <StartupCode$Continuous-Core-Droid>[email protected] () [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>[email protected] () [0x00012] in <5a3c110c11b47c3aa74503830c113c5a>:0 at System.Threading.Tasks.Task1[TResult].InnerInvoke () [0x0000f] in <896ad1d315ca4ba7b117efb8dacaedcf>:0

  • JamesMontemagnoJamesMontemagno USForum Administrator, Xamarin Team, Developer Group Leader Xamurai

    Media.Compat issue is now fixed in 1.4.134

  • jddjdd USMember ✭✭✭

    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?)

Sign In or Register to comment.