Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unity 2019.2.0f1 Unable to locate Android NDK

I am trying to test in app purchases in Unity 2019.2.0f1, and when I try to build the apk, I keep getting error: Unable to locate Android NDK even though I downloaded Android NDK r16b and changed the path in Edit --> Preferences --> External tools

I searched alot and tried to install more than one version of NDK, and also tried to add the path of NDK in Environment Variables in settings of My Computer but the error kept showing.

Can someone please tell me how to solve this problem ?

Thanks.

like image 771
Mike Avatar asked Aug 04 '19 15:08

Mike


1 Answers

If you are using Unity Hub, you can just check the box where it sais add android support, that downloads everything you need for android development automatically.

You can see this option under modules

like image 97
mihoci10 Avatar answered Oct 08 '22 18:10

mihoci10