04 2021 档案
摘要:当网络受限,没有所需版本的依赖,但是有其它版本的时候,, 可以使用 configurations.all { resolutionStrategy.force 'com.android.support:support-annotations:27.0.1'}强制使用依赖的指定版本,就不会去找找不到的
阅读全文
摘要:1. 设置竖屏,有时不起作用//设置竖屏setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);所以,用在 AndroidManifest.xml中的 activity中添加 android:screenOrientatio
阅读全文