From a6f86a3971ad6941bf0f620a047d022c7c1ada93 Mon Sep 17 00:00:00 2001 From: Dean Ellis Date: Fri, 2 Jun 2017 21:47:52 +0100 Subject: [PATCH] [Xamarin.Android.Build.Task] Fix --max-res-version for android-O The aapt tool needs a --max-res-version which is a int, not a string. Our current GetJavaPlafromJar was outputting a TargetLevel of 'O' and not 26. This is because we were returning the raw value we get from the manifest rather than the one which gets 'O' replaced with 26. --- src/Xamarin.Android.Build.Tasks/Tasks/GetJavaPlatformJar.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Xamarin.Android.Build.Tasks/Tasks/GetJavaPlatformJar.cs b/src/Xamarin.Android.Build.Tasks/Tasks/GetJavaPlatformJar.cs index 37a5287ea29..84fc28b3c57 100644 --- a/src/Xamarin.Android.Build.Tasks/Tasks/GetJavaPlatformJar.cs +++ b/src/Xamarin.Android.Build.Tasks/Tasks/GetJavaPlatformJar.cs @@ -124,7 +124,7 @@ string GetTargetSdkVersion (string target, XAttribute target_sdk) ); return targetFrameworkVersion; } - return target; + return targetSdkVersion; } } }