Annonce

>>> Bienvenue sur codelab! >>> Première visite ? >>> quelques mots sur codelab //// une carte des membres//// (apéros) codelab


#1 2011-10-20 09:41:23 Problème PORCESSING et ANDROID

ojal
nouveau membre
Date d'inscription: 2011-06-25
Messages: 6

Problème PORCESSING et ANDROID



Bonjour,

J'essais d'utiliser PROCESSING pour générer une application ANDROID.
Je rencontre à priori un problème de configuration pour que PROCESSING puisse discuter avec le SDK ANDROID...
J'ai PROCESSING 1.5.1 et voici ce que j'ai installé dans le SDK ANDROID

http://img840.imageshack.us/img840/948/androidsdkmanager.jpg

Un sketch d'essai qui tourne sous PROCESSING STANDARD donne l'erreur suivante sous ANDROID :

http://img607.imageshack.us/img607/1011/erreur.jpg

Que pensez-vous que je doive modifier?

Merci par avance pour vos conseils smile

Hors ligne

 

#2 2011-10-20 10:03:24 Re : Problème PORCESSING et ANDROID

22_
membre
Lieu: paris
Date d'inscription: 2010-04-08
Messages: 189

Re: Problème PORCESSING et ANDROID



Salut,

Je ne suis pas un spécialiste d'android mais le build.xml est le script ant qui va faire la compilation.
Tu as essayé de suivre le message indiqué ? A savoir utiliser android update project :

http://developer.android.com/guide/deve … ngAProject

citation :

Updating a Project

If you're upgrading a project from an older version of the Android SDK or want to create a new project from existing code, use the android update project command to update the project to the new development environment. You can also use this command to revise the build target of an existing project (with the --target option) and the project name (with the --name option). The android tool will generate any files and folders (listed in the previous section) that are either missing or need to be updated, as needed for the Android project.

To update an existing Android project, open a command-line and navigate to the tools/ directory of your SDK. Now run:

android update project --name <project_name> --target <target_ID>
--path <path_to_your_project>

    target is the "build target" for your application. It corresponds to an Android platform library (including any add-ons, such as Google APIs) that you would like to build your project against. To see a list of available targets and their corresponding IDs, execute: android list targets.
    path is the location of your project directory.
    name is the name for the project. This is optional—if you're not changing the project name, you don't need this.

Here's an example:

android update project --name MyApp --target 2 --path ./MyAppProject

Hors ligne

 

#3 2011-10-20 10:26:37 Re : Problème PORCESSING et ANDROID

ojal
nouveau membre
Date d'inscription: 2011-06-25
Messages: 6

Re: Problème PORCESSING et ANDROID



Je ne vois malheureusement pas comment je peux mettre en oeuvre cet android update project... ?

J'ai à priori suivi ce tuto : http://blog.blprnt.com/blog/blprnt/proc … -very-easy
J'ai bien installé la version 7 comme demandé... Pourtant je soupçonne que le problème vienne d'un problème de version de l'API???
J'ai aussi fait un essai avec TOUTES les versions de l'API installées, sans plus de succès...???

Hors ligne

 

#4 2011-10-20 10:59:50 Re : Problème PORCESSING et ANDROID

22_
membre
Lieu: paris
Date d'inscription: 2010-04-08
Messages: 189

Re: Problème PORCESSING et ANDROID



citation :

If you're upgrading a project from an older version of the Android SDK or want to create a new project from existing code, use the android update project command to update the project to the new development environment. You can also use this command to revise the build target of an existing project (with the --target option) and the project name (with the --name option). The android tool will generate any files and folders (listed in the previous section) that are either missing or need to be updated, as needed for the Android project.

Oui, je pense que c'est effectivement le problème.
Peux-tu essayer de créer un petit sketch test du début et voir si cela fonctionne ?

Et sinon, quelles sont les difficultés qui t'empêchent de lancer la commande android update project ? [je précise que je ne connais pas du tout le processus de création d'un sketch android avec processing]

Hors ligne

 

#5 2011-10-20 11:49:22 Re : Problème PORCESSING et ANDROID

ojal
nouveau membre
Date d'inscription: 2011-06-25
Messages: 6

Re: Problème PORCESSING et ANDROID



J'obtiens la même erreur avec ou sans script...
L'erreur ne vient pas du script, c'est certain...
Je ne connais pas du tout le SDK ANDROID... J'étais justement attiré par PROCESSING puisqu'il permet de créer des appli ANDROID en ne connaissant que PROCESSING, ce que montre bien le tuto... C'est pour cette raison que je ne vois pas concrètement comment lancer android update project...
Le SDK ANDROID est franchement une nébuleuse pour moi aussi pour le moment...

Hors ligne

 

fil rss de cette discussion : rss

Pied de page des forums

Powered by FluxBB

codelab, graphisme & code : emoc / 2008-2025