2017-12-31 47 views
1

사용하기 위해 kivy buildozer을 준비했습니다. 설치의 나는, 3 단계 후 파이썬 3에 대한 지침 here 프로세스를 사용 buildozer.spec 파일이 완료되지 않았습니다 라인 (4 단계)했다에게 다음 내용 확인 : buildozer 후 설치에 대한Kivy : Buildozer.spec 파일이 완료되지 않았습니다.

requirements = kivy 
#android.ndk_path = 

메시지 안드로이드 디버그 배포 실행 :

# Unpacking Android NDK 
# Android NDK installation done. 
# Check application requirements 
# Check garden requirements 
# Compile platform 
# Command failed: /usr/bin/python -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir=/media/sf_ForBuildozer/.buildozer/android/platform/build 
# 
# 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 

문제의 근원은 무엇인가?

제가 첨가 LOG_LEVEL = 2 섹션 buildozer 새 메시지 :

# Run '/usr/bin/python -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir=/media/sf_ForBuildozer/.buildozer/android/platform/build' 
# Cwd /media/sf_ForBuildozer/.buildozer/android/platform/python-for-android-new-toolchain 
[INFO]: Will compile for the following archs: armeabi-v7a 
[INFO]: Found Android API target in $ANDROIDAPI 
[INFO]: Available Android APIs are() 
[WARNING]: Requested API target 19 is not available, install it with the SDK android tool. 
[WARNING]: Exiting. 
# Command failed: /usr/bin/python -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir=/media/sf_ForBuildozer/.buildozer/android/platform/build 
# 
# 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 

난 미카 Gerasimov의 addvices인가 짧은 공정 후에 I 새로운 메시지 수득 : 여기

# Run '/usr/bin/python -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir=/media/sf_ForBuildozer/.buildozer/android/platform/build' 
# Cwd /media/sf_ForBuildozer/.buildozer/android/platform/python-for-android-new-toolchain 
[INFO]: Will compile for the following archs: armeabi-v7a 
[INFO]: Found Android API target in $ANDROIDAPI 
[INFO]: Available Android APIs are() 
[WARNING]: Requested API target 19 is not available, install it with the SDK android tool. 
[WARNING]: Exiting. 
# Command failed: /usr/bin/python -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir=/media/sf_ForBuildozer/.buildozer/android/platform/build 
+1

게시 한 오류를 읽고 지침을 따르십시오. – inclement

+1

'buidozer.spec' 파일 (''buildozer ''내부)에'log_level = 2' 행을 추가하십시오. –

+0

첫 번째 질문을하기 전에 log_level = 2를 추가했지만 잘못된 행에 있습니다. 나는 그것을 수리하고 위의 질문에 새 메시지를 추가했습니다. – jasan

답변

0

문제 해당 SDK에는 대상 API 빌드를위한 모든 요소가 포함되어 있지 않습니다. 일반적으로 buildozer는 자동으로 처리하지만 때로는 it breaks입니다. 당신은 GUI를 통해 수동으로 물건을 설치할 수 있습니다 (위의 링크를 참조) 나는 보통 (리눅스) 콘솔을 통해 그것을 할 같이

echo y | android-sdk-linux/tools/android update sdk --all --no-ui --filter tools 
echo y | android-sdk-linux/tools/android update sdk --all --no-ui --filter platform-tools 
echo y | android-sdk-linux/tools/android update sdk --all --no-ui --filter build-tools-27.0.2 
echo y | android-sdk-linux/tools/android update sdk --all --no-ui --filter android-19 

android-sdk-linux/tools/android에서 DIR 사용 가능한 있는지 확인하여 SDK를 확인합니다. 이 모든 것을 설치 한 후에는 오류가 발생한다고 생각합니다.

+0

с новым годом! oracle virtualbox (컴퓨터 : https://kivy.org/docs/guide/packaging-android-vm.html)를 통해 Linux를 통해 처음으로 경험을 얻었습니다. Android SDK가있는 폴더를 찾을 수 없습니다. 날 도와 줄 수있어? – jasan

+0

@jasan 감사합니다! 'buildozer.spec'에서 안드로이드 SDK에 대한 경로를 수동으로 지정하지 않았다면 기본 디렉토리에 SDK를 다운로드합니다. 내가 잘못하지 않는다면이 폴더에서 SDK를 찾을 것입니다.'~/.buildozer/android/platform /'. '.buildozer /'폴더는 "user"디렉토리에 있으므로 전체 경로는'/ home/kivy/.buildozer/android/platform/android-sdk-20 /'처럼 보일 것입니다. 나는 리눅스 콘솔에서이 명령을 실행하여'ls -d/home/*/android-sdk *'라는 폴더를 찾는다. (SDK의 경로를 출력해야한다.) –

+0

위에서 보았던 조언과 결과를 적용했습니다. android-sdk-linux/tools/android의 내용을 저장소에서 다운로드 할 수 있습니다 : http://leteckaposta.cz/714888255. 계속 협조 해주세요. – jasan

관련 문제