Forum Xamarin.Android

Environment' is an ambiguous reference between 'Android.OS.Environment' and 'System.Environment'

MBatMBat Member ✭✭

Error CS0104 'Environment' is an ambiguous reference between 'Android.OS.Environment' and 'System.Environment'

Selecting Android or system does not solve the problem !

Answers

  • jezhjezh Member, Xamarin Team Xamurai

    I did a simple test, with the following code, it compiles successfully.

      var path= System.Environment.GetFolderPath(System.Environment.SpecialFolder.ApplicationData);
    

    Note:I don't know the TransferUtility, you can recheck the function Upload of it.


    Xamarin forums are migrating to a new home on Microsoft Q&A!
    We invite you to post new questions in the Xamarin forums’ new home on Microsoft Q&A!
    For more information, please refer to this sticky post.

Sign In or Register to comment.