danatechgithub4
danatechgithub4
`Missing class javax.lang.model.element.Element (referenced from: javax.lang.model.element.Element com.alibaba.android.arouter.facade.model.RouteMeta.rawType and 4 other contexts)` 以前用的-dontwarn javax.lang.model.element.** 已经不起作用了,兄弟们怎么办?
useReducer默认用mutableStateOf实现,我现在想用mutableStateListOf。 需求来自:https://zh-hans.react.dev/learn/scaling-up-with-reducer-and-context ``` kotlin package com.example.myapplication.task1 import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.width import androidx.compose.material3.Button import androidx.compose.material3.Checkbox import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Surface import androidx.compose.material3.Text...
正常情况下: ` val intent = Intent(this, SearchActivity::class.java) forActivityResult(intent) { LogUtils.e("111111111111111") } ` 是可以收到回调的,但是当在“开发者选项”中打开“不保留活动”来模拟内存回收的时候, 是收不到回调的,官方Activity Results API没问题。 讨论贴: https://juejin.cn/post/7081592111035858951#comment