2017-12-31 245 views
1

私はkivy buildozerを使用しています。インストールのために私は、ステップ3の後のpython 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 

問題の原因は何ですか?

Iセクションbuildozer、新しいメッセージにLOG_LEVEL = 2を追加した:私はミハイルGerasimovのaddvicesを適用し、短い工程の後、私は新しいメッセージを取得

# 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 

:ここで

# 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のビルドに必要なものはすべて含まれていません。通常、ビルドーザーは自動的に処理しますが、時々it breaksを処理します。私は通常(Linux)のコンソールを介してそれを行うのようにして、(上記のリンクを参照)を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であなたのSDKがディレクトリavaliableていることを確認します。 これをすべてインストールした後は、エラーが発生するはずです。

+0

сновымгодом! oracle virtualbox(マシン:https://kivy.org/docs/guide/packaging-android-vm.html)を介してLinuxで初めての経験を得る。私はAndroid SDKのフォルダを見つけることができません。あなたは私を助けてくれますか? – jasan

+0

@jasanありがとう! 'buildozer.spec'でAndroid SDKへのパスを手動で指定しなかった場合、SDKはデフォルトディレクトリにダウンロードされます。私が間違っていないなら、このフォルダに '〜/ .buildozer/android/platform /'というSDKがあります。 '.buildozer /'フォルダは「user」ディレクトリにありますので、フルパスは '/ home/kivy/.buildozer/android-platform/android-sdk-20 /'のようになります。私が間違っているのであれば、ls -d/home/*/android-sdk * 'というフォルダを検索するためにlinuxコンソールでこのコマンドを実行してください。 –

+0

あなたのアドバイスと結果を上記の通りに適用しました。 android-sdk-linux/tools/androidの内容は、ストレージ:http://leteckaposta.cz/714888255からダウンロードできます。あなたはサポートを続けていますか? – jasan

関連する問題