1. <i id='g9xmd'><tr id='g9xmd'><dt id='g9xmd'><q id='g9xmd'><span id='g9xmd'><b id='g9xmd'><form id='g9xmd'><ins id='g9xmd'></ins><ul id='g9xmd'></ul><sub id='g9xmd'></sub></form><legend id='g9xmd'></legend><bdo id='g9xmd'><pre id='g9xmd'><center id='g9xmd'></center></pre></bdo></b><th id='g9xmd'></th></span></q></dt></tr></i><div id='g9xmd'><tfoot id='g9xmd'></tfoot><dl id='g9xmd'><fieldset id='g9xmd'></fieldset></dl></div>

      <small id='g9xmd'></small><noframes id='g9xmd'>

        <tfoot id='g9xmd'></tfoot>
        <legend id='g9xmd'><style id='g9xmd'><dir id='g9xmd'><q id='g9xmd'></q></dir></style></legend>

        • <bdo id='g9xmd'></bdo><ul id='g9xmd'></ul>
      1. 我无法为 android 构建 buildozer

        时间:2023-09-01

          <small id='jsPIl'></small><noframes id='jsPIl'>

          • <bdo id='jsPIl'></bdo><ul id='jsPIl'></ul>
          • <legend id='jsPIl'><style id='jsPIl'><dir id='jsPIl'><q id='jsPIl'></q></dir></style></legend>
            <i id='jsPIl'><tr id='jsPIl'><dt id='jsPIl'><q id='jsPIl'><span id='jsPIl'><b id='jsPIl'><form id='jsPIl'><ins id='jsPIl'></ins><ul id='jsPIl'></ul><sub id='jsPIl'></sub></form><legend id='jsPIl'></legend><bdo id='jsPIl'><pre id='jsPIl'><center id='jsPIl'></center></pre></bdo></b><th id='jsPIl'></th></span></q></dt></tr></i><div id='jsPIl'><tfoot id='jsPIl'></tfoot><dl id='jsPIl'><fieldset id='jsPIl'></fieldset></dl></div>
          • <tfoot id='jsPIl'></tfoot>

                    <tbody id='jsPIl'></tbody>
                  本文介绍了我无法为 android 构建 buildozer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我正在尝试使用 Kivy 和 Buildozer 创建一个 APK.我在 http://kivy.org/docs/的教程中做同样的事情guide/packaging-android.html 但我有错误,我不明白如何修复它们.请帮忙.这是我的错误日志:

                  I'm trying to create an APK using Kivy and Buildozer. I'm doing the same as in the tutorial at http://kivy.org/docs/guide/packaging-android.html but i have errors, and i don't understand how to fix them. Please help. This is my error log:

                  BUILD FAILED
                  /home/oleg/.buildozer/android/platform/android-sdk-21/tools/ant/build.xml:649: The following error occurred while executing this line:
                  /home/oleg/.buildozer/android/platform/android-sdk-21/tools/ant/build.xml:655: Execute failed: java.io.IOException: Cannot run program "/home/oleg/.buildozer/android/platform/android-sdk-21/build-tools/19.1.0/aidl": error=2, No such file or directory
                      at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
                      at java.lang.Runtime.exec(Runtime.java:620)
                      at org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
                      at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:428)
                      at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:442)
                      at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:628)
                      at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
                      at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
                      at com.android.ant.AidlExecTask$AidlProcessor.process(AidlExecTask.java:102)
                      at com.android.ant.MultiFilesTask.processFiles(MultiFilesTask.java:131)
                      at com.android.ant.AidlExecTask.execute(AidlExecTask.java:203)
                      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
                      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                      at java.lang.reflect.Method.invoke(Method.java:497)
                      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
                      at org.apache.tools.ant.Task.perform(Task.java:348)
                      at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
                      at com.android.ant.IfElseTask.execute(IfElseTask.java:120)
                      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
                      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                      at java.lang.reflect.Method.invoke(Method.java:497)
                      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
                      at org.apache.tools.ant.Task.perform(Task.java:348)
                      at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
                      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
                      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                      at java.lang.reflect.Method.invoke(Method.java:497)
                      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
                      at org.apache.tools.ant.Task.perform(Task.java:348)
                      at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:396)
                      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
                      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                      at java.lang.reflect.Method.invoke(Method.java:497)
                      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
                      at org.apache.tools.ant.Task.perform(Task.java:348)
                      at org.apache.tools.ant.Target.execute(Target.java:435)
                      at org.apache.tools.ant.Target.performTasks(Target.java:456)
                      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
                      at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
                      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
                      at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
                      at org.apache.tools.ant.Main.runBuild(Main.java:851)
                      at org.apache.tools.ant.Main.startAnt(Main.java:235)
                      at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
                      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
                  Caused by: java.io.IOException: error=2, No such file or directory
                      at java.lang.UNIXProcess.forkAndExec(Native Method)
                      at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
                      at java.lang.ProcessImpl.start(ProcessImpl.java:134)
                      at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
                      ... 48 more
                  
                  Total time: 1 second
                  o
                  assets/private.mp3: /home/oleg/Desktop/lol/.buildozer/android/platform/python-for-android/dist/myapp/private/lib/python2.7/lib-dynload/syslog.so
                  assets/private.mp3: /home/oleg/Desktop/lol/.buildozer/android/platform/python-for-android/dist/myapp/private/lib/python2.7/config/Setup
                  assets/private.mp3: /home/oleg/Desktop/lol/.buildozer/android/platform/python-for-android/dist/myapp/private/lib/python2.7/config/config.c
                  assets/private.mp3: /home/oleg/Desktop/lol/.buildozer/android/platform/python-for-android/dist/myapp/private/lib/python2.7/config/config.c.in
                  assets/private.mp3: /home/oleg/Desktop/lol/.buildozer/android/platform/python-for-android/dist/myapp/private/lib/python2.7/config/Makefile
                  assets/private.mp3: /home/oleg/Desktop/lol/.buildozer/android/platform/python-for-android/dist/myapp/private/lib/python2.7/config/Setup.local
                  assets/private.mp3: /home/oleg/Desktop/lol/.buildozer/android/platform/python-for-android/dist/myapp/private/lib/python2.7/config/Setup.config
                  assets/private.mp3: /home/oleg/Desktop/lol/.buildozer/android/platform/python-for-android/dist/myapp/private/lib/python2.7/config/install-sh
                  assets/private.mp3: /home/oleg/Desktop/lol/.buildozer/android/app/sitecustomize.pyo
                  assets/private.mp3: /home/oleg/Desktop/lol/.buildozer/android/app/main.pyo
                  Traceback (most recent call last):
                    File "build.py", line 508, in <module>
                      make_package(args)
                    File "build.py", line 357, in make_package
                      subprocess.check_call([ANT, arg])
                    File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
                      raise CalledProcessError(retcode, cmd)
                  subprocess.CalledProcessError: Command '['ant', 'debug']' returned non-zero exit status 1
                  # Command failed: /usr/bin/python build.py --name 'first app' --version 1.0 --package org.test.myapp --private /home/oleg/Desktop/lol/.buildozer/android/app --sdk 14 --minsdk 8 --orientation landscape debug
                  # 
                  # Buildozer failed to execute the last command
                  # The error might be hidden in the log above this error
                  # Please read the full log, and search for it before
                  # raising an issue with buildozer itself.
                  # In case of a bug report, please add a full log with log_level = 2
                  

                  推荐答案

                  我解决了!我看到了一些说明和一些软件包的具体安装,以便在 Ubuntu 14.04(64 位)上使用它.这是我的完整步骤:

                  I solve it! I saw a few instructions and specific installation of some packages for use it on Ubuntu 14.04 (64 bit). This is my full steps:

                  apt-get install python-pip
                  pip install --upgrade buildozer
                  
                  apt-get install python2.7-dev
                  pip install --upgrade cython
                  
                  dpkg --add-architecture i386
                  
                  apt-get update
                  apt-get install build-essential ccache git lib32z1 libncurses5:i386 libstdc++6:i386 python2.7 openjdk-7-jdk unzip zlib1g-dev zlib1g:i386
                  
                  apt-get install python-kivy
                  

                  这篇关于我无法为 android 构建 buildozer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:Kivy 和使用蓝牙发现设备 下一篇:如何在 Ubuntu 上安装 Buildozer 以创建 Kivy 应用的

                  相关文章

                  最新文章

                • <small id='6feaJ'></small><noframes id='6feaJ'>

                  <legend id='6feaJ'><style id='6feaJ'><dir id='6feaJ'><q id='6feaJ'></q></dir></style></legend>

                  <i id='6feaJ'><tr id='6feaJ'><dt id='6feaJ'><q id='6feaJ'><span id='6feaJ'><b id='6feaJ'><form id='6feaJ'><ins id='6feaJ'></ins><ul id='6feaJ'></ul><sub id='6feaJ'></sub></form><legend id='6feaJ'></legend><bdo id='6feaJ'><pre id='6feaJ'><center id='6feaJ'></center></pre></bdo></b><th id='6feaJ'></th></span></q></dt></tr></i><div id='6feaJ'><tfoot id='6feaJ'></tfoot><dl id='6feaJ'><fieldset id='6feaJ'></fieldset></dl></div>
                        <bdo id='6feaJ'></bdo><ul id='6feaJ'></ul>
                      <tfoot id='6feaJ'></tfoot>