Y ykucuk Well-Known Member Licensed User Longtime User May 11, 2016 #1 Hello, My IDE is 5.80 Everything was perfect until today. I have Convert byte code - optimized dex. problem. I don't know why but it became so slowly. (about 90 second) Same project same code and nothing changed. How can i fix it ? B4A version: 5.80 Parsing code. (0.27s) Compiling code. (0.43s) Compiling layouts code. (0.02s) Generating R file. (0.19s) Compiling generated Java code. (1.88s) Convert byte code - optimized dex. (126.20s) Optimized dexer failed. Switching to Standard dexer. Packaging files. (1.40s) Copying libraries resources (0.11s) Found 16 resource files. Signing package file (debug key). (1.35s) ZipAlign file. (0.12s) Last edited: May 11, 2016
Hello, My IDE is 5.80 Everything was perfect until today. I have Convert byte code - optimized dex. problem. I don't know why but it became so slowly. (about 90 second) Same project same code and nothing changed. How can i fix it ? B4A version: 5.80 Parsing code. (0.27s) Compiling code. (0.43s) Compiling layouts code. (0.02s) Generating R file. (0.19s) Compiling generated Java code. (1.88s) Convert byte code - optimized dex. (126.20s) Optimized dexer failed. Switching to Standard dexer. Packaging files. (1.40s) Copying libraries resources (0.11s) Found 16 resource files. Signing package file (debug key). (1.35s) ZipAlign file. (0.12s)
Y ykucuk Well-Known Member Licensed User Longtime User May 11, 2016 #2 i changed MaxRamForDex=512 to MaxRamForDex=1024 it doesn't help When i try MaxRamForDex=1536 there is error about VM Java Any help Upvote 0
i changed MaxRamForDex=512 to MaxRamForDex=1024 it doesn't help When i try MaxRamForDex=1536 there is error about VM Java Any help
S susu Well-Known Member Licensed User Longtime User May 11, 2016 #3 For large project I disable Dex Optimizer. Upvote 0
Y ykucuk Well-Known Member Licensed User Longtime User May 11, 2016 #4 susu said: For large project I disable Dex Optimizer. Click to expand... How can i disable it ? I tried in ini file but there is no affect Upvote 0
susu said: For large project I disable Dex Optimizer. Click to expand... How can i disable it ? I tried in ini file but there is no affect
S susu Well-Known Member Licensed User Longtime User May 11, 2016 #5 Sorry I can't remember but something like "EnableDexOptimizer = True". Ps: You need to exit B4A before edit .ini file. Upvote 0
Sorry I can't remember but something like "EnableDexOptimizer = True". Ps: You need to exit B4A before edit .ini file.
Erel B4X founder Staff member Licensed User Longtime User May 12, 2016 #6 The optimized dexer will not slow down compilation. It will make it faster as it compiles the libraries in the background and then waits until you compile your app. If your computer is low on memory then you might want to disable it. Are you using a library that depends on google-play-services? Have you added #ExcludedClasses? https://www.b4x.com/android/forum/threads/new-feature-three-birds-with-one-stone.63127/ Upvote 0
The optimized dexer will not slow down compilation. It will make it faster as it compiles the libraries in the background and then waits until you compile your app. If your computer is low on memory then you might want to disable it. Are you using a library that depends on google-play-services? Have you added #ExcludedClasses? https://www.b4x.com/android/forum/threads/new-feature-three-birds-with-one-stone.63127/