{"id":275,"date":"2018-10-03T17:13:59","date_gmt":"2018-10-03T17:13:59","guid":{"rendered":"https:\/\/www.xlsoft.com\/doc\/kudan\/?page_id=275"},"modified":"2020-10-09T00:36:29","modified_gmt":"2020-10-09T00:36:29","slug":"unity-building-the-app-for-android","status":"publish","type":"page","link":"https:\/\/www.xlsoft.com\/doc\/kudan\/unity-building-the-app-for-android\/","title":{"rendered":"Unity Building The App for Android"},"content":{"rendered":"<p>This quick tutorial will show you how to set up your Unity project to build for the Android platform.<\/p>\n<div class=\"excerpt\">\n<hr \/>\n<div class=\"magic-block-api-header\">\n<h1>Player Settings<\/h1>\n<p>For Android applications, set the Player Settings.<\/p>\n<p>In <code>Kudan Tracker<\/code> script, click [Set App\/Bundle ID], or select [Edit] -> [Project Settings] -> [Player] from the Unity menu and open [Other Settings] on the Android tab. <\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2315 aligncenter\" src=\"https:\/\/www.xlsoft.com\/doc\/kudan\/files\/2020\/04\/unity-android-build-01.png\" alt=\"\" width=\"750\" srcset=\"https:\/\/www.xlsoft.com\/doc\/kudan\/wp-content\/uploads\/2020\/04\/unity-android-build-01.png 1490w, https:\/\/www.xlsoft.com\/doc\/kudan\/wp-content\/uploads\/2020\/04\/unity-android-build-01-227x300.png 227w, https:\/\/www.xlsoft.com\/doc\/kudan\/wp-content\/uploads\/2020\/04\/unity-android-build-01-768x1013.png 768w, https:\/\/www.xlsoft.com\/doc\/kudan\/wp-content\/uploads\/2020\/04\/unity-android-build-01-776x1024.png 776w\" sizes=\"(max-width: 1490px) 100vw, 1490px\" \/><\/p>\n<h2>Rendering<\/h2>\n<p>Uncheck [Multithread Rendering]\n<h2 class=\"header-scroll is-api-header\">Identification<\/h2>\n<\/div>\n<div class=\"magic-block-textarea\">\n<p>Make sure that the Package Name in Identification corresponds to the API key.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2316 aligncenter\" src=\"https:\/\/www.xlsoft.com\/doc\/kudan\/files\/2020\/04\/unity-android-build-02.png\" alt=\"\" width=\"600\" srcset=\"https:\/\/www.xlsoft.com\/doc\/kudan\/wp-content\/uploads\/2020\/04\/unity-android-build-02.png 958w, https:\/\/www.xlsoft.com\/doc\/kudan\/wp-content\/uploads\/2020\/04\/unity-android-build-02-161x300.png 161w, https:\/\/www.xlsoft.com\/doc\/kudan\/wp-content\/uploads\/2020\/04\/unity-android-build-02-768x1430.png 768w, https:\/\/www.xlsoft.com\/doc\/kudan\/wp-content\/uploads\/2020\/04\/unity-android-build-02-550x1024.png 550w\" sizes=\"(max-width: 958px) 100vw, 958px\" \/><\/p>\n<p>The Package Name be either:<\/p>\n<ul>\n<li>The ID you entered when your free key was generated, in the format &#8220;com.companyName.productName&#8221;.<\/li>\n<li>If you are using the Development License Key,\u00a0<code>com.xlsoft.kudanar<\/code>.<br \/>\nClick <a href=\"https:\/\/www.xlsoft.com\/doc\/kudan\/en\/development-license-keys\/\">here<\/a> for the development license key.<\/li>\n<\/ul>\n<p>To check the validity of the API Key, run the app in Play Mode. View message in the console indicating whether the API key is valid. Or view in console log when building for iOS\/Android.<\/p>\n<p>If the Package Name is incorrect, the <strong>tracker will not run<\/strong> and camera view will be blank\/black.<\/p>\n<h2>Configuration<\/h2>\n<p>Set the following to support 64-bit.<\/p>\n<ul>\n<li>Select IL2CPP from [Scripting Backend]<\/li>\n<li>Check ARM64 in [Target Architectures]<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<h2>For Unity 2019 and later<\/h2>\n<p>When building with Unity 2019 or later, uncheck &#8220;Player Settings > Rendering> Auto Graphics API&#8221;, add &#8220;OpenGLES3&#8221; from the &#8220;+&#8221; button at the bottom right, and delete &#8220;Vulkan&#8221;.<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-2422 aligncenter\" src=\"https:\/\/www.xlsoft.com\/doc\/kudan\/files\/2020\/09\/unity2020-android-playersettings.png\" alt=\"\" width=\"750\" srcset=\"https:\/\/www.xlsoft.com\/doc\/kudan\/wp-content\/uploads\/2020\/09\/unity2020-android-playersettings.png 1968w, https:\/\/www.xlsoft.com\/doc\/kudan\/wp-content\/uploads\/2020\/09\/unity2020-android-playersettings-300x289.png 300w, https:\/\/www.xlsoft.com\/doc\/kudan\/wp-content\/uploads\/2020\/09\/unity2020-android-playersettings-1024x985.png 1024w, https:\/\/www.xlsoft.com\/doc\/kudan\/wp-content\/uploads\/2020\/09\/unity2020-android-playersettings-768x739.png 768w, https:\/\/www.xlsoft.com\/doc\/kudan\/wp-content\/uploads\/2020\/09\/unity2020-android-playersettings-1536x1478.png 1536w\" sizes=\"(max-width: 1968px) 100vw, 1968px\" \/><\/p>\n<p>&nbsp;<\/p>\n<div class=\"magic-block-api-header\">\n<h1 class=\"header-scroll is-api-header\">Build and Run<\/h1>\n<\/div>\n<div class=\"magic-block-textarea\">\n<p>You can now build the app by going to File -&gt; Build Setting and selecting Android. If you have an Android device already connected to the computer via USB, you can click \u201cBuild and Run\u201d and the app will automatically run on the device once the build is finished. If you click \u201cBuild\u201d you will need use the Android Debug Bridge (ADB) in order to manually install the app onto the device.<\/p>\n<\/div>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-329 aligncenter\" src=\"https:\/\/www.xlsoft.com\/doc\/kudan\/files\/2018\/09\/6cf45a2-UnityBuildSettingsAndroid-300x285.png\" alt=\"\" width=\"438\" height=\"416\" srcset=\"https:\/\/www.xlsoft.com\/doc\/kudan\/wp-content\/uploads\/2018\/09\/6cf45a2-UnityBuildSettingsAndroid-300x285.png 300w, https:\/\/www.xlsoft.com\/doc\/kudan\/wp-content\/uploads\/2018\/09\/6cf45a2-UnityBuildSettingsAndroid.png 664w\" sizes=\"(max-width: 438px) 100vw, 438px\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This quick tutorial will show you how to set up your Unity project to build for the Android platform. Player Settings For Android applications, set the Player Settings. In Kudan Tracker script, click [Set App\/Bundle ID], or select [Edit] -> [Project Settings] -> [Player] from the Unity menu and open [Other Settings] on the Android &#8230; <a title=\"Unity Building The App for Android\" class=\"read-more\" href=\"https:\/\/www.xlsoft.com\/doc\/kudan\/unity-building-the-app-for-android\/\">Read more<span class=\"screen-reader-text\">Unity Building The App for Android<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"bekko_page_header":""},"_links":{"self":[{"href":"https:\/\/www.xlsoft.com\/doc\/kudan\/wp-json\/wp\/v2\/pages\/275"}],"collection":[{"href":"https:\/\/www.xlsoft.com\/doc\/kudan\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.xlsoft.com\/doc\/kudan\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.xlsoft.com\/doc\/kudan\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xlsoft.com\/doc\/kudan\/wp-json\/wp\/v2\/comments?post=275"}],"version-history":[{"count":20,"href":"https:\/\/www.xlsoft.com\/doc\/kudan\/wp-json\/wp\/v2\/pages\/275\/revisions"}],"predecessor-version":[{"id":2468,"href":"https:\/\/www.xlsoft.com\/doc\/kudan\/wp-json\/wp\/v2\/pages\/275\/revisions\/2468"}],"wp:attachment":[{"href":"https:\/\/www.xlsoft.com\/doc\/kudan\/wp-json\/wp\/v2\/media?parent=275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}