<p>我得到了这个错误,但真正的错误略高于这个:</p>
<pre class="lang-py prettyprint-override"><code>Buildfile: /Users/rallen/Documents/Devel/python/kivy/python-for-android/dist/default/build.xml
BUILD FAILED
/Users/rallen/Documents/Devel/python/kivy/python-for-android/dist/default/build.xml:6: **Source resource does not exist: /Users/rallen/Documents/Devel/python/kivy/python-for-android/dist/default/project.properties**
Total time: 0 seconds
Traceback (most recent call last):
File "./build.py", line 412, in <module>
make_package(args)
File "./build.py", line 336, in make_package
subprocess.check_call([ANT, arg])
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 511, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ant', 'debug']' returned non-zero exit status 1
</code></pre>
<p>我搜索了一下,发现</p>
<p><a href="https://groups.google.com/forum/#!topic/kivy-users/igYampuxxCU" rel="nofollow">https://groups.google.com/forum/#!topic/kivy-users/igYampuxxCU</a></p>
<p>它说只要创建<code>dist/default/project.properties</code>并</p>
<pre><code>target=android-14
</code></pre>
<p>在那个档案里。我实际上使用了<code>android-19</code>,但这让我通过了这个问题。</p>