macos NDK at /Users/nick/Library/Android/sdk/ndk-bundle did not have a source.properties file code example
Example 1: NDK at /Users/Library/Android/sdk/ndk/21.1.6352462 did not have a source.properties file
#1- In build.gradle file add ndkVersion
android {
ndkVersion '21.1.6528147'
}
#2- In local.properties remove ndk.dir
ndk.dir=~/Library/Android/sdk/ndk-bundle
Example 2: NDK at Library/Android/sdk/ndk-bundle did not have a source.properties file
After specifying ndk version in build.gradle file it is working
android {
ndkVersion '21.3.6528147'
}
And inside local.properties remove the following since it's deprecatedand also conflicts with path:
ndk.dir=~/Library/Android/sdk/ndk-bundle