Which Android SDK does unity use when there are several SDKs installed.

I have installed 3 SDKs, API level 22 23 24. My target SDK is 22. Which SDK does unity use to compile?

I realize this is an old question, but maybe it’ll help someone else.

You can configure the version Unity compiles against by doing the following:

  1. In your Unity project, go to File → Build Settings
  2. Click “Android” on the left under Platform and then click the “Player Settings…” button below
  3. On the left nav, click “Player” and then expand the “Other Settings” header on the right side
  4. Scroll down to find the “Target API Level” setting where you can specify what to target. You can choose from an explicit version or whatever highest you have installed
  5. You can also choose the “Minimum API Level” setting the same way