上传jar 或者aar 到maven 仓库
mvn deploy:deploy-file -DgroupId=com.cusc.thirdparty -DartifactId=gvpsdk -Dversion=1.0.7 -Dpackaging=aar -Dfile=gitv-android-gvpsdk-all-shangyancar-CUCC_GVP_SDK-online-1.0.07-20240705104400-obfuscated-release.aar -Durl=http://10.166.4.115:8081/repository/android/ -DrepositoryId=android -X
gradle 腾讯镜像
https://mirrors.cloud.tencent.com/gradle/gradle-8.9-all.zip
gradle 依赖国内镜像
maven (url = "https://maven.aliyun.com/repository/public")
maven (url = "https://maven.aliyun.com/repository/central")
maven (url ="https://maven.aliyun.com/repository/jcenter")
maven (url= "https://maven.aliyun.com/repository/google")
maven (url= "https://maven.aliyun.com/nexus/content/repositories/jcenter")
maven (url ="https://maven.aliyun.com/nexus/content/repositories/releases")
maven (url= "https://maven.aliyun.com/repository/apache-snapshots")
adb 常用命令
获取当前activity
adb shell dumpsys window | findstr mCurrentFocus
查看顶层Fragment
adb shell dumpsys activity com.cusc.media
查看顶层Activity
adb shell "dumpsys activity -v top | grep ACTIVITY"
指定启动屏幕
adb shell am start -n com.amap.navi.demo/com.amap.navi.demo.activity.custom.AllCustomNaviActivity --display 1
启动服务
adb shell am start service -n com.cusc.misc/com.cusc.misc.MiscService
// 卸载应用
adb shell pm uninstall --user 0 com.cusc.mediascanservice
// 强制杀掉进程
adb shell am force-stop com.android.settings
// 查看版本
adb shell pm dump com.cusc.mediascanservice | findstr version
//过滤文本
grep -r "安全提示" T93-Project
// 查看内存占用
adb shell dumpsys meminfo com.ftms.car23mm
// 清除应用数据
adb shell pm clear com.desaysv.ivi.messagecenter
// 查看当前应用包名
adb shell am monitor
// 切换字体大小,主要用来模拟配置变更小 - 0.85 默认 - 1.0 大 - 1.15 最大 - 1.30
adb shell settings put system font_scale 1
切换成黑夜模式:
adb shell cmd uimode night yes
切换成白天模式:
adb shell cmd uimode night no
截取屏幕
adb shell screencap -p /sdcard/01.png
adb pull /sdcard/01.png C:\Users\FITZ\Desktop\01.png
设置仓库远端地址
git remote set-url origin git@172.23.105.167:cu-sc-app/hmi/dpca-ai2/PictureAndVideo.git