NDK integration is deprecated in the current plugin

孤街醉人 提交于 2019-12-08 06:07:40

问题


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

回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/37023308/ndk-integration-is-deprecated-in-the-current-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!