IOError: [Errno 2] No such file or directory: u'/…/RetroApp-debug.apk'

风流意气都作罢 提交于 2019-12-01 01:33:00

Please change your Python script as follow:

main.py

class PongGame(Widget):
...
    def __init__(self, **kwargs):
        super(PongGame, self).__init__(**kwargs)
...

    def retry(self):

Since you are using Python 3.x, you need to do the following:

  1. Install Buildozer with python3 support

    git clone https://github.com/kivy/buildozer

    cd buildozer

    python setup.py build

    sudo pip install -e .

  2. Download and extract the Crystax NDK somewhere (~/opt/ is one option): https://www.crystax.net/en/download

  3. Specify the following in your buildozer.spec:

buildozer.spec

requirements = python3crystax,kivy

android.ndk = 10.3.2

android.ndk_path = /opt/crystax-ndk-10.3.2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!