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

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


On the "v7-appcompat" library:

preferences -> Android Lint Preferences

Search for "Instantiatable" and set to Warning.


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.


Go to appcompat_v7 library -> Properties -> Android Lint Preferences -> Instantiatable -> Select "Warning" severity.

enter image description here

Android Lint Checks

Instantiatable Summary: Ensures that classes registered in the manifest file are instantiatable

Priority: 6 / 10 Severity: Warning Category: Correctness

Activities, services, broadcast receivers etc. registered in the manifest file must be "instiantable" by the system, which means that the class must be public, it must have an empty public constructor, and if it's an inner class, it must be a static inner class.