NDK integration is deprecated in the current plugi

2019-05-31 00:18发布

I am using Ionic and I never had this problem before I added Crosswalk Web View. I also don't have a problem when I use cordova android@4.1. This error is occuring with cordova android@5.1.1 with all versions of crosswalk.

  • Android Studio v2.1
  • Gradle Version v2.2.1
  • Android Plugin Version v1.5.0

I am getting this error in Android Studio when I try to sync my gradle. I am using lastest revision of sdk-23 and ndk tools.

NDK integration is deprecated in the current plugin
 Error:(186, 0) Consider trying new experimental plugin
 Set "android.useDeprecatedNdk=true" in gradle.properties to continue using the current NDK integration

I added gradle properties and set "android.useDeprecatedNdk=true" and I get this error.

Gradle 'android' project refresh failed
  Error: exception during working with eternal system

2条回答
戒情不戒烟
2楼-- · 2019-05-31 00:54

I resolved this problem on Android studio 3.2.1 with updating Gradle and Android plugins version to

Gradle Vesion 4.6

Android plugin version 3.2.1

enter image description here

查看更多
祖国的老花朵
3楼-- · 2019-05-31 01:01

You could use Android plugin version 2.1.0

In your build.gradle :

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath "com.android.tools.build:gradle:2.1.0"
    }
}

You need to install gradle 2.13 on your machine. Android plugin 2.0.0 and upper does not work with gradle version below 2.9 included.

https://services.gradle.org/distributions/gradle-2.13-bin.zip

You may have more changes to do according to your gradle build script implementation.

查看更多
登录 后发表回答