Upload
horacio-gonzalez
View
1.574
Download
2
Tags:
Embed Size (px)
DESCRIPTION
Slides du Bootcamp d'Initiation à Android organisé le 19/09/2013 par le GDG Rennes LiveCoding exercise #1 : Hello World
Citation preview
LiveCoding : Hello world!0. Installer Android Studio : http://developer.android.
com/sdk/installing/studio.html
LiveCoding : Hello world!1. Démarrer Android Studio2. Créer une nouvelle application Hello World!
LiveCoding : Hello world!3. Accepter les options par défaut4. Créer une activité MainActivity
LiveCoding : Hello world!
LiveCoding : Hello world!5. Créer un terminal virtuel Android
LiveCoding : Hello world!6. Exécuter le programme
7. Attendre le boot du terminal
LiveCoding : Hello world!8. S'extasier devant sa première application Android
Si je veux utiliser Eclipse ?Des instructions complètes pour ce dans ce Hello World!http://developer.android.com/training/basics/firstapp/index.html
J’ai des soucis...
Si vous avez la v.0.2.7 d’Android Studio :● “You must install the Android Support Repository
though the SDK Manager”
“You must install the Android Support Repository… ”
● Démarrer manuellement l’Android Manager android-studio/sdk/tools/android
● Mettre à jour les fichiers Android Support Repository
“You must install the Android Support Repository… ”
● Copier le SDK vers un répertoire externe cp -r android-studio/sdk /opt/android-sdk
● Configure Project Defaults Project Structure
“You must install the Android Support Repository… ”
● Nouveau SDK utilisant le repertoire SDK externe
“You must install the Android Support Repository… ”
● Re-démarrer Android Studio○ Maintenant la création du projet devrait marcher
J’ai d’autres soucis...
Si vous avez la v.0.2.7 d’Android Studio :● Lors du démarrage de l’émulateur vous obtenez
Gradle: : org.gradle.api.plugins. PluginInstantiationException : Could not create plugin of type 'AppPlugin'.Gradle: : java.lang. NoClassDefFoundError : org/gradle/tooling/provider/model/ ToolingModelBuilderRegistry...
● Il faut une version de Gradle supérieure à 1.5http://www.gradle.org/
L’émulateur est trop grand !
Et il déborde de votre écran...● Allez vers Edit Configurations
● Mettez -scale 0.75 (ou -scale 0.5 si besoin) dansEmulator Additional command line options