我創(chuàng)建了一個(gè) KivyMD 應(yīng)用程序并嘗試在 Android 設(shè)備上運(yùn)行它。該應(yīng)用程序是一款名為 COVID Killers 的游戲。有開始屏幕、游戲屏幕和游戲結(jié)束屏幕。在開始屏幕中,您開始游戲。在游戲畫面中,有病毒,你必須用肥皂塊擊打它們。在 game over 屏幕中有一個(gè) game over GIF,你可以點(diǎn)擊一個(gè)按鈕重新開始游戲。在 Android 設(shè)備上,當(dāng)我扔一塊肥皂時(shí),肥皂會(huì)接觸到病毒,但一旦接觸到病毒,應(yīng)用程序就會(huì)崩潰。我已經(jīng)發(fā)布了另一個(gè)關(guān)于這個(gè)應(yīng)用程序的問題KivyMD MDFlatButton not clickable & Kivy ScreenManager not working當(dāng)我還在編碼的時(shí)候。但我最終修復(fù)了應(yīng)用程序。因此,由于應(yīng)用程序在 Android 上崩潰,我查看了 ADB 日志,并看到了這個(gè)回溯:07-25 14:24:01.802 14777 14870 I python : Traceback (most recent call last):07-25 14:24:01.802 14777 14870 I python : File "~/MEGAsync/KivyLab/KivyMD/COVIDKillers/.buildozer/android/app/main.py", line 427, in <module>07-25 14:24:01.803 14777 14870 I python : File "~/MEGAsync/KivyLab/KivyMD/COVIDKillers/.buildozer/android/platform/build-arm64-v8a/build/python-installs/COVIDKillers/kivy/app.py", line 855, in run07-25 14:24:01.803 14777 14870 I python : File "~/MEGAsync/KivyLab/KivyMD/COVIDKillers/.buildozer/android/platform/build-arm64-v8a/build/python-installs/COVIDKillers/kivy/base.py", line 504, in runTouchApp07-25 14:24:01.803 14777 14870 I python : File "~/MEGAsync/KivyLab/KivyMD/COVIDKillers/.buildozer/android/platform/build-arm64-v8a/build/python-installs/COVIDKillers/kivy/core/window/window_sdl2.py", line 747, in mainloop07-25 14:24:01.803 14777 14870 I python : File "~/MEGAsync/KivyLab/KivyMD/COVIDKillers/.buildozer/android/platform/build-arm64-v8a/build/python-installs/COVIDKillers/kivy/core/window/window_sdl2.py", line 479, in _mainloop07-25 14:24:01.803 14777 14870 I python : File "~/MEGAsync/KivyLab/KivyMD/COVIDKillers/.buildozer/android/platform/build-arm64-v8a/build/python-installs/COVIDKillers/kivy/base.py", line 348, in idle07-25 14:24:01.804 14777 14870 I python : File "~/MEGAsync/KivyLab/KivyMD/COVIDKillers/.buildozer/android/platform/build-arm64-v8a/build/python-installs/COVIDKillers/kivy/clock.py", line 598, in tick_draw還有一個(gè) Java 錯(cuò)誤。由于錯(cuò)誤真的很長(zhǎng),這里是它的鏈接:Java Error有人知道是什么導(dǎo)致我的應(yīng)用程序崩潰嗎?如果有人需要查看我的應(yīng)用程序的代碼,我會(huì)留下一個(gè)鏈接。提前致謝!
添加回答
舉報(bào)
0/150
提交
取消