Android Build Error For Values-b+sr+latn
Solution 1:
Try this in build.gradle
aaptOptions {
ignoreAssetsPattern "!values-b+sr+Latn"
}
Solution 2:
To expand on powder366's answer, and the comment, since I don't have the rep to comment myself.
Inside the Gradle Script called 'build.gradle' for the Project:Name, there is an 'android' section with brackets. Inside those brackets you can add
aaptOptions { ignoreAssetsPattern "!values-b+sr+Latn" }
So you'd end up with something like
android {
aaptOptions {
ignoreAssetsPattern "!values-b+sr+Latn"
}
}
That fixed it for me right away, when Rebuilding the project
Solution 3:
Some background
Android 7.0 (API level 24) introduced support for BCP 47 language tags, which you can use to qualify language- and region-specific resources. A language tag is composed from a sequence of one or more subtags, each of which refines or narrows the range of language identified by the overall tag. For more information about language tags, see Tags for Identifying Languages.
To use a BCP 47 language tag, concatenate b+ and a two-letter ISO 639-1 language code, optionally followed by additional subtags separated by +.
Examples:
- b+en
- b+en+US
- b+es+419
https://developer.android.com/guide/topics/resources/providing-resources.html#QualifierRules
How to fix this
Since this feature was introduced in API 24 I suspect updating build tools to at least 24 would resolve the issue.
android {
buildToolsVersion "27.0.3"
}
Latest Android plugin for Gradle will take care of build tools version automatically so you can remove the line altogether.
Post a Comment for "Android Build Error For Values-b+sr+latn"