gradle,adb命令行编译备忘
追踪依赖(为了解决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
原文地址:https://blog.csdn.net/m0_69086552/article/details/145130106
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!