Solution : This is a nasty one as there is no quick fix for this. This means that in your project under Assets/Plugins/Android there are multiple AndroidManifest.xml files, probably from the different plugins that you use. So the build is commencing peacefully and all looks good and suddenly you get this dreaded message. You just have to be careful and observe what changes each plugin makes to the xml and ensure that those changes do not get overwritten or changed or removed.ģa. You need to be careful in this regard to ensure that all the changes required by all the plugins are in the final main AndroidManifest.xml. Some plugins (like Heyzap etc.) might provide you a copy of AndroidManifest.xml and ask you to put it in your Assets/Plugins/Android/ folder. Some plugins like Facebook, Google Play Games, Fabric etc provide a button in their settings to update the xml file. Some plugins would need to make some changes or additions to the main AndroidManifest.xml. It is very likely that multiple plugins are being used in your project. This is not a problem but just a caution. Merging the different AndroidManifest.xml of the various plugins Hopefully this should not be an issue in the newer versions of Unity.Ģ. For this, I keep two Android SDK folders in my Library, one for the Android Studio with the latest build tools and one for Unity with downgraded tools folder. Of course, now the Android SDK Manager will complain that the latest build tools are not installed. Rerun the build and this time it should not give this error. Unzip the file and replace the ‘tools’ folder in your Android SDK location ( /Library/Android/sdk/tools). ![]() (google for links to download windows or linux versions) But I doesn’t seem to be available for download now. First download the compatible SDK Tools version. Now Android Studio would have installed the latest version which doesn’t work with Unity. The problem sems to be that unity is compatible with a certain version of Android SDK Tools ( /Library/Android/sdk/tools). Solution : No need to double check the sdk path as it would be correct (actually it wouldn’t hurt to make sure!). Please make sure the android sdk path is correct. The build does not take off and you see this error message : Then you correctly setup the path to the android SDK in the Unity preferences and eagerly hit the build button! And you hit the first roadblock □ The usual way to do it is to install the Android Studio which does all the work for you by installing the latest SDK usually on the default path of /Library/Android. So to build for Android, you need to install the Android SDK. In order to help out people who could possibly run into the same issues, I am going to list them out with the solutions. It was apparent that quite a few people were facing the same issues on the internet. I ran into a quite a few and spent a few days fixing all the stuff before managing to get the build up and running. ![]() A bit complex project is likely to run into a few issues before you get the final build. However, chances are that it won’t be as simple as that. ![]() Unity will build the apk for you to distribute! If you have a small project, this should work beautifully. ![]() All that you have to do is switch the build platform, set the appropriate keys and passwords, set the android sdk paths and hit the build button. Since I was using Unity, it allows for cross platform development and the same project can be build for Android as well. Mustachio 2 on iOS, it was time to focus on android build as well.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |