Some test text!

Loading...
Guides
Why do I need to enable vectorDrawables support for my app?

Why do I need to enable vectorDrawables support for my app?

This tutorial only applies to Xamarin.Android.

The PDFTron Android SDK uses vector drawables for all its image resources. In order to support vector drawables on devices running Android versions lower than Android 5.0 (API level 21), you will need set vectorDrawables.usesSupportLibrary = true in your application module's build.gradle file. If your Android app's minimum SDK level is 21 or above, you will not need to set this flag. You can learn more about vector drawable resources in Android here.

Example:

android {
    defaultConfig {
        ...
        multiDexEnabled true
+       vectorDrawables.useSupportLibrary = true
        manifestPlaceholders = [pdftronLicenseKey:PDFTRON_LICENSE_KEY]
    }
    ...
}

Get the answers you need: Support

Upcoming Webinar: SDK Features Preview and Live Run-Through | July 14, 2022 at 11 am PT

PDFTron SDK

The Platform

NEW

© 2022 PDFTron Systems Inc. All rights reserved.

Privacy

Terms of Use