This bash script will install ndk r24 by jzinferno to AndroidIDE app.
- Install NDK r24 to AndroidIDE in one command :
cd && pkg upgrade && pkg install wget && wget https://github.com/MrIkso/AndroidIDE-NDK/raw/main/ndk-install.sh --no-verbose --show-progress -N && chmod +x ndk-install.sh && bash ndk-install.sh
- Edit or set
ndkVersion
in your build.gradle tondkVersion "24.0.8215888"
Warning CMake work on Android 10+
Demo
plugins {
id 'com.android.application'
}
android {
compileSdk 33
buildToolsVersion "33.0.0"
ndkVersion "24.0.8215888"
defaultConfig {
applicationId "com.myapplication"
minSdk 23
targetSdk 33
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
externalNativeBuild {
cmake {
path file('src/main/cpp/CMakeLists.txt')
}
}
}
dependencies {
...
}