提问人:Manuel AS 提问时间:3/7/2023 更新时间:3/8/2023 访问量:41
为什么 Android Studio 建议“移至顶级”?
Why does Android Studio recommend "Move to top level"?
问:
我有一个 ToolBar (ToolBarView.kt) 的类,它里面有一个对象“object ToolbarBinding { ...”。在这个对象中,我有:
Android Studio 建议我“移动到顶级”,当我这样做时,它看起来像这样:
With this, so that there is no error, I remove "@JvmStatic". But, I don't understand why it advises me to "Move to top level" nor why when I move it, I have to remove "@JvmStatic".
Thanks for the answers in advance :)
我已经在网上搜索了类似的案例和查询,但我没有找到答案
答:
评论