How To Set ANDROID_NDK_HOME So That Android Studio Does Not Ask For Ndk Location?
Solution 1:
1.Check the NDK Path.
Select the menu File > Project Structure > SDK Location
, Android NDK Location
if it is not set yet, then click ...
, and browse to your NDK location and click "OK" (you may also choose "download").
2.To have it edit the local.properties file of your project
ndk.dir = YOUR_NDK_PATH
Set a Environment variable for your system
ANDROID_NDK_HOME = "YOUR_PATH_TO_LOCATE_NDK_BUNDLE"
default if you downloaded from SDK manager then it will be
"YOUR_SDK_PATH/android-sdk-windows\ndk-bundle"
Once you set once. If will by default use the settings for Ndk location for the all your android projects too.
Solution 2:
Solution 3:
File > Project Structure > SDK Location Download the ndk and then sync the project hope it will solve the problem
Solution 4:
I didn't use ndk-bundles in my Project, but got this issue anyway.
I solved it like this: Go to your sdk.dir (maybe have a look into local.properties). If you don't use ndk, you shouldn't see an /ndk-bundle directory. If it's appear in your /sdk-Directory, look into it (should be emtpy). No remove this ndk-bundle Folder.
After that, my error-messages are gone.
Solution 5:
Set ndk folder location in local.properties file
ndk.dir=C:/Users/{username}/AppData/Local/Android/Sdk/ndk/21.3.6528147
Happy Fluttering ....
Post a Comment for "How To Set ANDROID_NDK_HOME So That Android Studio Does Not Ask For Ndk Location?"