androidcordovaionic-frameworkandroid-ndkcrosswalk

NDK integration is deprecated in the current plugin


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.

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

Solution

  • 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.