Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 
like image 587
Krishna Meena Avatar asked Oct 15 '20 13:10

Krishna Meena


People also ask

Where can I find NDK location?

Android Studio installs all versions of the NDK in the android-sdk /ndk/ directory. Each version is located in a subdirectory with the version number as its name.

How do you add NDK in flutter?

The NDK version 20.0. 5594570 can be install manually by going into android studio -> SDK manager -> SDK tools . Select the show package detail checkbox. You will be able to see all the NDK versions available.

How do I remove NDK?

Go to the "SDK Tools" page in the "Android SDK" menu. REMEMBER to check the checkbox "Show Package Details" at the lower right corner. You'll see all the NDK's you had installed, Un-check the NDK you'd like to uninstall and click "OK" at the bottom right to uninstall the selected NDK.

Why am I getting NDK error in Android Studio?

This is random error from AS, which is encountered by few developers. Most likely, you don't have NDK linked in your Android Studio. In your Android Studio, Go to File -> Project Structure -> SDK Location -> Under "Android NDK Location", click on "Download" Android NDK Wait for download and re-build the project. Cheers.

How do I download NDK for my Android app?

Most likely, you don't have NDK linked in your Android Studio. In your Android Studio, Go to File -> Project Structure -> SDK Location -> Under "Android NDK Location", click on "Download" Android NDK Wait for download and re-build the project. Cheers. Show activity on this post.

How to check if NDK is installed or not?

Check whether Ndk location is specified or not in local.properties file. If not, go to the NDK location inside your sdk folder,if there are multiple ndk versions delete previous versions if you don't need. Go inside the latest version folder and check whether source.properties file is present or not.

How to set NDK version in Android Gradle?

The Android Gradle Plugin sets the NDK version by default, but if you need a specific version of the NDK, you can set android.ndkVersion in build.gradle. Show activity on this post. Me too! When I upgrade AS4.0.1---->4.1.1


1 Answers

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 
like image 102
Krishna Meena Avatar answered Nov 15 '22 23:11

Krishna Meena