华为mate 9一次bug解决

升级最新的Android 8.0好好的一个app报了一下几个错误,差点被huawei误导,耗时修改;
E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist! 内存检查?不错是应该看一下这个。

E/Minikin: Could not get cmap table size! 这看起来是一个cpp源码级别错误哦,源码连接:https://android.googlesource.com/platform/frameworks/minikin/+/lollipop-wear-release/libs/minikin/FontFamily.cpp

W/System.err: java.lang.SecurityException: getDeviceId: Neither user 10294 nor current process has android.permission.READ_PHONE_STATE. 这个又貌似权限错误,但是androidManifest.xml已经给了,而且报错的地方不需要动态申请了。

System.err: at android.telephony.HwTelephonyManagerInner.getUniqueDeviceId(HwTelephonyManagerInner.java:1073)

E/libc: Access denied finding property "net.dns1" //底层c,jni的错误,有兴趣的可以研究。

//以下几个貌似和tencent的x5有关,好吧,先不管
E/Preprocessor: ATTENTION preloadInner failed: com.tencent.tbs.core.webkit.tencent.TencentWebViewProxy$9

E/Preprocessor: ATTENTION preloadInner failed: android.webview.chromium.WebViewChromiumFactoryProvider$5

/zygote: Rejecting re-init on previously-failed class java.lang.Class: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/tencent/smtt/export/external/interfaces/CorePermissionRequest$CorePermissionRequestCallback;

最后解决是根据
临时解决办法1
去掉某个Activity里的android:screenOrientation="portrait",
Android 的编译和targetSdk都是27 ,特此记录。
差点被华为坑了!

你可能感兴趣的:(华为mate 9一次bug解决)