After updating Android Studio to version 1.3.0 I am getting “NDK integration is deprecated in the current plugin” Error

前端 未结 4 835
野性不改
野性不改 2020-12-02 07:26

I have updated my Android Studio to version 1.3.0 before 3 days.

Before that I can use NDK and now I am getting error like ,

4条回答
  •  余生分开走
    2020-12-02 07:33

    Deprecated NDK is no longer supported. To avoid that error remove android.useDeprecatedNdk=true and do not make any white space in the Project Directory. If errors come again then edit the build.gradle(Module:app) and add those line like below:

     buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    sourceSets { main { jni.srcDirs = ['src/main/jni/','src/main/jniLibs/'] } }
    externalNativeBuild {
        ndkBuild {
            path 'build/intermediates/ndk/debug/Android.mk'
        }
    }
    

提交回复
热议问题