gpt4 book ai didi

android - Android Studio for Marshmallow 中的 Gradle 错误

转载 作者:太空狗 更新时间:2023-10-29 15:35:57 24 4
gpt4 key购买 nike

我尝试构建我的应用程序,但出现以下错误,不确定如何解决

1) Error:(49, 91) error: cannot find symbol variable BOOKMARKS_URI
2) Error:(56, 94) error: cannot find symbol variable BookmarkColumns
3) Error:(3780, 27) error: cannot find symbol method setLatestEventInfo(Context,String,String,PendingIntent)

任何想法,如何克服它?

谢谢

最佳答案

Marshmallow 移除了对书签的支持

Browser Bookmark Changes

This release removes support for global bookmarks. The android.provider.Browser.getAllBookmarks() and android.provider.Browser.saveBookmark() methods are now removed. Likewise, the READ_HISTORY_BOOKMARKS and WRITE_HISTORY_BOOKMARKS permissions are removed. If your app targets Android 6.0 (API level 23) or higher, don't access bookmarks from the global provider or use the bookmark permissions. Instead, your app should store bookmarks data internally.

Reference
http://developer.android.com/about/versions/marshmallow/android-6.0-changes.html#behavior-bookmark-browser

关于android - Android Studio for Marshmallow 中的 Gradle 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32908703/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com