android - 找不到版本标签字符串。文件必须更新

标签 android python kivy android-sdk-tools

我正在尝试使用命令为 android 创建 apk

./build.py --package org.test.hideapp --name hideapp --version 1.0 --dir /home/home/Downloads/Projects/test5/hideapp debug adb installd

但是,我收到错误

./build.py --package org.test.hideapp --name hideapp --version 1.0 --dir /home/home/Downloads/Projects/test5/hideapp debug adb installd
Updated project.properties
Updated local.properties
----------
build.xml: Failed to find version-tag string. File must be updated.
In order to not erase potential customizations, the file will not be automatically regenerated.
If no changes have been made to the file, delete it manually and run the command again.
If you have made customizations to the build process, the file must be manually updated.
It is recommended to:
* Copy current file to a safe location.
* Delete original file.
* Run command again to generate a new file.
* Port customizations to the new file, by looking at the new rules file
  located at <SDK>/tools/ant/build.xml
* Update file to contain
      version-tag: custom
      to prevent file from being rewritten automatically by the SDK tools.
----------
Updated file ./proguard-project.txt
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'

最佳答案

我知道有点晚了,但我也遇到了同样的问题:P 我所做的只是删除原来的 build.xml 并重新运行该命令,重新运行后将自动为您创建一个新的 build.xml。

关于android - 找不到版本标签字符串。文件必须更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20726732/

相关文章:

android - MariaDB & Android - 实现消息功能,分别选择用户及其消息

java - Android 应用程序和 Java 服务器问题。连接被拒绝

python - 当模型超过内存容量时,tensorflow 是否处理交换 GPU 内存?

python - 使用 google.appengine.api.mail.send_mail 发送电子邮件时如何显示发件人姓名而不是电子邮件地址

python - 即使我安装了,也没有名为 'Kivy' 的模块

python - 以 python 呈现,但不以 kivy 语言呈现

android - 一个接一个地播放视频

android - 如何获取最后一个 ScrollView 位置,scrollview

python - 使用 BS4 解析 XML

emacs - emacs 中的 kv 语法高亮