作者你好 我发现了找不到类的原因了 大家可以尝试一下
Closed this issue · 3 comments
`2021-03-17 15:53:41.322 6584-6584/? E/LogXutils: gatherInfodalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.sinovatech.unicom.ui-bUxzf0ek37AOrk-5gZFsrA==/base.apk"],nativeLibraryDirectories=[/data/app/com.sinovatech.unicom.ui-bUxzf0ek37AOrk-5gZFsrA==/lib/arm, /data/app/com.sinovatech.unicom.ui-bUxzf0ek37AOrk-5gZFsrA==/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]]
2021-03-17 15:53:41.322 6584-6584/? E/LogXutils: com.sinovatech.unicom.ui
2021-03-17 15:53:41.353 6584-6584/? E/LogXutils: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.sinovatech.unicom.ui-bUxzf0ek37AOrk-5gZFsrA==/base.apk"],nativeLibraryDirectories=[/data/app/com.sinovatech.unicom.ui-bUxzf0ek37AOrk-5gZFsrA==/lib/arm, /data/app/com.sinovatech.unicom.ui-bUxzf0ek37AOrk-5gZFsrA==/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]]
2021-03-17 15:53:41.875 6584-6584/? E/LogXutils: gatherInfodalvik.system.PathClassLoader[DexPathList[[zip file "/system/app/webview/webview.apk"],nativeLibraryDirectories=[/system/app/webview/lib/arm, /system/app/webview/webview.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib, /system/lib, /vendor/lib]]]
2021-03-17 15:53:41.875 6584-6584/? E/LogXutils: com.sinovatech.unicom.ui`
我分析出来了 就是classloader不应该在 gatherInfo 这个函数里面重新赋值
private void gatherInfo(XC_LoadPackage.LoadPackageParam loadPackageParam) {
packageName = loadPackageParam.packageName;
isFirstApplication = loadPackageParam.isFirstApplication;
classLoader = loadPackageParam.classLoader;
Log.e("LogXutils","gatherInfo"+classLoader.toString());
processName = loadPackageParam.processName;
appInfo = loadPackageParam.appInfo;
}
应该删掉
classLoader = loadPackageParam.classLoader;
这行代码