I have a working draft.
- minSdkVersion 17
- com.android.tools.build: gradle: 2.3.3
- gradle 4.1
- Android Studio 3 Canary 6
I have in my gradle files:
defaultConfig { vectorDrawables.useSupportLibrary = true vectorDrawables.generatedDensities = [] }
I also call into action:
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true)
The application works fine. Now change to:
- com.android.tools.build: gradle: 3.0.0-alpha6
- add to
google() line repositories
Run gradle clean assembleDebug .
The application continues to work with devices with API> 20. But for API <21 (google android emulator) they crash when the application starts. I see a logcat error: Resources$NotFoundException: Resource ID #0x7f080058 (0x7f080058 - drawable abc_vector_test).
Why?
UPD 2017-07-19 . It has been fixed and released in com.android.tools.build: gradle: 3.0.0-alpha7
source share