1

I just updated Android Studio from 0.8.9 to 1.0.2, did the changes specified in the release document. Everything works fine except that I am getting the following error

Error:(32, 0) No such property: useAaptPngCruncher for class: com.android.build.gradle.internal.dsl.AaptOptions_Decorated

if I use

aaptOptions.useAaptPngCruncher = true

in gradle. Could anyone help me on this ?

Thanks.

reVerse
  • 35,075
  • 22
  • 89
  • 84
MobileAppDeveloper
  • 1,048
  • 2
  • 16
  • 27
  • yeah things changed from 0.8 to 1.x - looking for an answer myself... – slott Jan 06 '15 at 13:25
  • You can find the answer you are looking for here: http://stackoverflow.com/questions/27369959/upgraded-to-android-studio-1-0-gradle-1-0-0-aapt-makes-png-images-larger-if-p – slott Jan 06 '15 at 13:26

1 Answers1

0

In Android Plugin for Gradle 2.1.0 and above, use cruncherEnabled instead of useAaptPngCruncher.

Documentation here.

Henry
  • 17,490
  • 7
  • 63
  • 98