Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

generatedDensities Deprecated

While generating png images from vector drawable for different configuration(lower API than 21)... I'm using AndroidStudio2.0 preview5 and gradle:2.0.0-alpha5...

In build.gradle-

defaultConfig {
   ...
    //generate drawables from vectors
    generatedDensities = ['hdpi','xxhdpi']
}

generatedDensities is shown as deprecated by the IDE.

What is the new way to implement it?

like image 493
Arnav M. Avatar asked Jan 18 '16 12:01

Arnav M.


1 Answers

Seems like we should replace generatedDensities with vectorDrawables.generatedDensities at this point.

 defaultConfig {
    vectorDrawables.generatedDensities = ['hdpi','xxhdpi']
}
like image 171
Artur Dryomov Avatar answered Oct 12 '22 09:10

Artur Dryomov