android authtype=1,【报Bug】plus.screen.lockOrientation在android里引起闪退
代码逻辑如下:
1,在未登录状态下,通过其他接口的状态码判断登录状态,在初次未登录状态下跳转登录页(reLaunch跳转VUE页面)
skipSp(x){
if(this.loginStatus == 201){
showToast('请登录')
setTimeout(()=>{
uni.reLaunch({
url:'../login/login'
})
},1000)
}else if(this.loginStatus == 200) {
uni.navigateTo({
url:'../videoplayer/videoplayer?vid='+x.video_vid+"&image="+x.image+"&id="+x.id
})
}
},
2,登录完成后,跳转回首页(switchTab方式)
uni.switchTab({
url: '../index/index'
})
3,进入页面调用,定时器延时调用plus.screen.lockOrientation('landscape');,发生闪退。
setTimeout(()=>{
plus.screen.lockOrientation('landscape');
},500)
4,HX无明显报错,在android studio,使用adb调试,捕获两个异常。若打开应用,在登录状态下进入详情页则不会闪退。
附加ADB输出为ERROR级别信息:
2020-01-09 16:22:06.942 575-575/? E/SELinux: avc: denied { find } for service=phone pid=29526 uid=10013 scontext=u:r:mediaprovider:s0:c512,c768 tcontext=u:object_r:radio_service:s0 tclass=service_manager permissive=0
2020-01-09 16:22:08.054 31749-31749/? E/mabo: B页面1535203211是否启用截图动画方案:false
2020-01-09 16:22:08.054 31749-31749/? E/mabo: B页面是否启用截图动画方案:false | pop-in
2020-01-09 16:22:08.056 31749-31749/? E/mabo: C页面72345841是否启用截图动画方案:false
2020-01-09 16:22:08.064 31749-31749/? E/DHFrameView: ---------------------onAnimationStart
2020-01-09 16:22:08.355 31749-31749/? E/DHFrameView: ---------------------onAnimationEnd
2020-01-09 16:22:08.391 31749-31749/? E/AssistantInput: onCreateInputConnection 00
2020-01-09 16:22:08.407 31749-31749/? E/shutao: new -- JSNWindow=_www/__uniappview.html
2020-01-09 16:22:08.408 31749-31749/? E/DCloud_LOG: createNWindow pUrl=_www/__uniappview.html
2020-01-09 16:22:08.420 31749-31749/? E/DCloud_LOG: createWindow before _url=_www/__uniappview.html
2020-01-09 16:22:08.420 31749-31749/? E/DCloud_LOG: createWindow after _url=_www/__uniappview.html
2020-01-09 16:22:08.433 31749-31749/? E/useTime: name :createFrameView; <> useTime = 25
2020-01-09 16:22:08.568 31749-31749/? E/ViewPort: 786
2020-01-09 16:22:08.581 31749-31749/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.houmu.sdsoon.com, PID: 31749
java.lang.NullPointerException: Attempt to invoke interface method 'io.dcloud.common.DHInterface.IApp io.dcloud.common.DHInterface.IFrameView.obtainApp()' on a null object reference
at io.dcloud.common.core.ui.f.obtainApp(DHWebview.java:97)
at io.dcloud.common.adapter.ui.CustomeizedInputConnection.showRecordView(CustomeizedInputConnection.java:92)
at io.dcloud.common.adapter.ui.CustomeizedInputConnection.showRecordView(CustomeizedInputConnection.java:89)
at io.dcloud.common.core.ui.b$b.onSizeChanged(DHAppRootView.java:1586)
at android.view.View.sizeChange(View.java:20902)
at android.view.View.setFrame(View.java:20863)
at android.view.View.layout(View.java:20723)
at android.view.ViewGroup.layout(ViewGroup.java:6198)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at android.view.View.layout(View.java:20726)
at android.view.ViewGroup.layout(ViewGroup.java:6198)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at android.view.View.layout(View.java:20726)
at android.view.ViewGroup.layout(ViewGroup.java:6198)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
at android.view.View.layout(View.java:20726)
at android.view.ViewGroup.layout(ViewGroup.java:6198)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at com.android.internal.policy.DecorView.onLayout(DecorView.java:774)
at android.view.View.layout(View.java:20726)
at android.view.ViewGroup.layout(ViewGroup.java:6198)
at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2886)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2413)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1550)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7447)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1065)
at android.view.Choreographer.doCallbacks(Choreographer.java:877)
at android.view.Choreographer.doFrame(Choreographer.java:808)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1051)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:201)
at android.app.ActivityThread.main(ActivityThread.java:6806)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
2020-01-09 16:22:08.582 575-575/? E/SELinux: avc: denied { find } for service=miui.mqsas.MQSService pid=31749 uid=10387 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:mqs_service:s0 tclass=service_manager permissive=0
2020-01-09 16:22:08.582 31749-31749/? E/MQSEventManagerDelegate: failed to get MQSService.
2020-01-09 16:22:08.594 1899-1899/? E/MiuiFaceFactory: getCurrentAuthType sCurrentAuthType = 1
2020-01-09 16:22:08.594 1899-1899/? E/MiuiFaceFactory: getFaceManager sCurrentAuthType = 1
2020-01-09 16:22:08.594 1899-1899/? E/MiuiFaceFactory: getCurrentAuthType sCurrentAuthType = 1
2020-01-09 16:22:08.594 1899-1899/? E/MiuiFaceFactory: getFaceManager sCurrentAuthType = 1
2020-01-09 16:22:08.643 31749-31749/? E/UncaughtExceptionHandler: java.lang.NullPointerException: Attempt to invoke interface method 'io.dcloud.common.DHInterface.IApp io.dcloud.common.DHInterface.IFrameView.obtainApp()' on a null object reference
2020-01-09 16:22:08.650 31772-31779/? E/WeexCore: F:\weex\incubator-weex-19-9-23\incubator-weex-ec1ec238cf03e538e8d07a383befcb5fa2785518\weex_core\Source\android\jsengine\bridge\script\script_bridge_in_multi_process.cpp:72, original owner has die
2020-01-09 16:22:08.683 1705-1802/? E/InputDispatcher: channel 'eb5b4fe com.houmu.sdsoon.com/io.dcloud.PandoraEntryActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
2020-01-09 16:22:08.717 1705-1722/? E/libprocessgroup: Error encountered killing process cgroup uid 99516 pid 31847: No such file or directory
2020-01-09 16:22:08.726 1705-1723/? E/KernelWakelockReader: Kernel wake locks exceeded buffer size 49152
2020-01-09 16:22:08.728 1705-1723/? E/BatteryExternalStatsWorker: wifi info is invalid: null
2020-01-09 16:22:08.730 1705-1723/? E/BatteryExternalStatsWorker: modem info is invalid: null
2020-01-09 16:22:08.747 1705-11618/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.miui.home/com.miui.home.launcher.Launcher/41401360
2020-01-09 16:22:08.838 1899-1899/? E/MiuiFaceFactory: getCurrentAuthType sCurrentAuthType = 1
2020-01-09 16:22:08.838 1899-1899/? E/MiuiFaceFactory: getFaceManager sCurrentAuthType = 1
2020-01-09 16:22:08.838 1899-1899/? E/MiuiFaceFactory: getCurrentAuthType sCurrentAuthType = 1
2020-01-09 16:22:08.838 1899-1899/? E/MiuiFaceFactory: getFaceManager sCurrentAuthType = 1
2020-01-09 16:22:09.185 29397-29397/? E/Launcher: changeViewByFsGestureState, view=FitSystemWindowView, alpha=1.0, scale=1.0
2020-01-09 16:22:09.185 29397-29397/? E/Launcher: changeViewByFsGestureState, view=ShortcutMenuLayer, alpha=1.0, scale=1.0
2020-01-09 16:22:18.850 1705-1723/? E/KernelWakelockReader: Kernel wake locks exceeded buffer size 49152
2020-01-09 16:22:18.854 1705-1723/? E/BatteryExternalStatsWorker: wifi info is invalid: null
恳请帮忙看下,项目紧急,这里感激不尽。
android authtype=1,【报Bug】plus.screen.lockOrientation在android里引起闪退相关推荐
- android adjust,【报Bug】安卓 adjust-position设置为false 页面依然被顶起 ios是好的
详细问题描述 (DCloud产品不会有明显的bug,所以你遇到的问题大都是在特定环境下才能重现的问题,请仔细描述你的环境和重现方式,否则DCloud很难排查解决你的问题) [内容] [报Bug]安卓 ...
- 开发日记-20190423 关键词 android静态代理类代理方法打断点debug 退出当前activity 闪退
其实以前就已经遇到过这样的问题,但是很遗憾,一直没有找到问题所在,今天下定决心,弄了一个下午,终于发现了问题所在.不妨在你的真机上运行这样的代码,整个页面的布局其实真的很简单,就是在页面的中心有一个可 ...
- 关于android从入门到精通4.1.9范例1出现的闪退的问题
自从上次使用Intent,在activity中打开另外一个activity的时候,找了好久都没有找到问题在哪里,最后发现问题是出在AndroidManifest里面,我并未在里面声明新创建的activ ...
- android高德地图默认当前位置,【报Bug】1.9.2 android 高德地图无法定位到当前位置...
详细问题描述 (DCloud产品不会有明显的bug,所以你遇到的问题大都是在特定环境下才能重现的问题,请仔细描述你的环境和重现方式,否则DCloud很难排查解决你的问题) [内容] 1.9.2版本 a ...
- 小米 android编译,【报Bug】编译并签名出来的安装包在小米 MIUI 11稳定版 Android 8.1上面无法安装...
详细问题描述 使用4月10号发布的Android H5+ SDK 编译并签名出来的安装包在小米 MIUI 11稳定版 Android 8.1上面无法安装 安装提示:失败原因:其他原因,请前往小米应用商 ...
- android 地图标注 分享,【报Bug】使用云打包Android版后,百度地图标注的地点位置偏了...
详细问题描述 代码中地点使用的百度系坐标(bd09),通过算法转为gcj02坐标,在自定义基座上,打开地图显示位置是正确的,但通过云打包为正式版本后,代码没做任何改动,打开地图后,显示的位置偏了(向西 ...
- 【错误记录】Android Studio 编译报错 ( Could not find com.android.tools.build:gradle:4.2.1. )
文章目录 一. 报错信息 二. 解决方案 一. 报错信息 导入了一个 Eclipse 项目 , 编译后报如下错误 : FAILURE: Build failed with an exception.* ...
- Android Studio运行报错Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled
由于最近在学习Android开发,刚开始接触Android Studio,很多东西都不懂,今天在使用AS编译时出现一个很奇怪的问题.在Android studio中编译时报错Error running ...
- Android车机 USB1音乐播放界面,拔插USB2,闪退到主界面,音乐停止播放(#10329)
现象描述: USB1音乐播放界面,拔插USB2,闪退到主界面,音乐停止播放. 原因分析: 关键异常log如下: 解决措施: U盘unmount时PorcessKiller会kill掉打开文件的进程,导 ...
最新文章
- 爆赞,对 volatile 关键字讲解最好的一篇文章!
- 哪本python入门书内容最详细-重磅 | 由浅入深的 AI 学习路线,最详细的资源整理!...
- 【杂谈】模型设计书看完了感觉不过瘾?这些拓展模型相关内容值得你关注一下...
- Android 图片压缩、照片选择、裁剪,上传、一整套图片解决方案
- android SharedPreferences的使用优化
- mongo shell连接到mongoDB及shell提示符下执行js脚本
- html js 动态表格数据,HTML+JS动态表格
- mvc 404错误 php,java - springmvc 请求无法到达controller,出现404错误
- [html] 你知道什么是粘性布局吗?
- 前端学习(2423):补充markdown语法补充
- 论文浅尝 | IRW:基于知识图谱和关系推理的视觉叙事框架
- 机器学习模型实战!如何从 900 万张图片中对 600 类照片进行分类? | 技术头条...
- 我是怎么找电子书的?
- C++链接和运行相关错误
- mysql firstday_MySQL 计算本月的第一个和最后一个周一
- configure: error: You requested G729 audio codec but not found...die
- 计算机怎样用PS抠婚纱图,用PS应该怎样抠出透明婚纱照片
- 字节跳动实习面经(已拿offer附攻略)
- 2021年安全生产模拟考试(全国特种作业操作证电工作业-防爆电气模拟考试题库二)安考星
- 腾讯云检测到你的服务器对其他服务器的攻击行为
热门文章
- oauth2_带有Spring Security的OAuth 2.0快速指南
- linux 屏幕输出 高亮_如何设置SecureCRT窗口输出代码关键字高亮设置
- Linux中which命令作用,【每天一个Linux命令】12. Linux中which命令的用法
- 有了它,不会JavaScript,也能写出各种精彩页面!
- Maven推出强化项目:maven-mvnd,构建速度大幅提升!
- 涨姿势:另类的表情域名赚钱大法!!
- 皮一皮:P没P图?傻傻分不清...
- 换个姿势学设计模式:策略模式
- 利用SPRING管理热加载的GROOVY对象!
- 你想学习Java ?资源都在这里了