2017-03-03 146 views
0

我在空閒時間致力於遊戲的開發,因爲pygame不處理我使用kivy的多點觸控,但是當我想包含kivent_core以獲得更好的性能時,我的遊戲就不再在android上工作。這是終端在調試時顯示的內容:爲什麼kivent_core不能在android操作系統上工作?

I/python (28331): [INFO ] [GL   ] OpenGL parsed version: 2, 0 
I/python (28331): [INFO ] [GL   ] Texture max size <4096> 
I/python (28331): [INFO ] [GL   ] Texture max units <8> 
I/python (28331): [INFO ] [Window  ] auto add sdl2 input provider 
I/python (28331): [INFO ] [Window  ] virtual keyboard not allowed, single mode, not docked 
I/python (28331): Traceback (most recent call last): 
I/python (28331): File "/home/ivandg/Practica_1/main.py", line 4, in <module> 
I/python (28331): File "/home/ivandg/.local/share/python-for-android/dists/unnamed_dist_1/private/lib/python2.7/site-packages/kivent_core/__init__.py", line 8, in <module> 
I/python (28331): File "/home/ivandg/.local/share/python-for-android/dists/unnamed_dist_1/private/lib/python2.7/site-packages/kivent_core/rendering/__init__.py", line 3, in <module> 
I/python (28331): File "kivent_core/systems/gamesystem.pxd", line 3, in init kivent_core.rendering.cmesh (kivent_core/rendering/cmesh.c:3798) 
I/python (28331): File "/home/ivandg/.local/share/python-for-android/dists/unnamed_dist_1/private/lib/python2.7/site-packages/kivent_core/systems/__init__.py", line 1, in <module> 
I/python (28331): File "kivent_core/managers/game_manager.pxd", line 3, in init kivent_core.systems.gamesystem (kivent_core/systems/gamesystem.c:4792) 
I/python (28331): File "/home/ivandg/.local/share/python-for-android/dists/unnamed_dist_1/private/lib/python2.7/site-packages/kivent_core/managers/__init__.py", line 1, in <module> 
I/python (28331): File "vertex_instructions.pxd", line 21, in init kivent_core.managers.resource_managers (kivent_core/managers/resource_managers.c:26770) 
I/python (28331): ValueError: kivy.graphics.vertex_instructions.Mesh has the wrong size, try recompiling 
I/python (28331): Python for android ended. 

我使用python-for-android來創建APK。

回答

0

我已經找到了解決辦法,這就是我所做的:

  1. 卸載kivy 1.9.1
  2. 卸載蟒蛇,kivy
  3. 安裝kivy主(1.9.2)從這裏下載: kivy-master
  4. 安裝kivent-new_cgl_module(2.2)從這裏下載: kivent-new_cgl_modul
  5. 與buildozer創建APK:buildozer -v android debug
  6. 如果buildozer失敗,更改該文件夾中 YourApp/.buildozer /安卓/平臺/蟒蛇換的Android /爲 的食譜,在kivent-new_cgl_module食譜kiven_core和 kivent_cymunk食譜/模塊/食譜

在這裏,我只把它放在像我這樣的新手步驟。 謝謝你Kovak。

相關問題