未解析的引用:uiMode I saveToDataStore

Unresolved reference : uiMode I saveToDataStore

提问人:Salih AbdAlrahman 提问时间:3/28/2023 更新时间:3/28/2023 访问量:35

问:

我是编程初学者,我面临着这组代码的问题,我无法理解问题并解决它,知道代码已经准备好了,不是我写的

package www.spikeysanju.jetquotes.view


import androidx.lifecycle.lifecycleScope
import dagger.hilt.android.AndroidEntryPoint
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.launch
import www.spikeysanju.jetquotes.data.preference.UIModeImpl
import www.spikeysanju.jetquotes.navigation.NavGraph
import www.spikeysanju.jetquotes.ui.JetQuotesTheme

import www.spikeysanju.jetquotes.R


@AndroidEntryPoint
class MainActivity : AppCompatActivity() {
    @Inject
    lateinit var uiModeDataStore: UIModeImpl

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        this.setContent {
            JetQuotesMain()
        }
        // observe theme change
        observeUITheme()

enter image description here

enter image description here

[enter image description here] (https://i.stack.imgur.com/2f7pm.jpg)


Android Kotlin 调试 未解析 - 外部

评论


答: 暂无答案