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

[use] KernalBundle.patchKernalDex NullPointerException #349

Open
aibiaoxiaoyu opened this issue Mar 14, 2019 · 1 comment
Open

[use] KernalBundle.patchKernalDex NullPointerException #349

aibiaoxiaoyu opened this issue Mar 14, 2019 · 1 comment

Comments

@aibiaoxiaoyu
Copy link

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
Copy link
Author

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"

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