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

Issue

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

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

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

Answered By – Krishna Meena

Leave a Comment