2015-03-16 31 views
6

trong khi tôi đang cố gắng xây dựng, đẩy và tự động chạy apk trên điện thoại của tôi sử dụng buildozer android debug deploy run nó cho thấy các lỗi này:Buildozer thất bại trong việc thực hiện lệnh cuối cùng

# Check configuration tokens 

# Ensure build layout 

# Check configuration tokens 

# Preparing build 


# Check requirements for android 
# Install platform 
# Apache ANT found at /home/sahil/.buildozer/android/platform/apacheant-1.9.4 
# Android SDK found at /home/sahil/.buildozer/android/platform/android-sdk-21 
# Android NDK found at /home/sahil/.buildozer/android/platform/android-ndk-r9c 
# Check application requirements 
# Check garden requirements 
# Compile platform 
# Distribution already compiled, pass. 
# Build the application #21 
# Package the application 
# Command failed: /usr/bin/python2.7 build.py --name demo --version 1.2.0 --package org.test.myapp --private /home/sahil/kivy/.buildozer/android/app --sdk 14 --minsdk 8 --orientation landscape debug 
# 
# Buildozer failed to execute the last command 
# If the error is not obvious, please raise the log_level to 2 
# and retry the latest command. 
# In case of a bug report, please add a full log with log_level = 2 

Tôi đã kiểm tra nó ra trong tài liệu hướng dẫn và cũng trên internet nhưng không tìm thấy gì về nó. VÀ tôi chỉ đang tạo đơn xin Xin chào thế giới đơn giản:

#version.regex 
#__version__= '1.0' 

from kivy.app import App 
from kivy.uix.label import Label 


class SimpleApp(App): 
    def build(self): 
     return Label(text="Hello World") 


if __name__=="__main__": 
    SimpleApp().run() 

Cảm ơn!

Trả lời

10

Đầu tiên, hãy tăng log level = 2 trong buildozer.spec, sau đó nó sẽ hiển thị tất cả nhật ký và lỗi rõ ràng. Ở đây thiếu .buildozer/android/platform/python-for-android/dist/myapp/python 2.7 build.py. Để khắc phục vấn đề này chạy lệnh này buildozer android clean và sau đó xây dựng lại nó bằng cách sử dụng buildozer android debug hoặc tự động chạy bằng cách sử dụng buildozer android debug deploy run.

3

Có thể bạn đang chạy phiên bản cập nhật của cython, tất cả các bản phát hành chính bắt đầu từ 0,21 trở lên, bạn phải hạ cấp cython xuống 0,20 (sudo pip install cython == 0.20) rồi xóa thư mục .buildozer (rm -Rf .buildozer) và sau đó xây dựng lại bằng 'sửa lỗi android buildozer'

Các vấn đề liên quan