Michael Yuwono
Michael Yuwono

Reputation: 2617

How to Change Target API Version in Visual Studio Xamarin

My VS worked well before I synchronized my project with my friend's using GitHub. After that, somehow I notice Visual Studio targets different location to android.jar file. So, whenever I compile my code, I receive the following error.

Could not find android.jar for API Level 24. This means the Android SDK platform for API Level 24 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. (C:\Users\Joshua\AppData\Local\Xamarin\MonoForAndroid\AndroidSDK\platforms\android-24\android.jar missing.)

C:\Users\Joshua\AppData\Local\Xamarin\MonoForAndroid\AndroidSDK\platforms\android-24\android.jar is a directory location in my friend's drive.

How to change the target location of that android.jar file in VS 2015?

Upvotes: 12

Views: 44788

Answers (3)

Lrodriguez84
Lrodriguez84

Reputation: 754

Go to android project then right click -> Properties -> Android Manifest (scroll down) then you will see Minimun android version and Target android version.

Upvotes: 3

Neelam Soni
Neelam Soni

Reputation: 31

in vs project -> your application properties -> change target framework to your api version. that's it

Upvotes: 1

Prashant Cholachagudda
Prashant Cholachagudda

Reputation: 13092

Looks like your app is trying to use Android N tools to compile or targeting API level 23

Under your Android project properties -> Application, set the Target Android Version and Compile using Android Version to API Level 23 to fix it

Upvotes: 20

Related Questions