2

Android デバイスで kivy で作成された単純な Hello World アプリを実行しようとしています。アプリは Linux では問題なく動作しますが、Android で開くとすぐにクラッシュします。問題を解決するために多くのパッケージをインストールしましたが、エラーは解決しません。これがの出力で adb logcatあり、私が使用した場合も同じbuildozer android logcatです:

 dlopen("/data/data/org.test.myapp/files/lib/python2.7/lib-dynload/_sqlite3.so", RTLD_LAZY) failed: dlopen failed: library "/data/data/org.test.myapp/files/lib/python2.7/lib-dynload/_sqlite3.so" not found
E/art (881): dlopen("/data/data/org.test.myapp/files/lib/python2.7/lib-dynload/_imaging.so", RTLD_LAZY) failed: dlopen failed: library "/data/data/org.test.myapp/files/lib/python2.7/lib-dynload/_imaging.so" not found
I/python  (  881): Starting audio thread
I/libSDL  (  881): Physical screen resolution is 720x1280
I/python  (  881): Initialize Python for Android
D/        (  762): batch called handle:1 sample_ns:66667000 latency_ns:0
D/        (  762): MPU6880 3-axis Accelerometer calling driver setDelay 66 ms
I/python  (  881): ['/data/data/org.test.myapp/files/lib/python2.7/site-packages', '/data/data/org.test.myapp/files/lib/site-python']
I/python  (  881): Android path ['/data/data/org.test.myapp/files/lib/python27.zip', '/data/data/org.test.myapp/files/lib/python2.7', '/data/data/org.test.myapp/files/lib/python2.7/lib-dynload', '/data/data/org.test.myapp/files/lib/python2.7/site-packages', '/data/data/org.test.myapp/files', '/data/data/org.test.myapp/files/_applibs']
I/python  (14163): Android kivy bootstrap done. __name__ is __main__
I/python  (14163): Run user program, change dir and execute main.py
I/python  (14163): No main.pyo / main.py found.
I/art     (14163): System.exit called, status: 0
I/AndroidRuntime(14163): VM exiting with result code 0, cleanup skipped.
W/InputDispatcher(  762): channel '2457e5a7 org.test.myapp/org.renpy.android.PythonActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
E/InputDispatcher(  762): channel '2457e5a7 org.test.myapp/org.renpy.android.PythonActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
I/WindowState(  762): WIN DEATH: Window{2457e5a7 u0 org.test.myapp/org.renpy.android.PythonActivity}
W/InputDispatcher(  762): Attempted to unregister already unregistered input channel '2457e5a7 org.test.myapp/org.renpy.android.PythonActivity (server)'
W/WindowManager(  762): Force-removing child win Window{17a9e29f u0 SurfaceView} from container Window{2457e5a7 u0 org.test.myapp/org.renpy.android.PythonActivity}
W/WindowManager(  762): Failed looking up window
W/WindowManager(  762): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@78fda54 does not exist
W/WindowManager(  762):     at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8510)
W/WindowManager(  762):     at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8501)
W/WindowManager(  762):     at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1111)
W/WindowManager(  762):     at android.os.BinderProxy.sendDeathNotice(Binder.java:551)
I/WindowState(  762): WIN DEATH: null
I/ActivityManager(  762): Process org.test.myapp:python (pid 14163) has died
W/ActivityManager(  762): Force removing ActivityRecord{8a9eaea u0 org.test.myapp/org.renpy.android.PythonActivity t294}: app died, no saved state
W/InputMethodManagerService(  762): Got RemoteException sending setActive(false) notification to pid 14163 uid 10122
4

1 に答える 1

2

ログに基づいて、この 2 行を見つけます

I/python  (14163): Run user program, change dir and execute main.py
I/python  (14163): No main.pyo / main.py found.

main.py を検索しますが、見つからないと言っています。したがって、ファイルの名前を main.py に変更して再構築します。

于 2016-04-07T20:52:00.507 に答える