1 2 3 4 5 ··· 9 下一页

android compose viewModel 传参数

摘要: android compose viewModel 传参数 在MainActivity 里面可以用viewModels val userDao = db.userDao() val viewModel by viewModels<MyArticleViewModel>( factoryProduce 阅读全文
posted @ 2025-11-17 22:59 少杨 阅读(2) 评论(0) 推荐(0)

android Compose 使用 Icons

摘要: Icon(Icons.Rounded.Menu, contentDescription = "Localized description") dependencies { def composeBom = platform('androidx.compose:compose-bom:2025.10. 阅读全文
posted @ 2025-11-17 17:13 少杨 阅读(1) 评论(0) 推荐(0)

android 使用room

摘要: android 使用room 需要安装kts build.gradle.kts plugins { alias(libs.plugins.android.application) apply false alias(libs.plugins.kotlin.android) apply false a 阅读全文
posted @ 2025-11-05 21:27 少杨 阅读(5) 评论(0) 推荐(0)

jvmTarget: String' is deprecated. Please migrate to the compilerOptions DSL. More details are here: https://kotl.in/u1r8ln

摘要: android 编译提示警告 jvmTarget: String' is deprecated. Please migrate to the compilerOptions DSL. More details are here: https://kotl.in/u1r8ln 把 kotlinOpti 阅读全文
posted @ 2025-11-04 21:38 少杨 阅读(36) 评论(0) 推荐(0)

Unresolved reference 'ksp'

摘要: Unresolved reference 'ksp' ,ksp 报错ksp 版本列表 https://github.com/google/ksp/releasesksp-2.0.21-1.0.27 is too old for kotlin-2.2.21. Please upgrade ksp or 阅读全文
posted @ 2025-11-03 16:22 少杨 阅读(6) 评论(0) 推荐(0)

mysql 查询每个店铺的总金额和各个状态的总金额

摘要: 查询每个店铺的总金额和各个状态的总金额 SELECT shop_id,sum(amount),sum(if( status = 0,amount,0)) as sum1,sum(if( status = 1,amount,0)) as sum2,sum(if( status = 2,amount,0 阅读全文
posted @ 2025-10-15 18:36 少杨 阅读(5) 评论(0) 推荐(0)

android Test 报错: Method isLoggable in android.util.Log not mocked

摘要: android Test 报错: Method isLoggable in android.util.Log not mocked android { // ... testOptions { unitTests.isReturnDefaultValues = true } } 来源参考:https 阅读全文
posted @ 2025-10-02 17:57 少杨 阅读(14) 评论(0) 推荐(0)

lnmp 安装 fastamin 报内部500错误和404错误

摘要: lnmp 安装 fastamin 报内部500错误和404错误 lnmp 安装好后 500错误, open_basedir 的原因 vi /usr/local/nginx/conf/fastcgi.conf 修改为下面行 #fastcgi_param PHP_ADMIN_VALUE "open_ba 阅读全文
posted @ 2025-04-24 11:41 少杨 阅读(22) 评论(0) 推荐(0)

nginx 配置 uwsgi python 环境

摘要: nginx 配置 uwsgi 环境 nginx 配置 location / { proxy_pass http://127.0.0.1:8001; proxy_http_version 1.1; proxy_set_header Connection ""; proxy_connect_timeou 阅读全文
posted @ 2025-04-19 14:20 少杨 阅读(12) 评论(0) 推荐(0)

php 生成 pdf 和前端下载

摘要: php 生成 pdf 和前端下载 composer require mpdf/mpdf require_once __DIR__ . '/vendor/autoload.php'; $mpdf = new \Mpdf\Mpdf(); $mpdf->autoLangToFont = true; $mp 阅读全文
posted @ 2025-04-18 21:15 少杨 阅读(11) 评论(0) 推荐(0)
1 2 3 4 5 ··· 9 下一页