摘要:
一,安装第三方库 库地址: https://mvnrepository.com/artifact/com.github.li-xiaojun/XPopup 编辑build.gradle,添加: // https://mvnrepository.com/artifact/com.github.li-x 阅读全文
posted @ 2025-06-07 11:18
刘宏缔的架构森林
阅读(337)
评论(0)
推荐(0)
摘要:
一,gradle中的三种依赖 看例子: dependencies { //①.依赖当前项目下的某个模块[子工程] implementation project(':subject01') //②.依赖本地的某个jar文件 implementation files('libs/foo.jar', 'l 阅读全文
posted @ 2025-06-07 11:18
刘宏缔的架构森林
阅读(25)
评论(0)
推荐(0)
摘要:
一,implementation 配置 定义:implementation 是一种依赖配置,适用于那些仅在当前模块内部使用的依赖。传递性:当一个模块使用 implementation 声明依赖时,这个依赖不会被暴露给该模块的消费者(即依赖此模块的其他模块)。这意味着,如果模块 A 使用 implem 阅读全文
posted @ 2025-06-07 11:18
刘宏缔的架构森林
阅读(81)
评论(0)
推荐(0)
摘要:
一,安装第三方库 https://mvnrepository.com/artifact/com.google.android.flexbox/flexbox 编辑build.gralde,添加: // https://mvnrepository.com/artifact/com.google.and 阅读全文
posted @ 2025-06-07 11:18
刘宏缔的架构森林
阅读(161)
评论(0)
推荐(0)
摘要:
一,代码: 如果同时在属性中同时设置了: android:layout_margin="10dp" android:layout_marginTop="30dp" 则只有layout_margin生效,layout_marginTop无效,并不会覆盖layout_margin的值.如果layout_ 阅读全文
posted @ 2025-06-07 11:18
刘宏缔的架构森林
阅读(32)
评论(0)
推荐(0)
摘要:
一,代码: 样式文件位置: 内容:注意:name用来供调用 <?xml version="1.0" encoding="utf-8"?> <resources xmlns:android="http://schemas.android.com/apk/res/android"> <style nam 阅读全文
posted @ 2025-06-07 11:18
刘宏缔的架构森林
阅读(13)
评论(0)
推荐(0)
摘要:
一,安装第三方库 库地址: https://mvnrepository.com/artifact/com.github.barteksc/android-pdf-viewer 编辑build.gradle,添加: // https://mvnrepository.com/artifact/com.g 阅读全文
posted @ 2025-06-07 11:18
刘宏缔的架构森林
阅读(302)
评论(0)
推荐(0)
摘要:
一,代码: xml:只有一个按钮 java: package com.example.okdemo1.activity; import android.content.Intent; import android.os.Bundle; import android.os.Environment; i 阅读全文
posted @ 2025-06-07 11:18
刘宏缔的架构森林
阅读(190)
评论(0)
推荐(0)
摘要:
一,打开device explorer 二,找到文件后保存 阅读全文
posted @ 2025-06-07 11:18
刘宏缔的架构森林
阅读(14)
评论(0)
推荐(0)
摘要:
一,安装第三方库 库地址 https://mvnrepository.com/artifact/com.github.nanchen2251/CompressHelper 编辑 build.gradle,添加 // https://mvnrepository.com/artifact/com.git 阅读全文
posted @ 2025-06-07 11:18
刘宏缔的架构森林
阅读(35)
评论(0)
推荐(0)
摘要:
一,代码: xml上只有一个按钮 java代码: package com.example.okdemo1.activity; import android.Manifest; import android.content.Context; import android.content.Intent; 阅读全文
posted @ 2025-06-07 10:50
刘宏缔的架构森林
阅读(35)
评论(0)
推荐(0)
摘要:
一,代码: 添加在AndroidManifest.xml中的FileProvider <provider android:name="androidx.core.content.FileProvider" android:authorities="com.example.okdemo1.filepr 阅读全文
posted @ 2025-06-07 10:50
刘宏缔的架构森林
阅读(71)
评论(0)
推荐(0)
摘要:
一,报错信息 Failed to resolve: com.github.tbruyelle:rxpermissions:0.12 Show in Project Structure dialog Affected Modules: app 二,原因 需要把它所属的仓库添加到我们的gradle中但点 阅读全文
posted @ 2025-06-07 10:50
刘宏缔的架构森林
阅读(1624)
评论(0)
推荐(0)
摘要:
一,代码 xml只有一个按钮 java: package com.example.okdemo1.activity; import android.Manifest; import android.content.Intent; import android.content.pm.PackageMa 阅读全文
posted @ 2025-06-07 10:50
刘宏缔的架构森林
阅读(60)
评论(0)
推荐(0)
摘要:
一,配置 在AndroidManifest.xml中添加FileProvider,如下: <provider android:name="androidx.core.content.FileProvider" android:authorities="com.example.okdemo1.file 阅读全文
posted @ 2025-06-07 10:50
刘宏缔的架构森林
阅读(46)
评论(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
刘宏缔的架构森林
阅读(131)
评论(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
刘宏缔的架构森林
阅读(100)
评论(0)
推荐(0)
摘要:
一,安装第三方库 库地址: https://mvnrepository.com/artifact/androidx.media3/media3-exoplayer 在build.gradle中添加: implementation "androidx.media3:media3-exoplayer:1 阅读全文
posted @ 2025-06-07 10:50
刘宏缔的架构森林
阅读(180)
评论(0)
推荐(0)
浙公网安备 33010602011771号