PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → Tools → Erreur en compilation Windev Mobile V26
Erreur en compilation Windev Mobile V26
Started by priv!4vrzr4Mn74ryvr+0r6, Oct., 09 2024 12:38 AM - 2 replies
Posted on October, 09 2024 - 12:38 AM
Bonjour,

je pouvais compiler mon projet sans souci il y a quelques jours
J'ai passé mon PC de W11 23H2 en W11 24H2
Depuis, j'ai cela :

Echec de la création de l'application Android <C:\Devs Windev\Windev 26\Mes Projets Mobile\AURELIE Envois SMS\Exe\Application Android\AURELIE_SMS.apk>.


Ligne de commande : "C:\Program Files\Java\jdk-10.0.2\bin\java.exe" -Duser.dir="C:\Devs Windev\Windev 26\Mes Projets Mobile\AURELIE Envois SMS\Android\gen" "-Dorg.gradle.appname=C:\Devs Windev\Windev 26\Mes Projets Mobile\AURELIE Envois SMS\Android\gen" -classpath "C:\PC SOFT\WINDEV Mobile 26\Personnel\Android\Gradle\lib\gradle-launcher-5.4.1.jar" org.gradle.launcher.GradleMain assembleRelease -b "C:\Devs Windev\Windev 26\Mes Projets Mobile\AURELIE Envois SMS\Android\gen\build.gradle"


Erreur retournée :
:compileReleaseJavaWithJavac FAILED
C:\Devs Windev\Windev 26\Mes Projets Mobile\AURELIE Envois SMS\Android\gen\src\com\masociete\aurelie_sms\wdgen\GWDCPCOL_ProcedureAurelie.java:1318: error: cannot find symbol
GWDPAURELIE_Envois_SMS.getInstance().vWD_gnID_FTP.setValeur(WDAPIFtp.ftpConnecte("cabinetcane.dyndns.info","softs","Oceane_11"));
^
symbol: variable vWD_gnID_FTP
location: class GWDPAURELIE_Envois_SMS
C:\Devs Windev\Windev 26\Mes Projets Mobile\AURELIE Envois SMS\Android\gen\src\com\masociete\aurelie_sms\wdgen\GWDCPCOL_ProcedureAurelie.java:1321: error: cannot find symbol
if(GWDPAURELIE_Envois_SMS.getInstance().vWD_gnID_FTP.opDiff(-1))
^
symbol: variable vWD_gnID_FTP
location: class GWDPAURELIE_Envois_SMS
C:\Devs Windev\Windev 26\Mes Projets Mobile\AURELIE Envois SMS\Android\gen\src\com\masociete\aurelie_sms\wdgen\GWDCPCOL_ProcedureAurelie.java:1324: error: cannot find symbol
if(WDAPIFtp.ftpRecupere(GWDPAURELIE_Envois_SMS.getInstance().vWD_gnID_FTP.getInt(),"/SMS/version11.gsm",WDAPIFichier.fRepDonnees().opPlus("/version.txt").getString(),new WDChaineU(""),1).opEgal(true, 0))
^
symbol: variable vWD_gnID_FTP
location: class GWDPAURELIE_Envois_SMS
C:\Devs Windev\Windev 26\Mes Projets Mobile\AURELIE Envois SMS\Android\gen\src\com\masociete\aurelie_sms\wdgen\GWDCPCOL_ProcedureAurelie.java:1338: error: cannot find symbol
if(WDAPIFtp.ftpRecupere(GWDPAURELIE_Envois_SMS.getInstance().vWD_gnID_FTP.getInt(),"/SMS/news.txt",WDAPIFichier.fRepDonnees().opPlus("/news.txt").getString(),new WDChaineU(""),1).opEgal(true, 0))
^
symbol: variable vWD_gnID_FTP
location: class GWDPAURELIE_Envois_SMS
C:\Devs Windev\Windev 26\Mes Projets Mobile\AURELIE Envois SMS\Android\gen\src\com\masociete\aurelie_sms\wdgen\GWDCPCOL_ProcedureAurelie.java:1362: error: cannot find symbol
WDAPIFtp.ftpDeconnecte(GWDPAURELIE_Envois_SMS.getInstance().vWD_gnID_FTP.getInt());
^
symbol: variable vWD_gnID_FTP
location: class GWDPAURELIE_Envois_SMS
C:\Devs Windev\Windev 26\Mes Projets Mobile\AURELIE Envois SMS\Android\gen\src\com\masociete\aurelie_sms\wdgen\GWDFFEN_SMS_en_attente.java:598: error: cannot find symbol
GWDPAURELIE_Envois_SMS.getInstance().vWD_gnID_FTP.setValeur(WDAPIFtp.ftpConnecte(GWDPAURELIE_Envois_SMS.getInstance().vWD_gsFtp_ftp.getString(),GWDPAURELIE_Envois_SMS.getInstance().vWD_gsFtp_login.getString(),GWDPAURELIE_Envois_SMS.getInstance().vWD_gsFtp_mdp.getString()));
^
symbol: variable vWD_gnID_FTP
location: class GWDPAURELIE_Envois_SMS
C:\Devs Windev\Windev 26\Mes Projets Mobile\AURELIE Envois SMS\Android\gen\src\com\masociete\aurelie_sms\wdgen\GWDFFEN_SMS_en_attente.java:618: error: cannot find symbol
mWD_TABLE_SMS.get(2).get("COL_SMS").setValeur(WDAPIFtp.ftpListeFichier(GWDPAURELIE_Envois_SMS.getInstance().vWD_gnID_FTP.getInt(),GWDPAURELIE_Envois_SMS.getInstance().vWD_gsFichier_traite.opPlus("/*.txt").getString(),(new WDChaineU("FEN_SMS_en_attente.lit_sms")),3));
^
symbol: variable vWD_gnID_FTP
location: class GWDPAURELIE_Envois_SMS
C:\Devs Windev\Windev 26\Mes Projets Mobile\AURELIE Envois SMS\Android\gen\src\com\masociete\aurelie_sms\wdgen\GWDFFEN_SMS_en_attente.java:651: error: cannot find symbol
vWD_nLigne.setValeur(WDAPIFtp.ftpListeFichier(GWDPAURELIE_Envois_SMS.getInstance().vWD_gnID_FTP.getInt(),GWDPAURELIE_Envois_SMS.getInstance().vWD_gsFtp_chemin.opPlus(WDAPIChaine.extraitLigne(GWDPAURELIE_Envois_SMS.getInstance().vWD_gsPraticiens.getString(),vWD_i.getInt())).opPlus("/*.*").getString(),(new WDChaineU("FEN_SMS_en_attente.lit_sms")),3));
^
symbol: variable vWD_gnID_FTP
location: class GWDPAURELIE_Envois_SMS
C:\Devs Windev\Windev 26\Mes Projets Mobile\AURELIE Envois SMS\Android\gen\src\com\masociete\aurelie_sms\wdgen\GWDFFEN_SMS_en_attente.java:663: error: cannot find symbol
WDAPIFtp.ftpDeconnecte(GWDPAURELIE_Envois_SMS.getInstance().vWD_gnID_FTP.getInt());
^
symbol: variable vWD_gnID_FTP
location: class GWDPAURELIE_Envois_SMS
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
9 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 5s
10 actionable tasks: 6 executed, 4 up-to-date


Merci de m'aider afin que je puisse compiler. Pour info, après AUDIT il y a ZERO ERREUR
Registered member
177 messages
Posted on November, 02 2024 - 9:16 AM
Bonjour

Je vois que vous avez un problème sur le déploiement d'un apk, les bugs dont je vois, vous utilisez des variables globale, (3) solutions dont je peux trouver

1. Soit vous devrez codé avec des variables locales ou avec des classes avec des attributs, je veux dire vous ne devrais pas codé avec des variables globale de projet ou des variables globale de fenêtre parce que cela peut causer des bugs
2. Soit vous devrez être en ligne lors du déploiement de l'apk
3. Soit vous devrez upgrader le gradle ou le sdk avec une version récente

Merci

Cordialement
M.RATSIMANDRESY
Niry Aina Eddy
Registered member
881 messages
Posted on November, 03 2024 - 9:22 PM
Bonjour, l'erreur est toujours liée à la variable vWD_gnID_FTP, où est définie cette variable et comment l'utiliser, pouvez-vous donner un exemple de code ?

Rubén

--
Rubén Sánchez Peña

https://play.google.com/store/apps/details…
https://www.linkedin.com/in/rub%C3%A9n-s%C3%A1nchez-pe%C3%B1a-7a868212/