Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[demo]:宿主apk无法加载patch文件 cache file failed CRC check #374

Open
ZhangKuixun opened this issue Sep 23, 2019 · 0 comments
Open

Comments

@ZhangKuixun
Copy link

ZhangKuixun commented Sep 23, 2019

异常:

生成的patch文件,先把它push到应用的cache/目录中,但是宿主app无法加载patch文件。FirstBundleActivity的页面能加载起来,但是patch文件加载不起来。

运行环境:

win 10 
Android studio 3.4.1
gradleVersion:4.5
androidPluginVersion:3.0.1
buildToolsVersion:26.0.2
compileSdkVersion:android-26
atlasPluginVersion:3.0.1-rc88

手机型号letv x500
android版本 5.0.2

这是所有的日志:

09-23 16:24:04.978 25387-25387/? I/art: Late-enabling -Xcheck:jni
09-23 16:24:05.052 25387-25387/com.taobao.demo D/ActivityThread: hoder:android.app.IActivityManager$ContentProviderHolder@2bbded8e,provider,holder.Provider:android.content.ContentProviderProxy@81399af
09-23 16:24:05.059 25387-25387/com.taobao.demo D/Proxy: setHttpRequestCheckHandler
09-23 16:24:05.071 25387-25387/com.taobao.demo E/AtlasBridgeApplication: attachBaseContext() - isUpdated = false
09-23 16:24:05.098 25387-25387/com.taobao.demo E/BridgeApplication: length =2621548
09-23 16:24:05.099 25387-25387/com.taobao.demo D/prelaunch: prelaunch invokded
09-23 16:24:05.102 25387-25387/com.taobao.demo I/MultiDex: VM with version 2.1.0 has multidex support
09-23 16:24:05.102 25387-25387/com.taobao.demo I/MultiDex: Installing application
09-23 16:24:05.102 25387-25387/com.taobao.demo I/MultiDex: VM has multidex support, MultiDex support library is disabled.
09-23 16:24:05.109 25387-25387/com.taobao.demo D/ActivityThread: installProvider: context.getPackageName()=com.taobao.demo
09-23 16:24:05.113 25387-25387/com.taobao.demo E/AtlasBundleInfoManager: generate info from generator
09-23 16:24:05.119 25387-25387/com.taobao.demo D/ActivityThread: BIND_APPLICATION handled : 0 / AppBindData{appInfo=ApplicationInfo{250a21cb com.taobao.demo}}
09-23 16:24:05.120 25387-25387/com.taobao.demo V/ActivityThread: Handling launch of ActivityRecord{99e6da8 token=android.os.BinderProxy@15ce10c1 {com.taobao.demo/com.taobao.demo.MainActivity}}
09-23 16:24:05.138 25387-25387/com.taobao.demo V/ActivityThread: ActivityRecord{99e6da8 token=android.os.BinderProxy@15ce10c1 {com.taobao.demo/com.taobao.demo.MainActivity}}: app=com.taobao.demo.DemoApplication@17970fa7, appName=com.taobao.demo, pkg=com.taobao.demo, comp={com.taobao.demo/com.taobao.demo.MainActivity}, dir=/data/app/com.taobao.demo-1/base.apk
09-23 16:24:05.154 25387-25387/com.taobao.demo W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
09-23 16:24:05.273 25387-25387/com.taobao.demo D/fontSizeenlarge:  finally isFontSizeEnlarge = false
09-23 16:24:05.276 25387-25387/com.taobao.demo D/fontSizeenlarge:  finally isFontSizeEnlarge = false
09-23 16:24:05.282 25387-25387/com.taobao.demo D/fontSizeenlarge:  finally isFontSizeEnlarge = false
09-23 16:24:05.283 25387-25387/com.taobao.demo D/fontSizeenlarge:  finally isFontSizeEnlarge = false
09-23 16:24:05.286 25387-25387/com.taobao.demo D/fontSizeenlarge:  finally isFontSizeEnlarge = false
09-23 16:24:05.287 25387-25387/com.taobao.demo D/fontSizeenlarge:  finally isFontSizeEnlarge = false
09-23 16:24:05.340 25387-25387/com.taobao.demo D/fontSizeenlarge:  finally isFontSizeEnlarge = false
09-23 16:24:05.343 25387-25387/com.taobao.demo D/fontSizeenlarge:  finally isFontSizeEnlarge = false
09-23 16:24:05.356 25387-25387/com.taobao.demo D/fontSizeenlarge:  finally isFontSizeEnlarge = false
09-23 16:24:05.361 25387-25387/com.taobao.demo E/aa: bbb
09-23 16:24:05.369 25387-25387/com.taobao.demo V/ActivityThread: Performing resume of ActivityRecord{99e6da8 token=android.os.BinderProxy@15ce10c1 {com.taobao.demo/com.taobao.demo.MainActivity}}
09-23 16:24:05.369 25387-25387/com.taobao.demo D/ActivityThread: ACT-AM_ON_RESUME_CALLED ActivityRecord{99e6da8 token=android.os.BinderProxy@15ce10c1 {com.taobao.demo/com.taobao.demo.MainActivity}}
09-23 16:24:05.369 25387-25387/com.taobao.demo V/ActivityThread: Resume ActivityRecord{99e6da8 token=android.os.BinderProxy@15ce10c1 {com.taobao.demo/com.taobao.demo.MainActivity}} started activity: false, hideForNow: false, finished: false
09-23 16:24:05.369 25387-25387/com.taobao.demo D/LEUI_ActivityThread: Add flag(FLAG_SHOW_WHEN_LOCKED)for activity window =com.taobao.demo.MainActivityflags=0
09-23 16:24:05.369 25387-25387/com.taobao.demo V/PhoneWindow: DecorView setVisiblity: visibility = 4 ,Parent =null, this =com.android.internal.policy.impl.PhoneWindow$DecorView{28dbdcf2 I.E..... R.....ID 0,0-0,0}
09-23 16:24:05.377 25387-25414/com.taobao.demo D/OpenGLRenderer: initialize DisplayEventReceiver 0x83223050
09-23 16:24:05.377 25387-25414/com.taobao.demo D/OpenGLRenderer: Render dirty regions requested: false
09-23 16:24:05.382 25387-25387/com.taobao.demo V/ActivityThread: Resuming ActivityRecord{99e6da8 token=android.os.BinderProxy@15ce10c1 {com.taobao.demo/com.taobao.demo.MainActivity}} with isForward=true
09-23 16:24:05.382 25387-25387/com.taobao.demo V/PhoneWindow: DecorView setVisiblity: visibility = 0 ,Parent =ViewRoot{2583c3e5 com.taobao.demo/com.taobao.demo.MainActivity,ident = 0}, this =com.android.internal.policy.impl.PhoneWindow$DecorView{28dbdcf2 V.E..... R.....ID 0,0-0,0}
09-23 16:24:05.382 25387-25387/com.taobao.demo V/ActivityThread: Scheduling idle handler for ActivityRecord{99e6da8 token=android.os.BinderProxy@15ce10c1 {com.taobao.demo/com.taobao.demo.MainActivity}}
09-23 16:24:05.383 25387-25387/com.taobao.demo D/ActivityThread: ACT-LAUNCH_ACTIVITY handled : 0 / ActivityRecord{99e6da8 token=android.os.BinderProxy@15ce10c1 {com.taobao.demo/com.taobao.demo.MainActivity}}
09-23 16:24:05.395 25387-25387/com.taobao.demo V/InputMethodManager: Not IME target window, ignoring
09-23 16:24:05.455 25387-25414/com.taobao.demo D/IMGSRV: gralloc_module_getimplementationformat:2526: usage=0x1000 > fmt=0x1
09-23 16:24:05.455 25387-25414/com.taobao.demo D/IMGSRV: gralloc_module_getimplementationformat:2526: usage=0x1000 > fmt=0x1
09-23 16:24:05.455 25387-25414/com.taobao.demo D/IMGSRV: gralloc_module_getimplementationformat:2526: usage=0x1000 > fmt=0x1
09-23 16:24:05.455 25387-25414/com.taobao.demo D/IMGSRV: gralloc_module_getimplementationformat:2526: usage=0x1000 > fmt=0x1
09-23 16:24:05.455 25387-25414/com.taobao.demo D/IMGSRV: gralloc_module_getimplementationformat:2526: usage=0x1000 > fmt=0x1
09-23 16:24:05.459 25387-25414/com.taobao.demo I/OpenGLRenderer: Initialized EGL, version 1.4
09-23 16:24:05.465 25387-25414/com.taobao.demo D/OpenGLRenderer: Enabling debug mode 0
09-23 16:24:05.471 25387-25414/com.taobao.demo D/IMGSRV: gralloc_register_buffer:1390: hnd=0x83227760 ID=29189 fd=50 ref=1
09-23 16:24:05.471 25387-25414/com.taobao.demo D/GraphicBuffer: register, handle(0x83227760) (w:1080 h:1920 s:1088 f:0x1 u:0x000b00)
09-23 16:24:05.498 25387-25387/com.taobao.demo D/fontSizeenlarge:  finally isFontSizeEnlarge = false
09-23 16:24:05.514 25387-25387/com.taobao.demo D/fontSizeenlarge:  finally isFontSizeEnlarge = false
09-23 16:24:05.518 25387-25387/com.taobao.demo D/fontSizeenlarge:  finally isFontSizeEnlarge = false
09-23 16:24:05.521 25387-25387/com.taobao.demo D/fontSizeenlarge:  finally isFontSizeEnlarge = false
09-23 16:24:05.525 25387-25387/com.taobao.demo D/fontSizeenlarge:  finally isFontSizeEnlarge = false
09-23 16:24:05.528 25387-25387/com.taobao.demo D/fontSizeenlarge:  finally isFontSizeEnlarge = false
09-23 16:24:05.535 25387-25387/com.taobao.demo D/fontSizeenlarge:  finally isFontSizeEnlarge = false
09-23 16:24:05.538 25387-25387/com.taobao.demo D/fontSizeenlarge:  finally isFontSizeEnlarge = false
09-23 16:24:05.557 25387-25414/com.taobao.demo E/libEGL: cache file failed CRC check
09-23 16:24:05.646 25387-25387/com.taobao.demo V/InputMethodManager: onWindowFocus: android.support.v4.widget.DrawerLayout{290d3097 VFED.... .F....ID 0,0-1080,1920 #7f0d0090 app:id/drawer_layout} softInputMode=288 first=true flags=#81810100
09-23 16:24:05.647 25387-25387/com.taobao.demo V/InputMethodManager: START INPUT: android.support.v4.widget.DrawerLayout{290d3097 VFED.... .F....ID 0,0-1080,1920 #7f0d0090 app:id/drawer_layout} ic=null tba=android.view.inputmethod.EditorInfo@10264f46 controlFlags=#105
09-23 16:24:05.665 25387-25414/com.taobao.demo D/IMGSRV: gralloc_register_buffer:1390: hnd=0x84110460 ID=29191 fd=55 ref=1
09-23 16:24:05.665 25387-25414/com.taobao.demo D/GraphicBuffer: register, handle(0x84110460) (w:1080 h:1920 s:1088 f:0x1 u:0x000b00)
09-23 16:24:05.672 25387-25414/com.taobao.demo D/IMGSRV: gralloc_register_buffer:1390: hnd=0x84759040 ID=29192 fd=58 ref=1
09-23 16:24:05.672 25387-25414/com.taobao.demo D/GraphicBuffer: register, handle(0x84759040) (w:1080 h:1920 s:1088 f:0x1 u:0x000b00)

@ZhangKuixun ZhangKuixun changed the title cache file failed CRC check 宿主apk无法加载patch文件 cache file failed CRC check Sep 23, 2019
@ZhangKuixun ZhangKuixun changed the title 宿主apk无法加载patch文件 cache file failed CRC check [demo]:宿主apk无法加载patch文件 cache file failed CRC check Sep 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant