本文介绍了某些问题buildToolsVersion 23.0.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目的build.gradle 是:

...
compileSdkVersion 21
buildToolsVersion "22.0.1"
...

和所有的东西是好的,但是当我将其更改为最新的 compileSdkVersion 23 buildToolsVersion23.0.1一些类,如:

and all thing is okay, but when I change it to latest compileSdkVersion 23 and buildToolsVersion "23.0.1" some classes like:

Browser.BookmarkColumns  cannot resolve "BookmarkColumns"

notification.setLatestEventInfo(..) cannot resolve "setLatestEventInfo"

和...


什么是问题,这最后的构建工具的版本,我该如何解决?

and ...
What is issue with this last build tools version and how can I resolve that?

推荐答案

setLatestEventInfo 是pcated一段时间去$ P $,并自23它已被删除。使用建设者,而不是:<一href=\"http://stackoverflow.com/questions/16852270/how-to-implement-the-de$p$pcated-methods-of-notification\">How执行通知的德precated方法

setLatestEventInfo was deprecated for some time, and since 23 it was removed. Use builder instead: How to implement the deprecated methods of Notification

至于 provider.Browser.BookmarkColumns ,它是在23 API删除,并没有更换。

As for provider.Browser.BookmarkColumns, it was removed in api 23, and there is no replacement.

这篇关于某些问题buildToolsVersion 23.0.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 23:46