Problems handling Vector Asset

1

Android Studio is returning this error when I add images to my project, but the selected images are the IDE's native icons.

    
asked by anonymous 22.01.2018 / 17:50

2 answers

0

You can put this value as default in your build.gradle:

defaultConfig{
   vectorDrawables.useSupportLibrary = true
}

and also places the appcompact on dependencies:

dependencies {
  compile 'com.android.support:appcompat-v7:26.1.0'
}
    
22.01.2018 / 18:03
0

I was able to solve my problem this way. First I put the image so I can color it. I hope it does not give more trouble: D

    
22.01.2018 / 19:25