PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → Android compilation error: target release 1.5 conflicts with default source release 1.7
Android compilation error: target release 1.5 conflicts with default source release 1.7
Débuté par jsanta, 09 aoû. 2011 15:55 - 4 réponses
Membre enregistré
2 messages
Posté le 09 août 2011 - 15:55
Hi All,


I have got the following 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 something from Windev as I am able to compile and debug with Eclipse IDE.

Anyone has experienced a similar problem?

Any help would be very much appreciated.


Regards,
Ju
Posté le 11 août 2011 - 13:06
Bonjour,
J'ai le même problème !
Posté le 26 août 2011 - 12:23
moi aussi !!!


Echec de la création de l'application Android <C:\WinDev Mobile 16\Exemples\Android\Android GPS\Exe\Android GPS\Android GPS.apk>.


Ligne de commande : "C:\Program Files\Java\jdk1.7.0\bin\javac.exe" -encoding cp1252 -target 1.5 -d bin\classes -bootclasspath "C:\Documents and Settings\laurent.hemon\Mes documents\windev\android-sdk_r12-windows\android-sdk-windows\\platforms\android-4\android.jar" gen\com\masociete\android_gps\*.java src\com\masociete\android_gps\wdgen\*.java -classpath "libs\WD160Android.jar"


Erreur retournée :
javac: target release 1.5 conflicts with default source release 1.7
Posté le 26 août 2011 - 12:55
Hi,
downgrade from 1.7 to 1.6.26 (this worked for me)

Regards,
Ju
Posté le 13 septembre 2011 - 12:41
I red in an article of developing android apps the tip
allways use the 32 bit version of the sdk even on 64 bit systems.
To avoid compatibily problems.
I had installed 64 bit version 1.7... uninstall and new install 1.6... 32 bit now it works.