Skip to content

Instantly share code, notes, and snippets.

@pfn
Created November 20, 2015 01:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pfn/2c58af65505cb9b8dee1 to your computer and use it in GitHub Desktop.
Save pfn/2c58af65505cb9b8dee1 to your computer and use it in GitHub Desktop.
lint errors from VectorDrawables
> android:lint
[error] [NewApi] src\main\res\drawable\ic_add_circle_black_24dp.xml:1:<vector> requires API level 21 (current min is 9) or building with Android Gradle plugin 1.4 or higher
[error] <vector xmlns:android="http://schemas.android.com/apk/res/android"
[error] ^
[error] [NewApi] src\main\res\drawable\ic_add_circle_white_24dp.xml:1:<vector> requires API level 21 (current min is 9) or building with Android Gradle plugin 1.4 or higher
[error] <vector xmlns:android="http://schemas.android.com/apk/res/android"
[error] ^
[error] [NewApi] src\main\res\drawable\ic_history_black_24dp.xml:1:<vector> requires API level 21 (current min is 9) or building with Android Gradle plugin 1.4 or higher
[error] <vector xmlns:android="http://schemas.android.com/apk/res/android"
[error] ^
[error] [NewApi] src\main\res\drawable\ic_history_white_24dp.xml:1:<vector> requires API level 21 (current min is 9) or building with Android Gradle plugin 1.4 or higher
[error] <vector xmlns:android="http://schemas.android.com/apk/res/android"
[error] ^
[error] [NewApi] src\main\res\drawable\ic_message_black_24dp.xml:1:<vector> requires API level 21 (current min is 9) or building with Android Gradle plugin 1.4 or higher
[error] <vector xmlns:android="http://schemas.android.com/apk/res/android"
[error] ^
[error] [NewApi] src\main\res\drawable\ic_message_white_24dp.xml:1:<vector> requires API level 21 (current min is 9) or building with Android Gradle plugin 1.4 or higher
[error] <vector xmlns:android="http://schemas.android.com/apk/res/android"
[error] ^
[error] [NewApi] src\main\res\drawable\ic_mic_black_24dp.xml:1:<vector> requires API level 21 (current min is 9) or building with Android Gradle plugin 1.4 or higher
[error] <vector xmlns:android="http://schemas.android.com/apk/res/android"
[error] ^
[error] [NewApi] src\main\res\drawable\ic_mic_white_24dp.xml:1:<vector> requires API level 21 (current min is 9) or building with Android Gradle plugin 1.4 or higher
[error] <vector xmlns:android="http://schemas.android.com/apk/res/android"
[error] ^
[error] [NewApi] src\main\res\drawable\ic_open_in_browser_black_18dp.xml:1:<vector> requires API level 21 (current min is 9) or building with Android Gradle plugin 1.4 or higher
[error] <vector xmlns:android="http://schemas.android.com/apk/res/android"
[error] ^
[error] [NewApi] src\main\res\drawable\ic_open_in_browser_white_18dp.xml:1:<vector> requires API level 21 (current min is 9) or building with Android Gradle plugin 1.4 or higher
[error] <vector xmlns:android="http://schemas.android.com/apk/res/android"
[error] ^
[error] [NewApi] src\main\res\drawable\ic_person_pin_black_24dp.xml:1:<vector> requires API level 21 (current min is 9) or building with Android Gradle plugin 1.4 or higher
[error] <vector xmlns:android="http://schemas.android.com/apk/res/android"
[error] ^
[error] [NewApi] src\main\res\drawable\ic_person_pin_white_24dp.xml:1:<vector> requires API level 21 (current min is 9) or building with Android Gradle plugin 1.4 or higher
[error] <vector xmlns:android="http://schemas.android.com/apk/res/android"
[error] ^
[error] [NewApi] src\main\res\drawable\ic_send_black_24dp.xml:1:<vector> requires API level 21 (current min is 9) or building with Android Gradle plugin 1.4 or higher
[error] <vector xmlns:android="http://schemas.android.com/apk/res/android"
[error] ^
[error] [NewApi] src\main\res\drawable\ic_send_white_24dp.xml:1:<vector> requires API level 21 (current min is 9) or building with Android Gradle plugin 1.4 or higher
[error] <vector xmlns:android="http://schemas.android.com/apk/res/android"
[error] ^
[warn] [UnusedAttribute] src\main\AndroidManifest.xml:19:Attribute logo is only used in API level 11 and higher (current min is 9)
[warn] android:logo="@drawable/ic_appicon"
[warn] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[warn] [UnusedAttribute] src\main\res\drawable\selector_background.xml:5:Attribute state_activated is only used in API level 11 and higher (current min is 9)
[warn] <item android:state_activated="true"
[warn] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[warn] [UnusedAttribute] src\main\res\xml\widget_provider.xml:6:Attribute resizeMode is only used in API level 12 and higher (current min is 9)
[warn] android:resizeMode="horizontal|vertical"
[warn] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[warn] [UnusedAttribute] src\main\res\xml\widget_provider.xml:8:Attribute widgetCategory is only used in API level 17 and higher (current min is 9)
[warn] android:widgetCategory="keyguard|home_screen"/>
[warn] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[error] lint found 14 errors, 4 warnings
[success] Total time: 0 s, completed Nov 19, 2015 5:33:53 PM
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment