PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → WM20 - unable to generate android application
WM20 - unable to generate android application
Débuté par Angelino FRANCESCO, 23 juin 2018 00:38 - 3 réponses
Membre enregistré
4 messages
Popularité : +1 (1 vote)
Posté le 23 juin 2018 - 00:38
Hi. I'm a new developer on Windev Mobile.
When I try to compile my first App, I have this problem:

Failure creating the Android application named <D:\App_Depo\Exe\App_Depo.apk>.


Command Line: "C:\Program Files\Java\jdk1.8.0_151\bin\java.exe" -Xmx2048m -Xss1m -Djava.ext.dirs=.\build-tools\25.0.1\lib -jar .\build-tools\25.0.1\lib\dx.jar --dex --incremental --output="D:\App_Depo\Android\Generation\bin\classes.dex" "D:\App_Depo\Android\Generation\bin\classes" "D:\App_Depo\Android\Generation\libs"


Error returned:
Result compacted from 5153.1KiB to 3332.5KiB to save 1820.6KiB
Merged dex #1 (12 defs/13.2KiB)
Merged dex #2 (2173 defs/4068.0KiB)
Result is 2173 defs/3332.5KiB. Took 0.6s

Why?

Can anone help me?
Regards,

Francesco
Membre enregistré
498 messages
Popularité : +8 (8 votes)
Posté le 25 juin 2018 - 16:25
Hi Angelino FRANCESCO

That's a bug for windev mobile 20 the thing you need to do it's go to your C:/ then go to My Mobile Projects then go for the file of your project on the file called "Android" delete it and then generate your apk.

if you want a method even more quickly then:

-Open your bloc note
-Put this code:

cd C:\My Mobile Projects\"NAME OF THE FILE OF YOUR PROJECT"\Android\Compile

del info.build

-save it
-change the .txt to .bat (you can even do this when you save the file)
-doble click on this bloc .bat and he will delete the info.build this file it's causing the problem


Good Luck

--
Best Regards
Jose
Membre enregistré
4 messages
Popularité : +1 (1 vote)
Posté le 27 juin 2018 - 20:16
Many thanks Jose.
Problem solved

Best regards
Francesco
Membre enregistré
498 messages
Popularité : +8 (8 votes)
Posté le 27 juin 2018 - 20:46
Hi

I'm glad its solved.

Just remember to create the file on all of your projects, you can even get the patch from this but PCSoft never give it to me the patch so this is the way I used when I was con WM20

--
Best Regards
Jose