Commit ff5d05e0 authored by wangxuewei's avatar wangxuewei

[提交人]:王雪伟

[提交简述] :多多菜园
[实现方案] :1.0.2_修复Can't set data directory suffix: WebView already initialized
parent 99277a1b
...@@ -47,12 +47,12 @@ class BaseApplication : MultiDexApplication() { ...@@ -47,12 +47,12 @@ class BaseApplication : MultiDexApplication() {
// .Build() // .Build()
// ); // );
//TODO Android 9及以上必须设置 (聚合快手时必须添加) //TODO Android 9及以上必须设置 (聚合快手时必须添加)
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
// val processName = Application.getProcessName() val processName = Application.getProcessName()
// if (packageName != processName) { if (packageName != processName) {
// WebView.setDataDirectorySuffix(processName) WebView.setDataDirectorySuffix(processName)
// } }
// } }
UMConfigure.setLogEnabled(true) UMConfigure.setLogEnabled(true)
UMConfigure.init(this, "5f9bb48945b2b751a91fb2d5", "", UMConfigure.DEVICE_TYPE_PHONE, "") UMConfigure.init(this, "5f9bb48945b2b751a91fb2d5", "", UMConfigure.DEVICE_TYPE_PHONE, "")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment