上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 179 下一页
摘要: 一,配置 在AndroidManifest.xml中添加FileProvider,如下: <provider android:name="androidx.core.content.FileProvider" android:authorities="com.example.okdemo1.file 阅读全文
posted @ 2025-06-07 10:50 刘宏缔的架构森林 阅读(56) 评论(0) 推荐(0)
摘要: 一,报错信息: 编译时报错: Failed to resolve: com.zhihu.android:matisse:0.5.3-beta3 二,解决: 在settings.gradle中添加: maven { url 'https://jitpack.io' } maven { url 'htt 阅读全文
posted @ 2025-06-07 10:50 刘宏缔的架构森林 阅读(159) 评论(0) 推荐(0)
摘要: 一,安装第三方库 库地址: https://mvnrepository.com/artifact/com.zhihu.android/matisse 编辑 build.gradle,添加: // https://mvnrepository.com/artifact/com.zhihu.android 阅读全文
posted @ 2025-06-07 10:50 刘宏缔的架构森林 阅读(118) 评论(0) 推荐(0)
摘要: 一,安装第三方库 库地址: https://mvnrepository.com/artifact/androidx.media3/media3-exoplayer 在build.gradle中添加: implementation "androidx.media3:media3-exoplayer:1 阅读全文
posted @ 2025-06-07 10:50 刘宏缔的架构森林 阅读(210) 评论(0) 推荐(0)
摘要: 一,区别 var var 关键字用于声明一个可变的变量,即这个变量的值可以在程序运行过程中被改变。 val val 关键字用于声明一个不可变的变量,即这个变量的值在初始化后不能被改变。 使用 val 声明的变量必须在声明时或者构造器中初始化,一旦初始化后,其值就不能被改变。 需要注意的地方:val声 阅读全文
posted @ 2025-06-02 12:27 刘宏缔的架构森林 阅读(215) 评论(0) 推荐(0)
摘要: 一,java转kotlin code->Convert Java File to Kotlin File 如图: 弹出提示,需要在项目中配置kotlin 确认 提示一些需要修正 二,一个例子: package com.example.okdemo1.activity import android.o 阅读全文
posted @ 2025-06-02 12:27 刘宏缔的架构森林 阅读(234) 评论(0) 推荐(0)
摘要: 一,安装第三方库 官方地址: https://mvnrepository.com/artifact/com.github.hackware1993/MagicIndicator 编辑 build.gradle,添加: // https://mvnrepository.com/artifact/com 阅读全文
posted @ 2025-06-02 12:27 刘宏缔的架构森林 阅读(253) 评论(0) 推荐(0)
摘要: 一,报错信息 * What went wrong: Execution failed for task ':app:mergeDebugNativeLibs'. > Could not resolve all files for configuration ':app:debugRuntimeCla 阅读全文
posted @ 2025-06-02 12:27 刘宏缔的架构森林 阅读(614) 评论(0) 推荐(0)
摘要: 一,代码 activity xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/ 阅读全文
posted @ 2025-06-02 12:27 刘宏缔的架构森林 阅读(17) 评论(0) 推荐(0)
摘要: 一,代码: activity xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com 阅读全文
posted @ 2025-06-02 12:27 刘宏缔的架构森林 阅读(40) 评论(0) 推荐(0)
上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 179 下一页