一些错误来自android和python3crystax上的plyer

时间:2017-11-20 16:13:58

标签: android python python-3.x

我使用python3crystax构建plyer apk但当我在android上运行apk时显示错误消息"访问org.renpy.android.PythonActivity已弃用,将在未来版本中删除。"我尝试使用旧版本的python-for-android它得到其他错误!

如果我只是更改plyer init Activity它可以运行但仍然可以看到任何通知!

File "main.py", line 9, in <module> 11-07 00:58:08.840 7082-7112/youer.com.school I/python: from kivy.app import App 11-07 00:58:08.841 7082-7112/youer.com.school I/python: File "/data/user/0/youer.com.school/files/app/crystax_python/site-packages/kivy/app.py", line 319, in <module> 11-07 00:58:08.843 7082-7112/youer.com.school I/python: from kivy.base import runTouchApp, stopTouchApp 11-07 00:58:08.843 7082-7112/youer.com.school I/python: File "/data/user/0/youer.com.school/files/app/crystax_python/site-packages/kivy/base.py", line 26, in <module> 11-07 00:58:08.845 7082-7112/youer.com.school I/python: from kivy.clock import Clock 11-07 00:58:08.845 7082-7112/youer.com.school I/python: File "/data/user/0/youer.com.school/files/app/crystax_python/site-packages/kivy/clock.py", line 362, in <module> 11-07 00:58:08.847 7082-7112/youer.com.school I/python: from kivy._clock import CyClockBase, ClockEvent, FreeClockEvent, \ 11-07 00:58:08.848 7082-7112/youer.com.school I/python: ImportError: dlopen failed: cannot locate symbol "_Py_NoneStruct" referenced by "/data/data/youer.com.school/files/app/crystax_python/site-packages/kivy/_clock.so"...

1 个答案:

答案 0 :(得分:0)

org.renpy.android.PythonActivity更改为org.kivy.android.PythonActivity