Dexguard 7.3.01 is incompatible with gradle 2.3.0

I am working on a project that uses Dexguard, but when I try to upgrade gradle to version 2.3.0, I get the following error message when syncing:

Error: no such property: sdkHandler for class: com.android.build.gradle.AppPlugin

Settings:

Dexguard version 7.3.01

com.android.tools.build: gradle: 2.3.0

gradle distribution3.3

Android Studio 2.3

PS: On gradle 2.2.0 I do not have this problem.

Thank.

+4
source share
1 answer

Chris will try the following after updating ur AS to 2.4 ...

ProjectStructure-> Project-> Change Android Plugin version to version 2.2.0.

: build.gradle( NOT build build.gradle) :

classpath 'com.android.tools.build:gradle:2.2.0'

Sdk build.gradle:

android{
    System.out.printf("ndkDirectory: %s                    \n", ndkDirectory);
 }

, !

0

Source: https://habr.com/ru/post/1674045/


All Articles