{"id":4173,"date":"2021-10-08T05:01:00","date_gmt":"2021-10-08T10:01:00","guid":{"rendered":"https:\/\/www.incredigeek.com\/home\/?p=4173"},"modified":"2021-10-05T22:03:31","modified_gmt":"2021-10-06T03:03:31","slug":"unity-android-build-required-api-level-30","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/unity-android-build-required-api-level-30\/","title":{"rendered":"Unity Android Build &#8211; Required API Level 30"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2021\/10\/image.png\"><img loading=\"lazy\" decoding=\"async\" width=\"591\" height=\"204\" src=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2021\/10\/image.png\" alt=\"\" class=\"wp-image-4174\" srcset=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2021\/10\/image.png 591w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2021\/10\/image-300x104.png 300w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2021\/10\/image-500x173.png 500w\" sizes=\"auto, (max-width: 591px) 100vw, 591px\" \/><\/a><figcaption>Android SDK missing required platform API<\/figcaption><\/figure>\n\n\n\n<p>Ran into the above issue while trying to build a Unity project.  Android studio had the correct version installed, why was it not able to use API level 30?  <br><\/p>\n\n\n\n<p>Ok So hit Update Android SDK.  Unity Launches a PowerShell window and tries to upgrade the Android SDK level, but fails with<\/p>\n\n\n\n<p>&#8220;Unable to install additional SDK platform. Please run the SDK Manager manually to make sure you have the latest set of tools and the required platforms installed.&#8221;<\/p>\n\n\n\n<p>Looks like there was a bug with the space in the path to the command Unity was running.<\/p>\n\n\n\n<p><a href=\"https:\/\/forum.unity.com\/threads\/android-sdk-29-unable-to-install-additional-sdk-platform-issue-workaround.963626\/\">https:\/\/forum.unity.com\/threads\/android-sdk-29-unable-to-install-additional-sdk-platform-issue-workaround.963626\/<\/a><\/p>\n\n\n\n<p>Looks like there are a couple of work arounds for this.  I had Android Studio installed so I opened up that folder and copied that platform version to my unity folder.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2021\/10\/image-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"934\" height=\"335\" src=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2021\/10\/image-1.png\" alt=\"\" class=\"wp-image-4175\" srcset=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2021\/10\/image-1.png 934w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2021\/10\/image-1-300x108.png 300w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2021\/10\/image-1-768x275.png 768w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2021\/10\/image-1-500x179.png 500w\" sizes=\"auto, (max-width: 934px) 100vw, 934px\" \/><\/a><figcaption>Copy Android platform from Android Studio to Unity Folder<\/figcaption><\/figure>\n\n\n\n<p>Android Studio folder should be in AppData\\Local\\Android\\Sdk\\platforms<\/p>\n\n\n\n<p>Unity Project folder should be &#8220;C:\\Program Files\\Unity\\Hub\\Editor\\2020.3.19f1\\Editor\\Data\\PlaybackEngines\\AndroidPlayer\\SDK\\platforms&#8221;<\/p>\n\n\n\n<p>You should now be able to build the project in Unity now with the appropriate API version.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ran into the above issue while trying to build a Unity project. Android studio had the correct version installed, why was it not able to use API level 30? Ok So hit Update Android SDK. Unity Launches a PowerShell window &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/unity-android-build-required-api-level-30\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[325],"tags":[541,518,582,326,327],"class_list":["post-4173","post","type-post","status-publish","format-standard","hentry","category-unity3d","tag-android","tag-build","tag-sdk","tag-unity","tag-unity3d"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/4173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=4173"}],"version-history":[{"count":2,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/4173\/revisions"}],"predecessor-version":[{"id":4177,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/4173\/revisions\/4177"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=4173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=4173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=4173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}