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:
- In your Unity project, go to File → Build Settings
- Click “Android” on the left under Platform and then click the “Player Settings…” button below
- On the left nav, click “Player” and then expand the “Other Settings” header on the right side
- 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
- You can also choose the “Minimum API Level” setting the same way