user3897367 user3897367 - 6 months ago 160
Android Question

Error after updating the Android.Support Library v7 AppCompat to the 21.0.3 version

after updating the Android.Support Library v7 AppCompat to the 21.0.3 version I've got this errors:

1>C:\Program Files (x86)\MSBuild\Xamarin\Androi\Xamarin.Android.Common.targets(236,2): error XA5207: Please install package: 'Android Support Library' available in SDK installer. Java library file C:\Users...\AppData\Local\Xamarin\Android.Support.v4\21.0.3\embedded\classes.jar doesn't exist.

1>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(236,2): error XA5207: Please install package: 'Android Support Library' available in SDK installer. Java library file C:\Users...\AppData\Local\Xamarin\Android.Support.v4\21.0.3\embedded\libs/internal_impl-21.0.3.jar doesn't exist.

1>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(236,2): error XA5206: Please install package: 'Android Support Library' available in SDK installer. Android resource directory C:\Users...\AppData\Local\Xamarin\Android.Support.v4\21.0.3\embedded./ doesn't exist.


I tried deleting the Android Support Library 21.0.3 from the SDK manager and download it again.

There is similar question: Android Support Library and Media Router .jar files cannot be found however I am not using map in my project. How do I fix this?

I'm using Visual Studio 2013,
Compile using API 21 (Xamarin.Android v5.0 Support),
Minimum terget API 16,
Terget API 21

Answer
  1. Delete folder: 21.0.3 (...\AppData\Local\Xamarin\Android.Support.v4\21.0.3)
  2. Rebuild your application.

    Works fine to me:

VS xamarin

Comments