我想从我的python main.py文件构建apk。我正在运行此命令
./build.py --package org.test.testapp --name testapp --version 1.0 --dir testapp debug adb installd
我收到错误
Error: Target id 'android-8' is not valid. Use 'android list targets' to get the target ids.
Traceback (most recent call last):
File "./build.py", line 412, in <module>
make_package(args)
File "./build.py", line 304, in make_package
make_pythonzip()
File "./build.py", line 132, in make_pythonzip
python_files = [x for x in listfiles(d) if select(x)]
File "./build.py", line 96, in listfiles
for item in os.listdir(d):
OSError: [Errno 2] No such file or directory: '/home/home/Downloads/python-for-android/src/private/lib/python2.7'
答案 0 :(得分:1)
这意味着您没有遵循requirements / python-for-android安装过程。您遇到此问题是因为您未在计算机上安装Android API 8.