NDK integration is deprecated in the current plugin
Asked Answered
D

2

2

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 [email protected]. This error is occuring with cordova [email protected] 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
Derange answered 4/5, 2016 at 9:12 Comment(9)
Would you consider using Gradle version 2.13 and Android plugin version 2.1.0 ?Radloff
Sure if it works, how do I change that?Derange
@ Shinon Chan : Have you rebuild your project ?Wallinga
yes, i tried rebuild with ionic build android as well as rebuild project from android studio and sync project with gradle files, i'm not sure what i'm doing wrongDerange
@Shinon Chan : Do one thing : File -> Invalidate cache & restart ..!!Wallinga
still the same error....Derange
@ShinonChan : Can you post screenshot of where you have added gradle.properties ?Wallinga
imgur.com/agXPzoJDerange
Let us continue this discussion in chat.Wallinga
R
3

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.

Radloff answered 4/5, 2016 at 9:41 Comment(1)
i'm upgraded Gradle version 2.13 and Android plugin version 2.1.0 but it's still giving me the "NDK integration is deprecated in the current plugin", any ideas?Derange
I
0

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

Insinuation answered 1/1, 2019 at 10:53 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.