János János - 2 days ago 5
Android Question

ClipData Cannot resolve symbol

enter image description here

Doing this tutorial, and when editing

DatabaseHelper.java
it says
ClipData.Rating.class
can not resolve. Why? How is it possible that for
Item
it works?

These are the setting for Android version. Can it cause issue?

minSdkVersion 15
targetSdkVersion 25

Answer

Why?

Presumably, you have an import statement for android.content.ClipData. It does not have static classes named Rating, UserSetting, or Message.

How is it possible that for Item it works?

Because android.content.ClipData does have an Item static class.

Comments