1

我正在尝试实现这个 kivy 示例

http://python-for-android.readthedocs.org/en/latest/helloworld/

当我编译(在 kivy 的 ubuntu vm 上)并在我的 android 设备(它的 Google Nexus 1)上运行它时,Button 和 Label 中的文本标签都显示为空白。然而,该示例在我的笔记本电脑上运行得非常好。

如何解决此问题并显示文本?将不胜感激任何帮助。提前致谢。

4

1 回答 1

1

It's a bug #1192 in the latest version 1.7.0, for phones that don't support power-of-two textures. I've changed how the textures are created, but missed one case.

The issue happen only on the phone with a crappy GPU :) Yes crappy, because OpenGL ES 2 specification says that power-of-two textures are mandatory. Guess what, Adreno 200 series (and maybe others) doesn't support them, but claim they are GLES 2.

Anyway, the bug has been fixed yesterday, and i'll release a new minor release in a day or two. If you compiled python-for-android yourself, just do:

cd python-for-android
git clean -dxf
git pull origin master

Then restart the compilation with ./distribute.sh ... It will works.

于 2013-05-23T19:01:28.387 回答