-
Notifications
You must be signed in to change notification settings - Fork 1.9k
XF 2.5 build failed targeting Xamarin.Android 7.0 or 6.0 #2016
Comments
@5yunus2efendi Which build of the 2.5 NuGet package are you using (e.g., 2.5.0.122203, 2.5.0.280555)? In your Android project settings, on the Application tab, what is selected for "Compile using Android version: (Target Framework)"? And on the Android Manifest tab, what is selected for "Minimum Android version" and "Target Android version"? |
XF version: 2.5.1.317207-pre1 or 2.5.0.280555 (both has the same issue), but AFAIK the issue is starting from XF 2.5 first released |
this is a issue restoring packages and the target version was still Android 6.0 and there's no Support for fragments there. Solutions is update your androdi csproj to 7.0. and then install Xamarin.Forms |
@5yunus2efendi 2.5 is not compatible with Android 6. Android 7 should work fine. If you're seeing this issue while targeting 7, you may need to completely remove the Forms packages, restart Visual Studio, and re-add the Forms packages. I apologize, we realize it's not the best update experience. There is some work in progress to make the feedback during the NuGet update process more helpful and to make the package manager UI better about indicating which packages are compatible with your project. |
I am sorry, I forgot to mention that I changed Xamarin.Android.Support to 23.3.0 because XF 2.5 for Xamarin.Android 6 or 7 has minimum dependencies Xamarin.Android.Support 23.3.0, note that I need Xamarin.Android.Support 23.3.0 is because when the app released, the size of it's app is relatively small than Xamarin.Android.Support 24 or above, I also have an app that target 2.4.* and it's size is relatively small Here is the repro of the issue |
On a cursory look over, it appears the project shows the build error in question when trying to build. |
Any update on this? |
I'll close this one |
Description
I want to create an app using XF 2.5 with Xamarin.Android 7.0, but it says build failed with the following error:
So the only workaround right now is to target Xamarin.Android 7.1 or above.
Steps to Reproduce
Expected Behavior
Build success and I can run the app
Actual Behavior
Shows "Build error"
The text was updated successfully, but these errors were encountered: