stefanoa Active Member Licensed User Longtime User Mar 10, 2012 #1 i'm developing an application but when i compile the application, it take long time (about 6 minutes).. the result compiled apk is about 4,8MB. there's a method to speed up compilation? thanks
i'm developing an application but when i compile the application, it take long time (about 6 minutes).. the result compiled apk is about 4,8MB. there's a method to speed up compilation? thanks
klaus Expert Licensed User Longtime User Mar 10, 2012 #2 That seems estonishing long to me, there must be something special or strange in your program. You need to give more information. What part of the compiling process is taking that long ? When you compile 'normally' (the Run button in the IDE) you will see the different steps of the compiling process with the time needed to do it. What kind of application is it ? Best regards. Upvote 0
That seems estonishing long to me, there must be something special or strange in your program. You need to give more information. What part of the compiling process is taking that long ? When you compile 'normally' (the Run button in the IDE) you will see the different steps of the compiling process with the time needed to do it. What kind of application is it ? Best regards.
stefanoa Active Member Licensed User Longtime User Mar 10, 2012 #3 with "normal" run (in Debug mode): Compiling code 0.98 Generating R file. 0.00 Compiling generated Java Code 5.98 Convert byte code - optimized dex. >>> process is running longer than expected. Do you want to cancel it? >> i say NO and then... Convert byte code - optimized dex. 270.22 standard dexter Packaging fikes 14.25 Signing package file 8debug key) 4.65 zipaling file 0.22 Installing file to device 0.17 ...with bridge... Completed succesfully Upvote 0
with "normal" run (in Debug mode): Compiling code 0.98 Generating R file. 0.00 Compiling generated Java Code 5.98 Convert byte code - optimized dex. >>> process is running longer than expected. Do you want to cancel it? >> i say NO and then... Convert byte code - optimized dex. 270.22 standard dexter Packaging fikes 14.25 Signing package file 8debug key) 4.65 zipaling file 0.22 Installing file to device 0.17 ...with bridge... Completed succesfully
klaus Expert Licensed User Longtime User Mar 10, 2012 #4 Try to change the Process Timeout value to 30 seconds or even higher. In the IDE menu Tools / IDE options / Configure Process Timeout. Best regards. Upvote 0
Try to change the Process Timeout value to 30 seconds or even higher. In the IDE menu Tools / IDE options / Configure Process Timeout. Best regards.
JonPM Well-Known Member Licensed User Longtime User Mar 10, 2012 #5 I notice a significant difference in compile time on my laptop vs my desktop. Is you PC on the slower end? Upvote 0
I notice a significant difference in compile time on my laptop vs my desktop. Is you PC on the slower end?
Erel B4X founder Staff member Licensed User Longtime User Mar 10, 2012 #6 You can also change to Release mode instead of Debug. It will compile faster. Another thing worth trying is Tools - Clean project and Tools - Delete unused files. Upvote 0
You can also change to Release mode instead of Debug. It will compile faster. Another thing worth trying is Tools - Clean project and Tools - Delete unused files.
stefanoa Active Member Licensed User Longtime User Mar 10, 2012 #7 GREAT!!!!! i've set timeout to 30, clean project and cleaned unused files.. and now: Compiling code. 0.82 Generating R file. 0.00 Compiling generated Java code. 4.11 Convert byte code - optimized dex. 8.55 Packaging files. 4.49 Signing package file (debug key). 3.67 ZipAlign file. 0.26 Installing file to device. 0.22 compilation total time: 20 seconds!!!!! thanks very much.... :sign0188: :icon_clap: Last edited: Mar 10, 2012 Upvote 0
GREAT!!!!! i've set timeout to 30, clean project and cleaned unused files.. and now: Compiling code. 0.82 Generating R file. 0.00 Compiling generated Java code. 4.11 Convert byte code - optimized dex. 8.55 Packaging files. 4.49 Signing package file (debug key). 3.67 ZipAlign file. 0.26 Installing file to device. 0.22 compilation total time: 20 seconds!!!!! thanks very much.... :sign0188: :icon_clap:
A alexis Member Licensed User Longtime User Mar 30, 2013 #8 I was having the same problem. Thanks! Didn't expect that the "cleaned unused files" would make such a big difference. Erel, Thanks for pointing it out. Upvote 0
I was having the same problem. Thanks! Didn't expect that the "cleaned unused files" would make such a big difference. Erel, Thanks for pointing it out.
S sorex Expert Licensed User Longtime User Mar 30, 2013 #9 Erel said: You can also change to Release mode instead of Debug. It will compile faster. Click to expand... Overhere that selected drop down list entry is empty, does that mean debug mode by default? Edit: apparently not, never saw that debug notification before. Last edited: Mar 30, 2013 Upvote 0
Erel said: You can also change to Release mode instead of Debug. It will compile faster. Click to expand... Overhere that selected drop down list entry is empty, does that mean debug mode by default? Edit: apparently not, never saw that debug notification before.