kivymd / KivyMD

KivyMD is a collection of Material Design compliant widgets for use with Kivy, a framework for cross-platform, touch-enabled graphical applications. https://youtube.com/c/KivyMD https://twitter.com/KivyMD https://habr.com/ru/users/kivymd https://stackoverflow.com/tags/kivymd
https://kivymd.readthedocs.io
MIT License
2.23k stars 672 forks source link

Failed to use MDSwiper on android #682

Closed HK-Mattew closed 3 years ago

HK-Mattew commented 3 years ago

My code works perfectly on the desktop, But on android right after opening the app it closes me generating the following error:

11-23 15:20:49.687 1660 1959 I python : kivy.factory.FactoryException: Unknown class <MDSwiper> 11-23 15:20:49.687 1660 1959 I python : Python for android ended.

HeaTTheatR commented 3 years ago

@HK-Mattew MDSwiper class is only available in the master branch of the library - 0.104.2.dev0:

Right

requirements = https://github.com/kivymd/KivyMD/archive/master.zip, ...

Wrong

requirements = kivymd, ...

HK-Mattew commented 3 years ago

I'm using anyway, but even so the error persists on android

HeaTTheatR commented 3 years ago

@HK-Mattew Attach log (adb logcat | grep python)

HeaTTheatR commented 3 years ago

@HK-Mattew Attach log (adb logcat | grep python)

HK-Mattew commented 3 years ago

My logs

11-23 16:53:20.630 6365 6553 W ResourceType: ResTable_typeSpec entry count inconsistent: given 2852, previously 2851 11-23 16:53:20.631 6365 6553 W ResourceType: ResTable_typeSpec entry count inconsistent: given 125, previously 123 11-23 16:53:20.631 6365 6553 W ResourceType: ResTable_typeSpec entry count inconsistent: given 1311, previously 1826 11-23 16:53:20.692 2649 3243 D ActivityManager: cleanUpApplicationRecord -- 5987 11-23 16:53:20.739 6658 6658 W System : ClassLoader referenced unknown path: /system/priv-app/LGApplicationManager/lib/arm 11-23 16:53:20.766 6658 6658 I AppUp4:AppBoxCP: onCreate 11-23 16:53:20.770 6658 6658 W AppUp4:DB: [AppBoxDatabaseHelper] construct 11-23 16:53:20.781 6658 6658 I AppUp4:DB: setFingerPrint start 11-23 16:53:20.782 6658 6658 I AppUp4:DB: newfinger = lge/m253_global_com/m253:6.0/MRA58K/163570836ddf9:user/release-keys SDK version = 23 11-23 16:53:20.790 6658 6658 I AppUp4:DB: beforefinger = lge/m253_global_com/m253:6.0/MRA58K/163570836ddf9:user/release-keys 11-23 16:53:20.790 6658 6658 I AppUp4:DB: SDK version = 23 11-23 16:53:20.790 6658 6658 I AppUp4:DB: beforefinger == newfinger no write in DB 11-23 16:53:20.791 6658 6658 D AppUp4:AppBoxApplication: AppBoxApplication onCreate() 11-23 16:53:20.796 2649 3494 I ActivityManager: Killing 6004:com.android.gallery3d/u0a26 (adj 15): empty #15 11-23 16:53:20.892 2649 3495 D ActivityManager: cleanUpApplicationRecord -- 6004 11-23 16:53:20.907 2649 2868 I ActivityManager: Start proc 6671:com.android.contacts/u0a22 for broadcast com.android.contacts/.quickcontact.PackageIntentReceiver 11-23 16:53:21.042 6671 6671 W System : ClassLoader referenced unknown path: /system/priv-app/LGContacts/lib/arm 11-23 16:53:21.117 6245 6449 I python : Traceback (most recent call last): 11-23 16:53:21.118 6245 6449 I python : File "/home/hk-mattew/Documentos/NewApp/.buildozer/android/app/main.py", line 38, in 11-23 16:53:21.120 6245 6449 I python : File "/home/hk-mattew/Documentos/NewApp/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/appteste/kivy/app.py", line 829, in run 11-23 16:53:21.121 6245 6449 I python : File "/home/hk-mattew/Documentos/NewApp/.buildozer/android/app/main.py", line 31, in build 11-23 16:53:21.122 6245 6449 I python : File "/home/hk-mattew/Documentos/NewApp/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/appteste/kivy/uix/relativelayout.py", line 265, in init 11-23 16:53:21.123 6245 6449 I python : File "/home/hk-mattew/Documentos/NewApp/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/appteste/kivy/uix/floatlayout.py", line 65, in init 11-23 16:53:21.124 6245 6449 I python : File "/home/hk-mattew/Documentos/NewApp/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/appteste/kivy/uix/layout.py", line 76, in init 11-23 16:53:21.125 6245 6449 I python : File "/home/hk-mattew/Documentos/NewApp/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/appteste/kivy/uix/widget.py", line 359, in init 11-23 16:53:21.127 6245 6449 I python : File "/home/hk-mattew/Documentos/NewApp/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/appteste/kivy/uix/widget.py", line 467, in apply_class_lang_rules 11-23 16:53:21.128 6245 6449 I python : File "/home/hk-mattew/Documentos/NewApp/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/appteste/kivy/lang/builder.py", line 536, in apply 11-23 16:53:21.130 6245 6449 I python : File "/home/hk-mattew/Documentos/NewApp/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/appteste/kivy/lang/builder.py", line 616, in _apply_rule 11-23 16:53:21.131 6245 6449 I python : File "/home/hk-mattew/Documentos/NewApp/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/appteste/kivy/factory.py", line 131, in getattr 11-23 16:53:21.132 6245 6449 I python : kivy.factory.FactoryException: Unknown class MDSwiper 11-23 16:53:21.133 6245 6449 I python : Python for android ended. 11-23 16:53:21.135 2649 3496 I AccountManagerService: getTypesVisibleToCaller: isPermitted? false 11-23 16:53:21.155 2649 2798 V WifiServerServiceExt: checkPollTimer Cnt= 0 rssi =-60 threshold=-100 11-23 16:53:21.173 6671 6671 I SystemConfig: BUILD Country: SCA 11-23 16:53:21.173 6671 6671 I SystemConfig: BUILD Operator: OPEN 11-23 16:53:21.190 6671 6671 I NameIDHelper: NameIDHelper (ContactsComman) static init called! 11-23 16:53:21.193 6671 6671 D NameIDHelper: error trying to detect package -- we are probably not installed 11-23 16:53:21.202 6671 6671 D SIMContacts: SimConfig|ENABLE_MULTI_SIM_MODE : true 11-23 16:53:21.202 6671 6671 D SIMContacts: SimConfig|Slot count : 2 11-23 16:53:21.215 6671 6684 I SystemConfig: pm.hasSystemFeature(com.lge.ims.rcs) = false 11-23 16:53:21.215 6671 6684 I SystemConfig: existFile = false 11-23 16:53:21.215 6671 6684 I SystemConfig: canReadFile = false 11-23 16:53:21.215 6671 6684 I SystemConfig: systemFeature RCS result false 11-23 16:53:21.215 6671 6684 D SystemConfig: refreshRcsSupport() :false 11-23 16:53:21.235 2649 3498 I ActivityManager: Start proc 6686:com.android.gallery3d/u0a26 for broadcast com.android.gallery3d/.app.PackagesMonitor 11-23 16:53:21.237 2649 3498 I ActivityManager: Killing 6472:com.android.settings/1000 (adj 15): empty #15 11-23 16:53:21.304 2649 2868 D ActivityManager: cleanUpApplicationRecord -- 6472 11-23 16:53:21.388 2854 2854 I [SystemUI]NetworkController: Change in state from: connected=true,enabled=true,level=2,inetCondition=1,iconGroup=IconGroup(Default Wi-Fi Icons),activityIn=true,activityOut=true,rssi=-66,lastModified=11-23 04:53:14,ssid="SSID",ktGigaWiFi=false,attWifiCall=false 11-23 16:53:21.388 2854 2854 I [SystemUI]NetworkController: to: connected=true,enabled=true,level=2,inetCondition=1,iconGroup=IconGroup(Default Wi-Fi Icons),activityIn=false,activityOut=false,rssi=-66,lastModified=11-23 04:53:14,ssid="SSID",ktGigaWiFi=false,attWifiCall=false 11-23 16:53:21.438 6686 6686 W System : ClassLoader referenced unknown path: /system/priv-app/LGGallery/lib/arm 11-23 16:53:21.526 6365 6553 W ResourceType: ResTable_typeSpec entry count inconsistent: given 4, previously 7 11-23 16:53:21.526 6365 6553 W ResourceType: ResTable_typeSpec entry count inconsistent: given 4849, previously 4972 11-23 16:53:21.531 6365 6553 W ResourceType: ResTable_typeSpec entry count inconsistent: given 112, previously 145 11-23 16:53:21.531 6365 6553 W ResourceType: ResTable_typeSpec entry count inconsistent: given 7, previously 9 11-23 16:53:21.531 6365 6553 W ResourceType: ResTable_typeSpec entry count inconsistent: given 2067, previously 2068 11-23 16:53:21.532 6365 6553 W ResourceType: ResTable_typeSpec entry count inconsistent: given 1684, previously 1689 11-23 16:53:21.533 6365 6553 W ResourceType: ResTable_typeSpec entry count inconsistent: given 1772, previously 1829 11-23 16:53:21.533 6365 6553 W ResourceType: ResTable_typeSpec entry count inconsistent: given 171, previously 854

HeaTTheatR commented 3 years ago

@HK-Mattew Full log (adb logcat | grep python)

HK-Mattew commented 3 years ago

Here

adb logcat | grep python adb server version (41) doesn't match this client (39); killing...

HeaTTheatR commented 3 years ago

@HK-Mattew

Снимок экрана 2020-11-23 в 23 26 53

Снимок экрана 2020-11-23 в 23 25 35

HK-Mattew commented 3 years ago

So is my requirements on buildozer.spec. I've deleted the build files and it doesn't change! I believe that the problem is already from the buildozer then

requirements = python3, kivy, requests, urllib3, idna, chardet==3.0.4, pygments, pyjnius, https://github.com/kivymd/KivyMD/archive/master.zip

HeaTTheatR commented 3 years ago

@HK-Mattew Remove .buildozer folder and run build again.

HK-Mattew commented 3 years ago

Now yes it worked, Thank you very much for making your time available to help me and sorry for any problem I have ;)

HeaTTheatR commented 3 years ago

@HK-Mattew

55555777777