You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
There is no longer an informative error message printed when building against a platform SDK version that is not installed #1136
Ensure you don't have API 27 installed, or remove/rename $(AndroidSdk)/platforms/android-27.
msbuild *.csproj /p:TargetFrameworkVersion=v8.1
Expected Behavior
An informative and actionable error message is displayed when the platform SDK you are attempting to compile against does not exist on disk:
Build FAILED.
"/Users/petercollins/git/monodroid-samples/Button/DroidButton.csproj" (default target) (1) ->
(_ValidateAndroidPackageProperties target) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(582,2): error : Could not find android.jar for API Level 26. This means the Android SDK platform for API Level 26 is not installed. Either install it in the Android SDK Manager (Tools > Open Android SDK Manager...), or change your Xamarin.Android project to target an API version that is installed. (/Users/petercollins/Library/Developer/Xamarin/android-sdk-macosx/platforms/android-26/android.jar missing.) [/Users/petercollins/git/monodroid-samples/Button/DroidButton.csproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:01.18
Actual Behavior
An error code XA5207 is displayed with no error message. This is a regression from d15-5.
Activity
[Xamarin.Android.Build.Tasks] Fix message for missing Platform error …
[Xamarin.Android.Build.Tasks] Fix message for missing Platform error …
[Xamarin.Android.Build.Tasks] Fix message for missing Platform error …
jonpryor commentedon Jan 4, 2018
Cherry-picked to d15-6 as: 6aabfef
pjcollins commentedon Jan 9, 2018
Verified in monodroid/d15-6/b6dfc0ad4 (Xamarin.Android 8.2.0.3).