您好,为了适配 16 KB page size ,我们已经做了相关升级和sdk替换,当把android:extractNativeLibs="true"修改成false,运行时会报错,我把最新版本“Android-SDK@4.82.82512_20251010”里的两个demo分别添加了android:extractNativeLibs="false"报错信息都相同。
当android:extractNativeLibs="true",我们用使用 “Analyze APK”分析 APK 会有16KB page size的告警
java.lang.ClassNotFoundException: com.android.HelloH5.BuildConfig
2025-10-20 21:49:32.570 5844-5844 System.err com.android.HelloH5 W at java.lang.Class.classForName(Native Method)
2025-10-20 21:49:32.570 5844-5844 System.err com.android.HelloH5 W at java.lang.Class.forName(Class.java:454)
2025-10-20 21:49:32.570 5844-5844 System.err com.android.HelloH5 W at java.lang.Class.forName(Class.java:379)
2025-10-20 21:49:32.570 5844-5844 System.err com.android.HelloH5 W at io.dcloud.uts.UTSAndroid.initUTSHooksClassArray(UTSAndroid.kt:1042)
2025-10-20 21:49:32.570 5844-5844 System.err com.android.HelloH5 W at java.lang.reflect.Method.invoke(Native Method)
2025-10-20 21:49:32.570 5844-5844 System.err com.android.HelloH5 W at io.dcloud.common.util.AppRuntime.initUTSHooksClassArray(r8-map-id-def06778cfb68b47c11b8b8c07d432a3889fe164830383fd911852a6b5a094a9:14)
2025-10-20 21:49:32.570 5844-5844 System.err com.android.HelloH5 W at io.dcloud.weex.MoudlesLoader.initHooksClass(r8-map-id-b4716a25f9920722ba6f2d7f7c6f40e43a654927e8ebe1c489894a7bc6a88ab4:14)
2025-10-20 21:49:32.570 5844-5844 System.err com.android.HelloH5 W at io.dcloud.weex.MoudlesLoader.onCreate(r8-map-id-b4716a25f9920722ba6f2d7f7c6f40e43a654927e8ebe1c489894a7bc6a88ab4:4)
2025-10-20 21:49:32.570 5844-5844 System.err com.android.HelloH5 W at com.taobao.weex.WXSDKEngine.initialize(r8-map-id-b4716a25f9920722ba6f2d7f7c6f40e43a654927e8ebe1c489894a7bc6a88ab4:18)
2025-10-20 21:49:32.571 5844-5844 System.err com.android.HelloH5 W at io.dcloud.feature.weex.WeexInstanceMgr.initWeexEnv(r8-map-id-b4716a25f9920722ba6f2d7f7c6f40e43a654927e8ebe1c489894a7bc6a88ab4:29)
2025-10-20 21:49:32.571 5844-5844 System.err com.android.HelloH5 W at io.dcloud.feature.weex.WeexInstanceMgr.initWeexEnv(r8-map-id-b4716a25f9920722ba6f2d7f7c6f40e43a654927e8ebe1c489894a7bc6a88ab4:2)
2025-10-20 21:49:32.571 5844-5844 System.err com.android.HelloH5 W at io.dcloud.common.util.AppRuntime.initWeex(r8-map-id-def06778cfb68b47c11b8b8c07d432a3889fe164830383fd911852a6b5a094a9:3)
2025-10-20 21:49:32.571 5844-5844 System.err com.android.HelloH5 W at io.dcloud.application.DCLoudApplicationImpl.onCreate(r8-map-id-def06778cfb68b47c11b8b8c07d432a3889fe164830383fd911852a6b5a094a9:29)
2025-10-20 21:49:32.571 5844-5844 System.err com.android.HelloH5 W at io.dcloud.application.DCloudApplication.onCreate(r8-map-id-def06778cfb68b47c11b8b8c07d432a3889fe164830383fd911852a6b5a094a9:2)
2025-10-20 21:49:32.571 5844-5844 System.err com.android.HelloH5 W at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1190)
2025-10-20 21:49:32.571 5844-5844 System.err com.android.HelloH5 W at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6582)
2025-10-20 21:49:32.571 5844-5844 System.err com.android.HelloH5 W at android.app.ActivityThread.access$1400(ActivityThread.java:224)
2025-10-20 21:49:32.571 5844-5844 System.err com.android.HelloH5 W at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1887)
2025-10-20 21:49:32.571 5844-5844 System.err com.android.HelloH5 W at android.os.Handler.dispatchMessage(Handler.java:107)
2025-10-20 21:49:32.571 5844-5844 System.err com.android.HelloH5 W at android.os.Looper.loop(Looper.java:224)
2025-10-20 21:49:32.571 5844-5844 System.err com.android.HelloH5 W at android.app.ActivityThread.main(ActivityThread.java:7562)
2025-10-20 21:49:32.571 5844-5844 System.err com.android.HelloH5 W at java.lang.reflect.Method.invoke(Native Method)
2025-10-20 21:49:32.571 5844-5844 System.err com.android.HelloH5 W at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
2025-10-20 21:49:32.571 5844-5844 System.err com.android.HelloH5 W at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
2025-10-20 21:49:32.571 5844-5844 System.err com.android.HelloH5 W Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.HelloH5.BuildConfig" on path: DexPathList[[zip file "/data/app/com.android.HelloH5-V6C9-yE4rNVHa_i1Fy5OsQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.android.HelloH5-V6C9-yE4rNVHa_i1Fy5OsQ==/lib/arm64, /data/app/com.android.HelloH5-V6C9-yE4rNVHa_i1Fy5OsQ==/base.apk!/lib/arm64-v8a, /system/lib64, /system/product/lib64]]
2025-10-20 21:49:32.571 5844-5844 System.err com.android.HelloH5 W at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196)
2025-10-20 21:49:32.571 5844-5844 System.err com.android.HelloH5 W at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
2025-10-20 21:49:32.571 5844-5844 System.err com.android.HelloH5 W at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
2025-10-20 21:49:32.571 5844-5844 System.err com.android.HelloH5 W ... 24 more
2025-10-20 21:49:32.655 5844-6216 weex com.android.HelloH5 W app AvailMemory ---->>>3532
2025-10-20 21:49:32.656 5844-6216 DCFileUtils com.android.HelloH5 I getAssetPath---------uni-jsframework.js
2025-10-20 21:49:32.720 5844-6216 WXParams com.android.HelloH5 E setCrashFilePath: /data/user/0/com.android.HelloH5/app_crash
2025-10-20 21:49:32.721 5844-5844 platform com.android.HelloH5 I java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
2025-10-20 21:49:32.721 5844-6216 weex com.android.HelloH5 E weexjss's Path is /data/app/com.android.HelloH5-V6C9-yE4rNVHa_i1Fy5OsQ==/base.apk!/lib/arm64-v8a/libweexjss.so but file does not exist
2025-10-20 21:49:32.727 5844-6216 android.HelloH com.android.HelloH5 W Accessing hidden method Ldalvik/system/BaseDexClassLoader;->getLdLibraryPath()Ljava/lang/String; (greylist,core-platform-api, reflection, allowed)
2025-10-20 21:49:32.730 5844-6216 weex com.android.HelloH5 E getUseSingleProcess is running false
2025-10-20 21:49:32.730 5844-6216 weex com.android.HelloH5 E getReleaseMap:true
2025-10-20 21:49:32.730 5844-6216 weex com.android.HelloH5 E getLibJsbPath is running /data/user/0/com.android.HelloH5/cache/cache/weex/libs/weexjsb/arm64-v8a/libweexjsb.so
2025-10-20 21:49:32.730 5844-6216 weex com.android.HelloH5 E getLibLdPath is running /data/app/com.android.HelloH5-V6C9-yE4rNVHa_i1Fy5OsQ==/lib/arm64:/data/app/com.android.HelloH5-V6C9-yE4rNVHa_i1Fy5OsQ==/base.apk!/lib/arm64-v8a
2025-10-20 21:49:32.737 5844-5844 platform com.android.HelloH5 I ClassNotFoundException io.dcloud.feature.cf.cFeatureImpl handleEncryption
2025-10-20 21:49:32.738 5844-6216 WeexCore com.android.HelloH5 E startupPie :1
2025-10-20 21:49:32.759 5844-5844 platform com.android.HelloH5 I java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
2025-10-20 21:49:32.760 5844-5844 platform com.android.HelloH5 I ClassNotFoundException io.dcloud.feature.weex.map.google.GoogleMapPluginImpl initPlugin
2025-10-20 21:49:32.761 5844-5844 platform com.android.HelloH5 I java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
2025-10-20 21:49:32.770 5844-5844 chatty com.android.HelloH5 I uid=10421(com.android.HelloH5) identical 8 lines
2025-10-20 21:49:32.771 5844-5844 platform com.android.HelloH5 I java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
2025-10-20 21:49:32.772 5844-5844 platform com.android.HelloH5 I ClassNotFoundException io.dcloud.feature.weex_ad.DCWXAdPlugin initPlugin
2025-10-20 21:49:32.772 5844-5844 platform com.android.HelloH5 I java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
2025-10-20 21:49:32.775 5844-5844 X5InitImpl com.android.HelloH5 E x5 init
x***@easier.cn (作者)
APK已发送给您了,请查收
2025-10-21 15:31