Android studio
在构建项目时给出了以下错误:
C:\用户\ DELL \下载\登录与 - 谷歌加\ Android的登录与 - 谷歌加\程序\编译\ \中间体爆炸-AAR \ com.android.support \程序兼容性-V7 \ 23.0.1 \水库\抽拉\ abc_btn_check_material.xml
错误:(19,59)找不到与给定名称匹配的资源(at 'drawable',其值为'@ drawable / abc_btn_check_to_on_mtrl_015')。 错误:(20,30)找不到与给定名称匹配的资源(at 'drawable',其值为'@ drawable / abc_btn_check_to_on_mtrl_000')。
答案 0 :(得分:1)
资源:
$ curl -v http://localhost:8080/nullpointerexception
* STATE: INIT => CONNECT handle 0x6000572d0; line 1090 (connection #-5000)
* Added connection 0. The cache now contains 1 members
* Trying ::1...
* STATE: CONNECT => WAITCONNECT handle 0x6000572d0; line 1143 (connection #0)
* Connected to localhost (::1) port 8080 (#0)
* STATE: WAITCONNECT => SENDPROTOCONNECT handle 0x6000572d0; line 1240 (connection #0)
* STATE: SENDPROTOCONNECT => DO handle 0x6000572d0; line 1258 (connection #0)
> GET /nullpointerexception HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.45.0
> Accept: */*
>
* STATE: DO => DO_DONE handle 0x6000572d0; line 1337 (connection #0)
* STATE: DO_DONE => WAITPERFORM handle 0x6000572d0; line 1464 (connection #0)
* STATE: WAITPERFORM => PERFORM handle 0x6000572d0; line 1474 (connection #0)
* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 404 Not Found
* Server Apache-Coyote/1.1 is not blacklisted
< Server: Apache-Coyote/1.1
< Content-Length: 0
< Date: Wed, 16 Dec 2015 17:33:37 GMT
<
* STATE: PERFORM => DONE handle 0x6000572d0; line 1632 (connection #0)
* Curl_done
* Connection #0 to host localhost left intact
和
abc_btn_check_to_on_mtrl_015
是 abc_btn_check_to_on_mtrl_000
的一部分,但现在作为私人制作,您必须从DrawerActivity
扩展活动
检查这个帖子: https://github.com/Suleiman19/Android-Material-Design-for-pre-Lollipop/issues/12
使用新的支持库版本,很多这些默认资源 引用现在标记为私有。这意味着你不能再这样了 参考他们。传入您自己的Drawable资源来解决问题。 为了跨活动维护导航抽屉,请使这些活动扩展DrawerActivity。