这是该项目的"style.xml“。这是由libgdx项目设置预先生成的。这个想法开始说"@android:theme”缺失了,无法解析“@android:style/动画”、“@android:color/透明度”。
<resources>
<style name="GdxTheme" parent="@android:Theme">
<item name="android:windowBackground">"@android:color/transparent"</item>
<item name="android:colorBackgroundCacheHint">@null</item>
<item name="android:windowAnimationStyle">"@android:style/Animation"</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowFullscreen">true</item>
</style>
我尝试过:-invalidating缓存-delete workspace.xml -delete .idea文件夹-reinstall Android -reinstall Intellij -reload,这个项目来自gradle。
到目前为止什么都没起作用。
发布于 2015-10-20 19:06:01
资源引用的格式是@<resource_type>/<resource_name>。格式@android:<resource_type>/<resource_name>的工作方式相同,但引用的是平台资源。
@android:Theme的问题在于它缺少资源类型和正斜杠来从资源名称中描述该类型。
主题属于“样式”资源类型,所以您真正想要的是:
<style name="GdxTheme" parent="@android:style/Theme">
<!-- ... -->
</style>就"@android:style/Animation"和"@android:color/transparent"的问题而言--它们都是有效的资源引用,但是引用不应该被引号包围。引号会把它们变成字符串,而不是引用。只要把这些去掉,你就应该很好。
https://stackoverflow.com/questions/33244412
复制相似问题