aman jain
aman jain

Reputation: 1

Need to add support for API Level 25

So I am working on an SDK , one of our users has an android app which runs in API Level 25. Now as soon as he adds our sdk as a dependency, the build fails with the following error

../../.gradle/caches/transforms-1/files-1.1/appcompat-v7-25.4.0.aar/724f3e33e3a015bf03bd0343723b0f2d/res/values/values.xml

error: resource android:attr/fontStyle not found. Message{kind=ERROR, text=error: resource android:attr/fontStyle not found., sources=[/Users/amanjn38/.gradle/caches/transforms-1/files-1.1/appcompat-v7-25.4.0.aar/724f3e33e3a015bf03bd0343723b0f2d/res/values/values.xml:214:5-69], original message=, tool name=Optional.of(AAPT)}

error: resource android:attr/font not found. Message{kind=ERROR, text=error: resource android:attr/font not found., sources=[/Users/amanjn38/.gradle/caches/transforms-1/files-1.1/appcompat-v7-25.4.0.aar/724f3e33e3a015bf03bd0343723b0f2d/res/values/values.xml:214:5-69], original message=, tool name=Optional.of(AAPT)}

error: resource android:attr/fontWeight not found. Message{kind=ERROR, text=error: resource android:attr/fontWeight not found., sources=[/Users/amanjn38/.gradle/caches/transforms-1/files-1.1/appcompat-v7-25.4.0.aar/724f3e33e3a015bf03bd0343723b0f2d/res/values/values.xml:214:5-69], original message=, tool name=Optional.of(AAPT)}

error: resource android:attr/fontVariationSettings not found. Message{kind=ERROR, text=error: resource android:attr/fontVariationSettings not found., sources=[/Users/amanjn38/.gradle/caches/transforms-1/files-1.1/appcompat-v7-25.4.0.aar/724f3e33e3a015bf03bd0343723b0f2d/res/values/values.xml:214:5-69], original message=, tool name=Optional.of(AAPT)}

error: resource android:attr/ttcIndex not found. Message{kind=ERROR, text=error: resource android:attr/ttcIndex not found., sources=[/Users/amanjn38/.gradle/caches/transforms-1/files-1.1/appcompat-v7-25.4.0.aar/724f3e33e3a015bf03bd0343723b0f2d/res/values/values.xml:214:5-69], original message=, tool name=Optional.of(AAPT)}

This is the only dependency I have in my sdk

implementation 'androidx.core:core:1.0.0'

The user doesn't want to upgrade the API Level. And I stopped using appcompat because it is deprecated.

I am trying to figure out a way to support API Level 25.

Upvotes: 0

Views: 108

Answers (0)

Related Questions