atlas icon indicating copy to clipboard operation
atlas copied to clipboard

[use] KernalBundle.patchKernalDex NullPointerException

Open aibiaoxiaoyu opened this issue 5 years ago • 1 comments

Android 4.4 进行热修复部署时,对差分包进行合并时出现空指针。 W/System.err( 3886): java.lang.NullPointerException W/System.err( 3886): at android.taobao.atlas.startup.patch.KernalBundle.patchKernalDex(KernalBundle.java:420) W/System.err( 3886): at android.taobao.atlas.startup.patch.KernalBundle.checkloadKernalBundle(KernalBundle.java:276) W/System.err( 3886): at android.taobao.atlas.startup.AtlasBridgeApplication.attachBaseContext(AtlasBridgeApplication.java:295)

看源码是FrameworkPropertiesClazz为空导致。 if(FrameworkPropertiesClazz==null && isDeubgMode()){ Log.e("KernalBundle","main dex is not match, library awo test?"); return; } Field versionField = FrameworkPropertiesClazz.getDeclaredField("version");

main dex is not match, library awo test是什么意思? 差分包不正确导致?

aibiaoxiaoyu avatar Mar 14 '19 05:03 aibiaoxiaoyu

atlas版本
lib_atlas_core = "com.taobao.android:atlas_core:5.0.7.55@aar" lib_atlas_update = "com.taobao.android:atlasupdate:1.1.4.14@aar"

aibiaoxiaoyu avatar Mar 14 '19 05:03 aibiaoxiaoyu