android导入第三方库导致某些冲突问题
用exclude 去除报错的部分。 冲突部分很明显,忘记截图了,先记下
compile("com.xxx.lib.xxxx:26.3.8") {
exclude group: 'com.google.android.gms'
exclude group: 'com.android.support'
}
小记:2019年9月2日
BUG问题
Program type already present: com.google.android.gms.auth.api.signin.internal.Storage
解决:刚同步分支之后出现这个问题,clear之后这个问题没有了,但是报了下面问题
Android dependency ‘com.google.android.gms:play-services-basement’ has different version for the compile (16.0.1) and runtime (16.2.0) classpath. You should manually set the same version via DependencyResolution
原因:包依赖重复的原因,但是因为接入的sdk不同,每个exclude太麻烦,可以通过构建脚本的去解决
笔记部分:
- 8.0手机 Caused by: java.lang.IllegalStateException: Only fullscreen opaque activities can request orientation
原因:在8.0中,非全屏Activity不能设置透明背景<