gpt4 book ai didi

android - 错误 : String types not allowed (at 'fail' with value) @values/values. xml

转载 作者:行者123 更新时间:2023-11-29 15:06:57 29 4
gpt4 key购买 nike

我正在为我的应用创建一个带有 Twitter 帐户的登录页面。当我构建我的项目时会发生上述错误。

values/strings.xml

<style name="Base.TextAppearance.AppCompat.Medium">
<item name="android:textSize">@dimen/abc_text_size_medium_material</item>
<item name="android:textColor">?android:attr/textColorSecondary</item>
</style>

最佳答案

不要

values/strings.xml

错误的路径。将其放在您的样式部分。

A style is defined in an XML resource that is separate from the XML that specifies the layout. This XML file resides under res/values/ directory of your project and will have as the root node which is mandatory for the style file.

http://www.tutorialspoint.com/android/android_styles_and_themes.htm

关于android - 错误 : String types not allowed (at 'fail' with value) @values/values. xml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36277891/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com