Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle Errors in Android Studio for Marshmallow

I tried to build my app and I am getting below error, not sure, how to resolve it

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)

Any idea, how to get over it?

Thanks

like image 900
user45678 Avatar asked May 20 '26 06:05

user45678


1 Answers

Marshmallow removed the support for the bookmarks

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

like image 192
Mattia Maestrini Avatar answered May 21 '26 20:05

Mattia Maestrini