追踪依赖(为了解决duplicateClass…错误) gradlew.bat app:dependencies > dep-tree.txt # 分析dep-tree.txt的依赖结构,找到对应的包,可能需要做exclude控制,或者查看库issue verbose编译(我一直需要verbose) gradlew.bat assembleDebug -Dhttps.protocols=TLSv1.1,TLSv1.2,TLSv1.3 -Dorg.gradle.parallel=true -Dorg.gradle.workers.max=64 -Dorg.gradle.caching=true --info 追踪Activity启动时间(确保Activity是导出和MAIN的) adb shell am start -W -n com.<your own>.<package>/com.<your own>.<package>.<path>.<to>.<activity> ref link: https://blog.csdn.net/weixin_37600397/article/details/140175204?spm=1001.2014.3001.5502 登录device shell adb shell 杀掉进程 adb shell # device shell am force-stop com.miui.weather2