This class should be public (android.support.v7.internal.widget.ActionBarView.HomeView)

前端 未结 7 1201
予麋鹿
予麋鹿 2020-12-29 04:11

I am trying to create a Android Application which uses 3 spinners. I keep getting this error and I can\'t figure out how to fix it. This class should be public (and

7条回答
  •  心在旅途
    2020-12-29 04:55

    If you are using Eclipse:

    Project > Clean > OK
    

    Or Try:

    Preferences -> Android Lint Preferences
    

    Search for Instantiatable and set as Warning.

    http://developer.android.com/tools/debugging/improving-w-lint.html

    This worked for me.

提交回复
热议问题