作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我一直在尝试构建该项目,但是在构建该项目时我一直面临问题,任何人都可以帮助我。
代码在下面
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Base.Theme.AppCompat" parent="Base.V26.Theme.AppCompat"/>
<style name="Base.Theme.AppCompat.Light" parent="Base.V26.Theme.AppCompat.Light"/>
<style name="Base.V26.Theme.AppCompat" parent="Base.V23.Theme.AppCompat">
<!-- We can use the platform styles on API 26+ -->
<item name="colorError">?android:attr/colorError</item>
</style>
<style name="Base.V26.Theme.AppCompat.Light" parent="Base.V23.Theme.AppCompat.Light">
<!-- We can use the platform styles on API 26+ -->
<item name="colorError">?android:attr/colorError</item>
</style>
<style name="Base.V26.Widget.AppCompat.Toolbar" parent="Base.V7.Widget.AppCompat.Toolbar">
<item name="android:touchscreenBlocksFocus">true</item>
<item name="android:keyboardNavigationCluster">true</item>
</style>
<style name="Base.Widget.AppCompat.Toolbar" parent="Base.V26.Widget.AppCompat.Toolbar"/>
</resources>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#000000</color>
<color name="colorPrimaryDark">#000000</color>
<color name="colorAccent">#FF4081</color>
</resources>
Android resource linking failed
/Users/arsalan/Downloads/Development/Pixlr/app/build/intermediates/incremental/mergeEditerDebugResources/merged.dir/values-v26/values-v26.xml:7: error: resource android:attr/colorError not found.
/Users/arsalan/Downloads/Development/Pixlr/app/build/intermediates/incremental/mergeEditerDebugResources/merged.dir/values-v26/values-v26.xml:11: error: resource android:attr/colorError not found.
/Users/arsalan/Downloads/Development/Pixlr/app/build/intermediates/incremental/mergeEditerDebugResources/merged.dir/values-v26/values-v26.xml:15: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
error: failed linking references.
最佳答案
确保在build.gradle中至少使用api级别26
编译版本26
buildToolsVersion '26 .0.2'
关于android - 资源链接失败/Android Studio College Project,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54828818/
我一直在尝试构建该项目,但是在构建该项目时我一直面临问题,任何人都可以帮助我。 代码在下面 ?android:attr/co
我使用过 google place api,因此我知道如何使用它来获得基础知识,但我如何获得 colleges 的列表附近,因为 google place api 还没有那个标签,他们有 school
我将Hibernate用于项目中的所有CRUD操作。它不适用于一对多和多对一关系。它给了我下面的错误。 org.hibernate.MappingException: Could not determ
我将 Hibernate 用于我项目中的所有 CRUD 操作。它不适用于一对多和多对一关系。它给了我以下错误。 org.hibernate.MappingException:无法确定类型:java.u
我是一名优秀的程序员,十分优秀!