如何将类更改为公共(public)类并消除此消息?
Description Resource Path Location Type
This class should be public (android.support.v7.internal.widget.ActionBarView.HomeView) BootleJFL line 1 Android Lint Problem
最佳答案
可实例化
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.
确保您的 v7-appcompat
库将其设置设置为“警告”(或“忽略”)。
关于java - 如何将类(class)更改为公开类(class)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24968622/