- Home /
How to set Unity for android development?
I am using unity 2019 LTS version to build a Vuforia supported AR app. When I build for android, I get "Failed to merge manifest" error, so I tried this(Google Docs) method and downloaded latest Gradle 6 and replaced it with Unity's default gradle. Now, when I build my App, I get error that "NDK version 20.0.xxxx required found 22.0.xxxx" so build fails again. I can't find NDK 20.0 as there is only 20.1 available and with that build fails again.
Last Error Message : "UnityEditor.BuildPlayerWindow+BuildMethodException: 65 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bb] in :0 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in :0 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) "
I am using windows 10 and latest android studio with all platforms from Android 4.0 to Android 11(API level 30)
Answer by ahmedaniss · Nov 30, 2020 at 04:34 AM
problem fixed here : https://youtu.be/9N8a73tewxk
Answer by xxmariofer · Nov 24, 2020 at 11:22 AM
Hello, oyu can download android studio and download from there all NDK versions, but the required NDK for the unity version you can simply go to Unity Hub locate your unity version, click on the three dots menu and add modules, expand Android modules and install the Android SDK and NDK from there, then in the unity preference go to external tools and select in the NDK path the unity recommended path