Outils pour utilisateurs

Outils du site


archives:kivy_comment_creer_une_application_android_en_python

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
kivy_comment_creer_une_application_android_en_python [2019/01/08 13:11] – [Message d'erreur !] sergearchives:kivy_comment_creer_une_application_android_en_python [2020/04/03 17:59] (Version actuelle) serge
Ligne 1: Ligne 1:
-======Kivy Comment créer une application android en python======+======Archives : Kivy Comment créer une application android en python====== 
 + 
 +<WRAP center round alert 60%> 
 +**Cette page est obsolète, elle est en archives !** 
 + 
 +Voir **[[::kivy_buildozer|Kivy: Buildozer pour compiler une application Android en python]]** pour la dernière version 
 +</WRAP>
  
 <WRAP center round box 60% centeralign> <WRAP center round box 60% centeralign>
Ligne 5: Ligne 11:
 </WRAP> </WRAP>
  
-<WRAP center round box 60% centeralign>+<WRAP center round important 60% centeralign>
 **Buildozer compile le Python 3 par défaut !**\\  **Buildozer compile le Python 3 par défaut !**\\ 
 **Mais je n'ai pas réussi à obtenir un *.apk** **Mais je n'ai pas réussi à obtenir un *.apk**
Ligne 11: Ligne 17:
 </WRAP> </WRAP>
  
-<WRAP center round box 60% centeralign> +<WRAP center round info 60% centeralign> 
-**[[http://translate.google.com/translate?js=n&sl=auto&tl=en&u=https://ressources.labomedia.org/kivy_comment_creer_une_application_android_en_python|Link to Google Translate]]**+Testé en janvier 2019 sur:\\ 
 +**Debian Buster alpha 4**\\ 
 +et sur \\ 
 +**Xubuntu 18.04 dans VirtualBox**
 </WRAP> </WRAP>
  
Ligne 44: Ligne 53:
  
 =====Hello World sur debian buster avec python 3.7 dans une VirtualBox===== =====Hello World sur debian buster avec python 3.7 dans une VirtualBox=====
-====Message d'erreur !==== 
-<code> 
-# Check that aidl can be executed 
-# Search for Aidl 
-# Run '/media/sf_data/src_android/android-sdk-20/build-tools/28.0.3/aidl' 
-# Cwd None 
-# Android packages installation done. 
-# Check application requirements 
-# Check garden requirements 
-# Compile platform 
-# Run '/usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=python3,kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir="/home/serge/projets/hello-world/.buildozer/android/platform/build"' 
-# Cwd /home/serge/projets/hello-world/.buildozer/android/platform/python-for-android-new-toolchain 
-/home/serge/projets/hello-world/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py:73: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses 
-  import imp 
-[INFO]:    Will compile for the following archs: armeabi-v7a 
-[INFO]:    Found Android API target in $ANDROIDAPI 
-[INFO]:    Available Android APIs are (19, 24, 26) 
-[INFO]:    Requested API target 24 is available, continuing. 
-[INFO]:    Found NDK dir in $ANDROIDNDK 
-[INFO]:    Got NDK version from $ANDROIDNDKVER 
-[INFO]:    Using Google NDK r14b 
-[INFO]:    Found virtualenv at /usr/bin/virtualenv 
-[INFO]:    Found the following toolchain versions: ['4.9'] 
-[INFO]:    Picking the latest gcc toolchain, here 4.9 
-[INFO]:    No existing dists meet the given requirements! 
-[INFO]:    No dist exists that meets your requirements, so one will be built. 
-[ERROR]:   Didn't find any valid dependency graphs. 
-[ERROR]:   This means that some of your requirements pull in conflicting dependencies. 
-[ERROR]:   Exiting. 
-# Command failed: /usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=python3,kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir="/home/serge/projets/hello-world/.buildozer/android/platform/build" 
- 
-# Buildozer failed to execute the last command 
-</code> 
- 
-Le fichier de toute la sortie terminal **{{compil_1_py3.zip|Output}}** 
 ====Installation des dépendances==== ====Installation des dépendances====
 <code> <code>
Ligne 89: Ligne 63:
  
 sudo pip3 install jinja2 appdirs sh colorama setuptools cython sudo pip3 install jinja2 appdirs sh colorama setuptools cython
-sudo pip3 install kivy buildozer pyjnius+sudo pip3 install pygame kivy buildozer pyjnius
 </code> </code>
  
 ====Version==== ====Version====
-  * cython 0.29.2 +  * cython    0.29.2 
-  * kivy   1.10.1+  * kivy      1.10.1 
 +  * buildozer 0.35 
 +  * pygame-1.9.4
 ====Fichiers==== ====Fichiers====
 <file python main.py> <file python main.py>
Ligne 138: Ligne 114:
 warn_on_root = 1 warn_on_root = 1
 </file> </file>
 +
 +=====Hello World sur Xubuntu 18.04  avec python 3.6.7 dans une VirtualBox=====
 +** Problème: ce n'est pas python3.7 !!!**
 +
 +====Installation de buildozer à partir de la branche master sur github====
 +  sudo pip3 install https://github.com/kivy/buildozer/archive/master.zip
 +installe buildozer 0.38 dev0
 +
 +  sudo pip3 install git+https://github.com/kivy/kivy.git@master
 +Successfully installed Kivy-1.11.0.dev0
 +
  
 ===== Kivy Virtual Machine (for Android/buildozer) sur Xubuntu 17.04  ===== ===== Kivy Virtual Machine (for Android/buildozer) sur Xubuntu 17.04  =====
-  * Voir ** [[kivy_virtual_machine_for_android:buildozer|Kivy Virtual Machine (for Android/buildozer)]]** **juste pour essayer**, la VM est basée sur **Xubuntu 17.04 qu'il n'est plus possible de mettre à jour.**+  * Voir ** [[https://kivy.org/#download|Kivy Virtual Machine (for Android/buildozer)]]** **juste pour essayer**, la VM est basée sur **Xubuntu 17.04 qu'il n'est plus possible de mettre à jour.**
  
 ===== Des applications réussies jusqu'en avril 2018===== ===== Des applications réussies jusqu'en avril 2018=====
   * **[[https://wiki.labomedia.org/index.php/Multi_Pong|Multi Pong]]**   * **[[https://wiki.labomedia.org/index.php/Multi_Pong|Multi Pong]]**
-  * **[[taposc|Kivy: TapOSC]]**+  * **[[:taposc|Kivy: TapOSC]]**
   * **[[https://github.com/sergeLabo/wikikircandroid2|]]**   * **[[https://github.com/sergeLabo/wikikircandroid2|]]**
   * **[[https://github.com/sergeLabo/atts|Android Threaded TCP Server made with kivy buildozer python3]]**   * **[[https://github.com/sergeLabo/atts|Android Threaded TCP Server made with kivy buildozer python3]]**
Ligne 150: Ligne 137:
   * **[[https://github.com/sergeLabo/androidserver2|Python server on android, on local network. Used in a futur funny game.]]**   * **[[https://github.com/sergeLabo/androidserver2|Python server on android, on local network. Used in a futur funny game.]]**
   * **[[https://github.com/sergeLabo/kivent_example_16|Test with kivent example 16 avec kivent]]**   * **[[https://github.com/sergeLabo/kivent_example_16|Test with kivent example 16 avec kivent]]**
-  * **[[https://github.com/sergeLabo/Buggy/tree/master/android_wheel|Un téléphone pour volant]]**+  * **[[https://github.com/sergeLabo/Buggy/tree/master/android_wheel|Un téléphone comme volant]]**
  
-{{tag>kivy sb}}+{{tag>archive sb}}
archives/kivy_comment_creer_une_application_android_en_python.1546953108.txt.gz · Dernière modification : 2019/01/08 13:11 de serge