I can't generate native-debug-symbols file using java 11. I changed java version to 1.8 but get error because Gradle required version 11. Help me, please. Thanks all. This is my build.gradle (app level):
plugins {
id 'com.android.application'
}
android { publishNonDefault true compileSdkVersion 31 ndkVersion "22.1.7171670"
defaultConfig {
applicationId "com.psoft.discoveryar"
minSdk 24
targetSdk 31
multiDexEnabled = true
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
signingConfig signingConfigs.debug
ndk {
debugSymbolLevel 'FULL'
}
externalNativeBuild {
cmake {
version = "3.18.1"
}
}
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
buildFeatures {
viewBinding true
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
implementation 'androidx.navigation:navigation-fragment:2.3.5'
implementation 'androidx.navigation:navigation-ui:2.3.5'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}