androidandroid-studioandroid-ndkbuild.gradle

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


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