离线SDK版本:2022年11月14日发布——HBuilderX(3.6.9.20221114-alpha)
提示是说缺少了 io.dcloud.uts.android.AndroidUTSContext ,但是不知道要配置什么内容。
D/WebAppActivity: onCreate
W/System.err: java.lang.ClassNotFoundException: io.dcloud.common.util.net.http.LocalServer2
W/System.err: at java.lang.Class.classForName(Native Method)
W/System.err: at java.lang.Class.forName(Class.java:454)
W/System.err: at java.lang.Class.forName(Class.java:379)
W/System.err: at io.dcloud.common.ui.b.c(Unknown Source:1)
W/System.err: at io.dcloud.b.onCreate(Unknown Source:8)
W/System.err: at io.dcloud.WebAppActivity.onCreate(Unknown Source:24)
W/System.err: at android.app.Activity.performCreate(Activity.java:7963)
W/System.err: at android.app.Activity.performCreate(Activity.java:7952)
W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307)
W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3629)
W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3806)
W/System.err: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
W/System.err: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
W/System.err: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2267)
W/System.err: at android.os.Handler.dispatchMessage(Handler.java:107)
W/System.err: at android.os.Looper.loop(Looper.java:237)
W/System.err: at android.app.ActivityThread.main(ActivityThread.java:8167)
W/System.err: at java.lang.reflect.Method.invoke(Native Method)
W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
W/System.err: Caused by: java.lang.ClassNotFoundException: Didn't find class "io.dcloud.common.util.net.http.LocalServer2" on path: DexPathList[[zip file "/data/app/com.deftship.app-OPrKoAdE2SXhvVA6t3R3mg==/base.apk"],nativeLibraryDirectories=[/data/app/com.deftship.app-OPrKoAdE2SXhvVA6t3R3mg==/lib/arm64, /data/app/com.deftship.app-OPrKoAdE2SXhvVA6t3R3mg==/base.apk!/lib/arm64-v8a, /system/lib64]]
W/System.err: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196)
W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
W/System.err: ... 21 more
W/om.deftship.ap: Accessing hidden field Ldalvik/system/BaseDexClassLoader;->pathList:Ldalvik/system/DexPathList; (greylist, JNI, allowed)
W/om.deftship.ap: Accessing hidden field Ldalvik/system/DexPathList;->dexElements:[Ldalvik/system/DexPathList$Element; (greylist, JNI, allowed)
W/om.deftship.ap: Accessing hidden field Ldalvik/system/DexPathList$Element;->dexFile:Ldalvik/system/DexFile; (greylist, JNI, allowed)
W/om.deftship.ap: Accessing hidden field Ldalvik/system/DexFile;->mFileName:Ljava/lang/String; (greylist, JNI, allowed)
I/WebViewFactory: Loading com.google.android.webview version 107.0.5304.141 (code 530414133)
W/linker: Warning: "/data/app/com.google.android.webview-wAOitZKpviUVPQPnHoqXLw==/base.apk!/lib/arm64-v8a/libmonochrome.so" unused DT entry: unknown processor-specific (type 0x70000001 arg 0x0) (ignoring)
W/om.deftship.ap: Accessing hidden method Landroid/os/Trace;->isTagEnabled(J)Z (greylist, reflection, allowed)
W/om.deftship.ap: Accessing hidden method Landroid/os/Trace;->traceBegin(JLjava/lang/String;)V (greylist, reflection, allowed)
W/om.deftship.ap: Accessing hidden method Landroid/os/Trace;->traceEnd(J)V (greylist, reflection, allowed)
W/om.deftship.ap: Accessing hidden method Landroid/os/Trace;->asyncTraceBegin(JLjava/lang/String;I)V (greylist, reflection, allowed)
W/om.deftship.ap: Accessing hidden method Landroid/os/Trace;->asyncTraceEnd(JLjava/lang/String;I)V (greylist, reflection, allowed)
I/cr_WVCFactoryProvider: Loaded version=107.0.5304.141 minSdkVersion=29 isBundle=true multiprocess=true packageId=2
I/cr_LibraryLoader: Successfully loaded native library
I/cr_CachingUmaRecorder: Flushed 8 samples from 8 histograms.
W/System.err: java.lang.ClassNotFoundException: io.dcloud.uts.android.AndroidUTSContext
W/System.err: at java.lang.Class.classForName(Native Method)
W/System.err: at java.lang.Class.forName(Class.java:454)
W/System.err: at java.lang.Class.forName(Class.java:379)
W/System.err: at io.dcloud.common.util.AppRuntime.initUTS(Unknown Source:1)
W/System.err: at io.dcloud.b$g.a(Unknown Source:8)
W/System.err: at io.dcloud.common.ui.b.a(Unknown Source:363)
W/System.err: at io.dcloud.b.onCreate(Unknown Source:64)
W/System.err: at io.dcloud.WebAppActivity.onCreate(Unknown Source:24)
W/System.err: at android.app.Activity.performCreate(Activity.java:7963)
W/System.err: at android.app.Activity.performCreate(Activity.java:7952)
W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307)
W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3629)
W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3806)
W/System.err: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
W/System.err: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
W/System.err: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2267)
W/System.err: at android.os.Handler.dispatchMessage(Handler.java:107)
W/System.err: at android.os.Looper.loop(Looper.java:237)
W/System.err: at android.app.ActivityThread.main(ActivityThread.java:8167)
W/System.err: at java.lang.reflect.Method.invoke(Native Method)
W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
W/System.err: Caused by: java.lang.ClassNotFoundException: Didn't find class "io.dcloud.uts.android.AndroidUTSContext" on path: DexPathList[[zip file "/data/app/com.deftship.app-OPrKoAdE2SXhvVA6t3R3mg==/base.apk"],nativeLibraryDirectories=[/data/app/com.deftship.app-OPrKoAdE2SXhvVA6t3R3mg==/lib/arm64, /data/app/com.deftship.app-OPrKoAdE2SXhvVA6t3R3mg==/base.apk!/lib/arm64-v8a, /system/lib64]]
W/System.err: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196)
W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
W/System.err: ... 23 more
W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.reflect.Field java.lang.Class.getField(java.lang.String)' on a null object reference
W/System.err: at io.dcloud.common.util.AppRuntime.initUTS(Unknown Source:9)
W/System.err: at io.dcloud.b$g.a(Unknown Source:8)
W/System.err: at io.dcloud.common.ui.b.a(Unknown Source:363)
W/System.err: at io.dcloud.b.onCreate(Unknown Source:64)
W/System.err: at io.dcloud.WebAppActivity.onCreate(Unknown Source:24)
W/System.err: at android.app.Activity.performCreate(Activity.java:7963)
W/System.err: at android.app.Activity.performCreate(Activity.java:7952)
W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307)
W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3629)
W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3806)
W/System.err: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
W/System.err: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
W/System.err: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2267)
W/System.err: at android.os.Handler.dispatchMessage(Handler.java:107)
W/System.err: at android.os.Looper.loop(Looper.java:237)
W/System.err: at android.app.ActivityThread.main(ActivityThread.java:8167)
W/System.err: at java.lang.reflect.Method.invoke(Native Method)
W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
D/download_manager: BaseActivity onCreate