-
Hi to all, Sorry for my poor English... I have a problem with my briefcase 0.3.14 to run my app on android smartphone. The android application crash after displaying splash screen. NB : Python 3.10.6 I retry with a very simple app (cf. tutorial) with same effect. $ briefcase new
# I used all default answers]
$ cd helloword
$ briefcase dev
$ briefcase create android
$ briefcase run android -> no problem on Android emulator With physical android (I've test on a Huawei or a Wiko) -> $ briefcase run android
...
===========================================================================
--------- beginning of main
06-22 21:36:21.029 19857 19857 I mple.helloworl: Late-enabling -Xcheck:jni
06-22 21:36:21.111 19857 19857 I mple.helloworl: Reinit property: dalvik.vm.checkjni= false
06-22 21:36:21.130 19857 19910 E : [ZeroHung]zrhung_get_config: Get config failed for wp[0x0008]
06-22 21:36:21.141 19857 19857 D ZrHung.AppEyeUiProbe: AppEyeUIP created.
--------- beginning of system
06-22 21:36:21.150 19857 19857 D ActivityThread: Attach thread to application
06-22 21:36:21.208 19857 19925 I HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.example.helloworld#10221#256
06-22 21:36:21.210 19857 19925 I HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.example.helloworld#10221#0
06-22 21:36:21.423 19857 19857 D ZrHung.AppEyeUiProbe: notify runnable to start.
06-22 21:36:21.425 19857 19939 D ZrHung.AppEyeUiProbe: Runnable thread started.
06-22 21:36:21.426 19857 19939 D IMonitor: Load library imonitor_jni
06-22 21:36:21.430 19857 19925 I AwareBitmapCacher: init processName:com.example.helloworld pid=19857 uid=10221
06-22 21:36:21.445 19857 19940 E AwareLog: AtomicFileUtils: readFileLines file not exist: android.util.AtomicFile@52807ce
06-22 21:36:21.446 19857 19940 E AwareLog: AtomicFileUtils: readFileLines file not exist: android.util.AtomicFile@bc046ef
06-22 21:36:21.448 19857 19939 E : [ZeroHung]zrhung_get_config: Get config failed for wp[0x0102]
06-22 21:36:21.448 19857 19857 V ActivityThread: Skipping new config:{1.15 208mcc20mnc [fr_FR] ldltr sw360dp w360dp h709dp 480dpi nrml long hdr port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 0, 0) mAppBounds=Rect(0, 90 - 1080, 2218) mWindowingMode=fullscreen mActivityType=undefined} nonFullScreen=0 suim:1 s.16}, config:{1.15 208mcc20mnc [fr_FR] ldltr sw360dp w360dp h709dp 480dpi nrml long hdr port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 0, 0) mAppBounds=Rect(0, 90 - 1080, 2218) mWindowingMode=fullscreen mActivityType=undefined} nonFullScreen=0 suim:1 s.16} for app:com.example.helloworld
06-22 21:36:21.462 19857 19925 E MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist!
06-22 21:36:21.519 19857 19857 V HwPolicyFactory: : success to get AllImpl object and return....
06-22 21:36:21.530 19857 19857 V ActivityThread: callActivityOnCreate
06-22 21:36:21.530 19857 19857 D MainActivity: onCreate() start
06-22 21:36:21.654 19857 19857 I HwApsImpl: APS: new HwApsImpl created
06-22 21:36:21.692 19857 19857 V HwWidgetFactory: : successes to get AllImpl object and return....
06-22 21:36:21.703 19857 19857 I HwPhoneWindow: updateLayoutParamsColor false mSpecialSet=false, mForcedNavigationBarColor=false, navigationBarColor=0, mNavBarShow=false, mIsFloating=false
06-22 21:36:21.706 19857 19857 I HwPhoneWindow: updateLayoutParamsColor true mSpecialSet=true, mForcedNavigationBarColor=false, navigationBarColor=fffcfcfc, mNavBarShow=false, mIsFloating=false
06-22 21:36:21.851 19857 19857 I OverScrollerOptimization: start init SmartSlideOverScroller and get the overscroller config
06-22 21:36:21.852 19857 19857 I OverScrollerOptimization: get the overscroller config
06-22 21:36:21.857 19857 19857 I FLTAG_FM: loadFeature class:com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
06-22 21:36:21.858 19857 19857 I FLTAG_SFM: getRequireClassLoader() succ ! className: com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
06-22 21:36:21.859 19857 19857 D FeatureFactory: loadFeature() : com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
06-22 21:36:21.859 19857 19857 D FeatureFactory: loadFeature() new IHwSplineOverScrollerEx()
06-22 21:36:21.862 19857 19857 D HwSplineOverScrollerExImpl: initSplineOverScrollerImpl paras: android.widget.OverScroller$SplineOverScroller@74f5a00,androidx.appcompat.view.ContextThemeWrapper@6358239
06-22 21:36:21.864 19857 19857 D HwSplineOverScrollerExImpl: initSplineOverScrollerImpl: mScrollerVelocity is 0, value is 0
06-22 21:36:21.867 19857 19857 I FLTAG_FM: loadFeature class:com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
06-22 21:36:21.867 19857 19857 I FLTAG_SFM: getRequireClassLoader() succ ! className: com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
06-22 21:36:21.867 19857 19857 D FeatureFactory: loadFeature() : com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
06-22 21:36:21.867 19857 19857 D FeatureFactory: loadFeature() new IHwSplineOverScrollerEx()
06-22 21:36:21.868 19857 19857 D HwSplineOverScrollerExImpl: initSplineOverScrollerImpl paras: android.widget.OverScroller$SplineOverScroller@6e308f5,androidx.appcompat.view.ContextThemeWrapper@6358239
06-22 21:36:21.868 19857 19857 D HwSplineOverScrollerExImpl: initSplineOverScrollerImpl: mScrollerVelocity is 0, value is 0
06-22 21:36:22.063 19857 19857 I AwareAppScheduleManager: post cache drawable res id to aware, resId = 17302082, packagename = com.example.helloworld, cost time = 11428646
06-22 21:36:22.089 19857 19857 W mple.helloworl: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection)
06-22 21:36:22.098 19857 19857 W mple.helloworl: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)
06-22 21:36:22.122 19857 19857 D TextView: get Display Panel Type is : 0
06-22 21:36:22.148 19857 19857 D MainActivity: Starting Python
06-22 21:36:22.261 19857 19910 E : [ZeroHung]zrhung_get_config: Get config failed for wp[0x0008]
06-22 21:36:22.361 19857 19910 E : [ZeroHung]zrhung_get_config: Get config failed for wp[0x0008]
06-22 21:36:22.432 19857 20082 W native.stderr: Could not find platform independent libraries <prefix>
06-22 21:36:22.432 19857 20082 W native.stderr: Could not find platform dependent libraries <exec_prefix>
06-22 21:36:22.432 19857 20082 W native.stderr: Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
06-22 21:36:22.449 19857 19939 E : [ZeroHung]zrhung_get_config: Get config failed for wp[0x0102]
06-22 21:36:23.323 19857 19857 W mple.helloworl: Accessing hidden method Ljava/util/LinkedHashMap$LinkedHashIterator;->hasNext()Z (light greylist, JNI)
06-22 21:36:23.421 19857 19857 W mple.helloworl: Accessing hidden method Landroid/content/Context;->getSharedPreferences(Ljava/io/File;I)Landroid/content/SharedPreferences; (light greylist, JNI)
06-22 21:36:23.425 19857 19857 W mple.helloworl: Accessing hidden method Landroid/content/ContextWrapper;->getSharedPreferences(Ljava/io/File;I)Landroid/content/SharedPreferences; (light greylist, JNI)
06-22 21:36:23.449 19857 19939 E : [ZeroHung]zrhung_get_config: Get config failed for wp[0x0102]
06-22 21:36:23.499 19857 19857 W asset : seek out of range: want -20, end=22
06-22 21:36:23.916 19857 19857 D MainActivity: Running main module helloworld
06-22 21:36:24.450 19857 19939 E : [ZeroHung]zrhung_get_config: Get config failed for wp[0x0102]
06-22 21:36:24.456 19857 19939 D : [ZeroHung]zrhung_send_event: wp=257, ret=-1
06-22 21:36:24.456 19857 19939 E ZrHungImpl: sendAppFreezeEvent failed!
06-22 21:36:25.005 19857 19857 D AndroidRuntime: Shutting down VM
06-22 21:36:25.007 19857 19857 W mple.helloworl: Accessing hidden method Lcom/msic/qarth/PatchStore;->createDisableExceptionQarthFile(Ljava/lang/Throwable;)Z (blacklist, JNI)
06-22 21:36:25.007 19857 19857 E mple.helloworl: [qarth_debug:] get PatchStore::createDisableExceptionQarthFile method fail.
--------- beginning of crash
06-22 21:36:25.018 19857 19857 E AndroidRuntime: FATAL EXCEPTION: main
06-22 21:36:25.018 19857 19857 E AndroidRuntime: Process: com.example.helloworld, PID: 19857
06-22 21:36:25.018 19857 19857 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.helloworld/org.beeware.android.MainActivity}: com.chaquo.python.PyException: java.lang.NoClassDefFoundError: android.graphics.text.LineBreaker
...
...
...
06-22 21:36:25.070 19857 19857 I Process : Sending signal. PID: 19857 SIG: 9
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
This bug (beeware/toga#1878) was introduced in Toga 0.3.1, and will be fixed in Toga 0.3.2. Meanwhile, you can work around it by going back to Toga 0.3.0. |
Beta Was this translation helpful? Give feedback.
This bug (beeware/toga#1878) was introduced in Toga 0.3.1, and will be fixed in Toga 0.3.2. Meanwhile, you can work around it by going back to Toga 0.3.0.