江还
江还
  • 发布:2020-07-21 10:12
  • 更新:2021-01-26 00:43
  • 阅读:2454

Android 5+有时会白屏,有时不会,报ClassNotFoundException io.dcloud.feature.weex.WeexInstanceMgr self

分类:5+ SDK

不是全部都会,而是部分页面会。而且同一个页面在部分手机上是正常显示的,目前发现小米Mix3大概率会发生白屏,看Log初始化的时候出现了问题,完整日志如下:

2020-07-20 18:26:38.186 20778-20778/com.zhuge.wolongyun E/platform: ClassNotFoundException io.dcloud.feature.weex.WeexInstanceMgr self  
2020-07-20 18:26:38.187 20778-20964/com.zhuge.wolongyun I/ContentCatcher: Interceptor : Catcher list invalid for com.zhuge.wolongyun@com.zhuge.wolongyun.webapp.SDK_WebApp@121611963  
2020-07-20 18:26:38.187 20778-20964/com.zhuge.wolongyun I/ContentCatcher: Interceptor : Get featureInfo from config pick_mode  
2020-07-20 18:26:38.187 20778-20778/com.zhuge.wolongyun E/platform: ClassNotFoundException io.dcloud.feature.weex.WeexInstanceMgr restartWeex  
2020-07-20 18:26:38.197 20778-20778/com.zhuge.wolongyun I/DCloud_LOG: onResume resumeTime=1595240798197  
2020-07-20 18:26:38.197 20778-20778/com.zhuge.wolongyun E/platform: java.lang.ClassNotFoundException: io.dcloud.common.util.net.http.LocalServer  
2020-07-20 18:26:38.210 20778-21515/com.zhuge.wolongyun D/skia: --- Failed to create image decoder with message 'unimplemented'  
2020-07-20 18:26:38.211 20778-21515/com.zhuge.wolongyun W/ExifInterface: Invalid image: ExifInterface got an unsupported image format file(ExifInterface supports JPEG and some RAW image formats only) or a corrupted JPEG file to ExifInterface.  
    java.io.IOException: Invalid byte order: 3c21  
        at android.media.ExifInterface.readByteOrder(ExifInterface.java:3128)  
        at android.media.ExifInterface.isOrfFormat(ExifInterface.java:2443)  
        at android.media.ExifInterface.getMimeType(ExifInterface.java:2321)  
        at android.media.ExifInterface.loadAttributes(ExifInterface.java:1755)  
        at android.media.ExifInterface.<init>(ExifInterface.java:1449)  
        at com.bumptech.glide.load.resource.bitmap.ExifInterfaceImageHeaderParser.getOrientation(ExifInterfaceImageHeaderParser.java:40)  
        at com.bumptech.glide.load.ImageHeaderParserUtils.getOrientation(ImageHeaderParserUtils.java:91)  
        at com.bumptech.glide.load.resource.bitmap.Downsampler.decodeFromWrappedStreams(Downsampler.java:236)  
        at com.bumptech.glide.load.resource.bitmap.Downsampler.decode(Downsampler.java:206)  
        at com.bumptech.glide.load.resource.bitmap.Downsampler.decode(Downsampler.java:162)  
        at com.bumptech.glide.load.resource.bitmap.ByteBufferBitmapDecoder.decode(ByteBufferBitmapDecoder.java:33)  
        at com.bumptech.glide.load.resource.bitmap.ByteBufferBitmapDecoder.decode(ByteBufferBitmapDecoder.java:16)  
        at com.bumptech.glide.load.engine.DecodePath.decodeResourceWithList(DecodePath.java:72)  
        at com.bumptech.glide.load.engine.DecodePath.decodeResource(DecodePath.java:55)  
        at com.bumptech.glide.load.engine.DecodePath.decode(DecodePath.java:45)  
        at com.bumptech.glide.load.engine.LoadPath.loadWithExceptionList(LoadPath.java:58)  
        at com.bumptech.glide.load.engine.LoadPath.load(LoadPath.java:43)  
        at com.bumptech.glide.load.engine.DecodeJob.runLoadPath(DecodeJob.java:515)  
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromFetcher(DecodeJob.java:480)  
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromData(DecodeJob.java:466)  
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:418)  
        at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:387)  
        at com.bumptech.glide.load.engine.SourceGenerator.onDataFetcherReady(SourceGenerator.java:135)  
        at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95)  
        at com.bumptech.glide.load.model.ByteBufferFileLoader$ByteBufferFetcher.loadData(ByteBufferFileLoader.java:74)  
        at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75)  
        at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:49)  
        at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:309)  
        at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:279)  
        at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:235)  
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)  
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)  
        at java.lang.Thread.run(Thread.java:919)  
        at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446)
2020-07-21 10:12 负责人:DCloud_Android_ST 分享
已邀请:
江还

江还 (作者) - 一句话介绍不了自己

顶一下

DCloud_Android_ST

DCloud_Android_ST

提供一下可复现问题的示例

圣蒂劳尔

圣蒂劳尔

请问偶尔白屏的问题现在解决了吗?也遇到了

l***@sina.cn

l***@sina.cn

我也遇到了
不过解决了
原因是版本不对


uniapp官方文档中sdk版本是28
如果是自己手动创建的android项目,可能会用的自己的默认版本,我的是29,也是找了半天
下载28版本并改成和他一样的就行了

该问题目前已经被锁定, 无法添加新回复