Android Deployment step failed


Hey, I'm trying to build and debug an existing Xamarin Android project in Rider 2017.1. I could build the whole solution successfully, but after being asked on which Android device the project should be deployed I'll always get an error in the console saying:

Xamarin.Android.Common.Debugging.targets(516, 2): [null] C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.Common.Debugging.targets(516,2): error : Value cannot be null.
Parameter name: path1

Has someone an idea what I've missed? Needless to say that the whole solution is working in VS2017.2...



Comment actions Permalink

Hmm just noticed that it might use a wrong SDKTooling parameter for the build command:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\MSBuild.exe /noconsolelogger "/property:AdbTarget=-s emulator-5554" "/property:Configuration=Debug" "/property:Platform=AnyCPU" "/property:SDKToolingDirectory=C:\Program Files\dotnet" [...]

I've set the build & toolset option to the MSBuild coming with VS2017.2 though...

Comment actions Permalink

After installing the standalone Xamarin SDK and checking the Android SDK installation I was able to compile and deploy my Android app from Rider successfully.


Please sign in to leave a comment.