Okay, so today I updated my SDK tools to level 22 (Yup, this late). Before I was on level 21 and wrote an app. Now after updating to level 22, I want to use android.support.v7.widget.CardView
API.
The problem is that when I import android.support.v7.widget.CardView
, Android Studio shows error saying "cannot resolve symbol". I used the search and found that there did exist a CardView
class in the android.support.v7.widget
package.
Moreover, in the android.support.v7.widget.Toolbar
API, I can't use some of the newer methods added like the setActionbar()
method.
I also can't seem to import the AppCompatActivity
class.
I have updated the Target API to level 22.
Can anyone offer some help?