小编Luk*_*ips的帖子

Kotlin 超类型列表中只能出现一个类

我在拥有两个超类时遇到了麻烦。当我添加 PreferenceFragment() 时,我收到错误:只有一个类可能出现在超类型列表中

关于如何解决这个问题有什么想法吗?

class MyAccountFragment @Inject constructor(): BaseFragment(), PreferenceFragment() {

    override fun onCreate(savedInstanceState: Bundle?) {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

    override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

    override fun initView() {
    }

    override fun initEvent() {
    }
}
Run Code Online (Sandbox Code Playgroud)

谢谢!

android kotlin

7
推荐指数
0
解决办法
9513
查看次数

标签 统计

android ×1

kotlin ×1