无法找到有关将 compileSdkVersion 更新为 24 的一些资源
Unable to find some resources on updating the compileSdkVersion to 24
我最近尝试将 compileSdkVersion
更新为 24
,将版本名称放入我的 app/build.gradle
中,还更新了其他库的版本。我使用的 buildToolsVersion
是 23.0.3
,我猜这是最新的。当我构建我的项目时,它无法给出构建无法找到下面列出的某些资源的错误:
- @drawable/abc_ic_voice_search_api_mtrl_alpha
- @drawable/abc_ic_clear_mtrl_alpha
- @drawable/abc_ic_voice_search_api_mtrl_alpha
这是SDK提供的内部资源,我已经使用了一段时间了。我不知道为什么现在失败了。有什么想法吗?
This are the internal resources from provided by the SDK
这是你的问题。
这些资源是支持库或框架私有的,您不能依赖它们。
所以现在编译器不允许你访问它们。
您可以在这里轻松获得相应的图标:https://design.google.com/icons/
并将它们导入您的项目。
我最近尝试将 compileSdkVersion
更新为 24
,将版本名称放入我的 app/build.gradle
中,还更新了其他库的版本。我使用的 buildToolsVersion
是 23.0.3
,我猜这是最新的。当我构建我的项目时,它无法给出构建无法找到下面列出的某些资源的错误:
- @drawable/abc_ic_voice_search_api_mtrl_alpha
- @drawable/abc_ic_clear_mtrl_alpha
- @drawable/abc_ic_voice_search_api_mtrl_alpha
这是SDK提供的内部资源,我已经使用了一段时间了。我不知道为什么现在失败了。有什么想法吗?
This are the internal resources from provided by the SDK
这是你的问题。
这些资源是支持库或框架私有的,您不能依赖它们。
所以现在编译器不允许你访问它们。
您可以在这里轻松获得相应的图标:https://design.google.com/icons/
并将它们导入您的项目。