I\'m using the Design Support Library 23.2. I\'ve added these lines in my build.gradle as my Gradle Plugin is version 1.5
defaultConfig {
applicat
there is multiple things which you have to care about First of all use:
defaultConfig {
vectorDrawables.useSupportLibrary = true
}
or
vectorDrawables {
useSupportLibrary = true
}
and Secondly use
Always use AppCompatImageView or Button because vector image is not supported by Simple ImageView
if all the above methods not worked then use
public class App extends Application {
@Override public void onCreate() {
super.onCreate();
// Make sure we use vector drawables
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
}
}
If you are using Activity then extend your Activity with AppCompatActivty
public final class MainActivity extends AppCompatActivity {
@Override protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}