NDK at ~/Library/Android/sdk/ndk-bundle did not have a source.properties file

Ted James
May 11, 2024

--

I have updated Android Studio to 4.1 in Macbook but not able to run app after updating. It is giving following error

Execution failed for task ':app:stripDebugDebugSymbols'.
NDK at ~/Library/Android/sdk/ndk-bundle did not have a source.properties file

and don’t forget to mention latest ndk version if you seleted android{

ndkVersion: '25.1.8937393'

}

Solution

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 deprecated and also conflicts with path:

ndk.dir=~/Library/Android/sdk/ndk-bundle

Answered By — Krishna Meena

Answer Checked By — Marie Seifert (FixIt Admin)

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

--

--

Ted James

The world is my office, and every destination is my inspiration