1、因为deviceid的限制,所有各大三方sdk需要更新,比如个推、微信支付、环信、友盟,Basesdk
2、Using WebView from more than one process at once with the same data directory is not supported
这个错误是webview多进程使用导致,在api28以上,需要对webview 目录进行控制
@RequiresApi(api = 28)
public static void webviewSetPath(Context context) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
String processName = getProcessName(context);
if (!packageNameocessName)) {//判断不等于默认进程名称
WebView.setDataDirectorySuffix(processName);
}
}
}
public static String getProcessName(Context context) {
if (context == null) return null;
ActivityManager manager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
for (ActivityManager.RunningAppProcessInfo processInfo : manager.getRunningAppProcesses()) {
if (processInfo.pid == android.os.Process.myPid()) {