我刚刚创建了一个新的 Android Studio 项目,我厌倦了在我的 Android 手机上运行默认项目。
当我运行该项目时,我收到一条错误消息:
样式包含错误条目的键:0x01010479
我厌倦了查找这个错误,人们说它与主题有关。
我用的手机安卓版本是4.0.4
用于布局xml页面。我正在使用 API 14,Android 4.0 对于主题,我使用的是 Holo。 Holo 主题没有出现在我的手机上,但它确实显示了“hello world”。
值/styles.xml:
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
</style>
</resources>
value-v21/styles.xml:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="android:Theme.Material.Light">
</style>
</resources>
list :
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.louis.myapplication" >
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MyActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
我从默认的“Hello World”项目中更改的是(API 14,Android 4.0)和(Holo 主题)。我的其他 Android 项目也有同样的错误。有谁知道我为什么会收到此错误? 让我尝试更新我的 SDK,希望对您有所帮助。
解决方法:更新SDK,问题解决!!!
最佳答案
您可以忽略此错误,除非某些内容未按照您喜欢的方式显示。
关于android - 样式包含错误条目 : 0x01010479 (Android Studio) 的键,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28140843/