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
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.
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.
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.
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.
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.
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.
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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With