I have taken a pull from bitbucket and trying to run a project. While running the project it says the following lines:
ERROR: Failed to install the following Android SDK packages as some licences have not been accepted.
ndk;20.1.5948944 NDK (Side by side) 20.1.5948944
To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
Android studio is also installed new in the machine.
Android Studio has detected that your project requires the NDK (Native Development Kit - for C/C++ code building), but you don't have the NDK installed.
It was detected because you probably have something like this in your app/build.gradle file:
android {
externalNativeBuild {
cmake {
path "CMakeLists.txt"
}
}
}
More info:
You'll need to manually install the Android NDK tool, which is a large 930 MB download:


You may be prompted to install CMake next. Just follow the same process to install CMake. Or click the blue link in Build window: "Install CMake 3.XX.X". You should now be able to build your project.
Once you've installed the NDK and CMake and configured it, you should see new menu options for Android Studio ➔ Tools ➔ SDK Manager and AVD Manager.
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