PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → [WM16] Compilation Androïd
[WM16] Compilation Androïd
Débuté par xof, 01 aoû. 2011 20:39 - 4 réponses
Membre enregistré
282 messages
Popularité : +1 (1 vote)
Posté le 01 août 2011 - 20:39
Bonjour,

je viens de batailler une heure sur ma première compilation androïd :: il semblerait que je ne sois pas le seul à avoir le message suivant
javac: target release 1.5 conflicts with default source release 1.7

avec un java sdk 1.7
Revenir à une version 1.6.26 me permet de compiler.

A bon entendeur ...

--
Cordialement,
Christophe Charron
http://xsoftware.fr
Posté le 09 août 2011 - 15:42
I have got the same problem.

I do have installed:

*JDK
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode, sharing)

*ANDROID
Android_SDKr12

*WINDEV MOBILE 16
Latest updated: Module Version: 16.0.133.4
Internal version: 06A160057k

and when compiling for android device I do get following error:

Failure creating the Android application named <D:\My Mobile Projects\Android BC\Exe\Android BC.apk>.


Command Line: "D:\Program Files\Java\jdk1.7.0\bin\javac.exe" -encoding cp1252 -target 1.5 -d bin\classes -bootclasspath "D:\Program Files\Android\android-sdk\\platforms\android-13\android.jar" gen\com\mycompany\android_bc\*.java src\com\mycompany\android_bc\wdgen\*.java -classpath "libs\WD160Android.jar"


Error returned:
javac: target release 1.5 conflicts with default source release 1.7

It seems to be somthing from Windev as I am able to compile and debug with Eclipse IDE.

Where do we go from here?

Regards,
Ju
Membre enregistré
282 messages
Popularité : +1 (1 vote)
Posté le 10 août 2011 - 08:42
Downgrade to 1.6.26!!

Best regards
--
Christophe Charron
http://xsoftware.fr
Membre enregistré
2 messages
Posté le 10 août 2011 - 13:21
It works.

Thanks a lot !

Ju
Posté le 18 août 2011 - 16:11
après quelques recherches et heures perdus aussi, la réponse est :
1.7 non compatible pour l heure
il faut remettre JAVA 1.625