我试图在我的应用程序中添加集成 Fabric-Twiiter
登录。在向导过程中,Fabric 在我的项目中添加了一些内容。
从那时起我收到此错误:
Error:Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Material.Light'.
在文件v32\values.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- From: file:/Users/android/workspace/jenkins/workspace/fabric-android-staging-release/sdk/kits/digits/src/main/res/values-v21/themes.xml -->
<eat-comment/>
<style name="Digits_default" parent="@android:style/Theme.Material.Light">
<item name="dgts__accentColor">?android:attr/colorAccent</item>
</style>
</resources>
我不知道它从哪里来,也不知道该怎么办,请帮忙。
最佳答案
这是一个 Material 设计主题,可以在 Android 的 API 21 中找到。您需要确保在 SDK 工具中安装了该 API 级别,然后在 build.gradle 文件中更改您的compileSdkVersion:
android {
...
compileSdkVersion 21
...
}
您可能还需要调整 targetSdkVersion,但我认为我不必这样做。
关于android - Fabric 添加款式缺失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27785592/