MOE takes 4 minutes to compile and run

Hi,

I’m using LibGDX with MOE. Changing a single line of code takes 4 minutes to run on device.

I have a Core I7 6770 with 12GB of RAM, running Mac OS X Sierra on a VMware on top of Windows 10. I’m using Android Studio.

I know that there’s an overhead of the vmware, but i have no idea of how much it takes in a real Mac.

The build output is below. Is there anything i can do to speed up time to run (besides buying a Mac computer :wink: )

thanks

guich

Parallel execution is an incubating feature.
Using already downloaded SDK: /Users/machs/.moe/moe-sdk-1.4.1
The CompileOptions.bootClasspath property has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the CompileOptions.bootstrapClasspath property instead.
	at build_zee8bd76dsjahxzlcjap2u0y$_run_closure5.doCall(/Users/machs/dev/ueeze/build.gradle:101)
	(Run with --stacktrace to get the full stack trace of this deprecation warning.)
Gradle now uses separate output directories for each JVM language, but this build assumes a single directory for all classes from a source set. This behaviour has been deprecated and is scheduled to be removed in Gradle 5.0
	at build_5bbb3hpgl5mrpddefh7zbhagq$_run_closure3.doCall(/Users/machs/dev/ueeze/desktop/build.gradle:22)
	(Run with --stacktrace to get the full stack trace of this deprecation warning.)
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
	at build_869glaq6cmpu3yxo7tcbus7tn.run(/Users/machs/dev/ueeze/ios-moe/build.gradle:3)
	(Run with --stacktrace to get the full stack trace of this deprecation warning.)
:ios-moe:copyNatives
:core:compileJava
:ios-moe:processResources NO-SOURCE
:core:compileJava UP-TO-DATE
:core:processResources NO-SOURCE
:core:classes UP-TO-DATE
:core:jar UP-TO-DATE
:ios-moe:compileJava UP-TO-DATE
:ios-moe:classes UP-TO-DATE
:ios-moe:moeMainProGuard
:ios-moe:moeMainRetrolambda
:ios-moe:moeGenerateUIObjCInterfaces
:ios-moe:moeMainDex
:ios-moe:moeMainDebugArm64Dex2Oat
:ios-moe:moeMainResourcePackager
:ios-moe:moeMainStartupProvider
:ios-moe:moeMainDebugArm64IphoneosXcodeProvider
:ios-moe:moeMainDebugArmDex2Oat
:ios-moe:moeMainDebugArmv7IphoneosXcodeProvider
:ios-moe:moeMainDebugArmv7sIphoneosXcodeProvider
:ios-moe:moeMainDebugIphoneosXcodeBuild
:ios-moe:moeLaunch
Waiting for iOS Device...
Uploading:
- FileUpload@1% CodeResources
- FileUpload@3% [email protected]
- FileUpload@5% AppIcon20x20@2x~ipad.png
- FileUpload@6% [email protected]
- FileUpload@8% AppIcon20x20~ipad.png
- FileUpload@10% [email protected]
- FileUpload@11% AppIcon29x29@2x~ipad.png
- FileUpload@13% [email protected]
- FileUpload@15% AppIcon29x29~ipad.png
- FileUpload@16% [email protected]
- FileUpload@18% AppIcon40x40@2x~ipad.png
- FileUpload@20% [email protected]
- FileUpload@22% AppIcon40x40~ipad.png
- FileUpload@23% [email protected]
- FileUpload@25% [email protected]
- FileUpload@27% AppIcon76x76@2x~ipad.png
- FileUpload@28% AppIcon76x76~ipad.png
- FileUpload@30% AppIcon83.5x83.5@2x~ipad.png
- FileUpload@32% application.jar
- FileUpload@33% ueeze.png
- FileUpload@35% ueeze_ico.png
- FileUpload@37% api.properties
- FileUpload@38% button.png
- FileUpload@40% fontawesome.ttf
- FileUpload@42% roboto-bold.ttf
- FileUpload@44% roboto.ttf
- FileUpload@45% gauge.png
- FileUpload@47% chime.mp3
- FileUpload@49% pointer.png
- FileUpload@50% progressHandle.png
- FileUpload@52% spinner_android.png
- FileUpload@54% spinner_iphone.png
- FileUpload@55% spinner_sync.png
- FileUpload@57% settings.app
- FileUpload@59% curve.shader
- FileUpload@61% line.shader
- FileUpload@62% lineDots.shader
- FileUpload@64% rectFilledDots.shader
- FileUpload@66% roundRect.shader
- FileUpload@67% roundRectDots.shader
- FileUpload@69% roundRectFilled.shader
- FileUpload@71% roundRectFilledDots.shader
- FileUpload@72% Assets.car
- FileUpload@74% Default-1024w-1366h@2x~ipad.png
- FileUpload@76% [email protected]
- FileUpload@77% [email protected]
- FileUpload@79% [email protected]
- FileUpload@81% Default.png
- FileUpload@83% [email protected]
- FileUpload@84% Default@2x~ipad.png
- FileUpload@86% Default~ipad.png
- FileUpload@88% embedded.mobileprovision
- FileUpload@89% CodeResources
- FileUpload@91% Info.plist
- FileUpload@93% MOE
- FileUpload@94% Info.plist
- FileUpload@96% PkgInfo
- FileUpload@98% preregister.txt
- FileUpload@100% ueeze

Installing:
- Upgrade@5% CreatingStagingDirectory
- Upgrade@15% ExtractingPackage
- Upgrade@20% InspectingPackage
- Upgrade@20% TakingInstallLock
- Upgrade@30% PreflightingApplication
- Upgrade@30% InstallingEmbeddedProfile
- Upgrade@40% VerifyingApplication
- Upgrade@50% CreatingContainer
- Upgrade@60% InstallingApplication
- Upgrade@70% PostflightingApplication
- Upgrade@80% SandboxingApplication
- Upgrade@90% GeneratingApplicationMap
- Upgrade@100% Complete


BUILD SUCCESSFUL in 4m 20s
17 actionable tasks: 14 executed, 3 up-to-date
Starting a Gradle Daemon, 1 busy and 2 incompatible and 2 stopped Daemons could not be reused, use --status for details
Parallel execution is an incubating feature.
Using already downloaded SDK: /Users/machs/.moe/moe-sdk-1.4.1
The CompileOptions.bootClasspath property has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the CompileOptions.bootstrapClasspath property instead.
	at build_zee8bd76dsjahxzlcjap2u0y$_run_closure5.doCall(/Users/machs/dev/ueeze/build.gradle:101)
	(Run with --stacktrace to get the full stack trace of this deprecation warning.)
Gradle now uses separate output directories for each JVM language, but this build assumes a single directory for all classes from a source set. This behaviour has been deprecated and is scheduled to be removed in Gradle 5.0
	at build_5bbb3hpgl5mrpddefh7zbhagq$_run_closure3.doCall(/Users/machs/dev/ueeze/desktop/build.gradle:22)
	(Run with --stacktrace to get the full stack trace of this deprecation warning.)
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
	at build_869glaq6cmpu3yxo7tcbus7tn.run(/Users/machs/dev/ueeze/ios-moe/build.gradle:3)
	(Run with --stacktrace to get the full stack trace of this deprecation warning.)
:core:compileJava
:ios-moe:copyNatives
:ios-moe:processResources NO-SOURCE
:core:compileJava UP-TO-DATE
:core:processResources NO-SOURCE
:core:classes UP-TO-DATE
:core:jar UP-TO-DATE
:ios-moe:compileJava UP-TO-DATE
:ios-moe:classes UP-TO-DATE
:ios-moe:moeMainProGuard
:ios-moe:moeMainRetrolambda
:ios-moe:moeGenerateUIObjCInterfaces
:ios-moe:moeMainDex
:ios-moe:moeMainDebugArm64Dex2Oat
:ios-moe:moeMainResourcePackager
:ios-moe:moeMainStartupProvider
:ios-moe:moeMainDebugArm64IphoneosXcodeProvider
:ios-moe:moeMainDebugArmDex2Oat
:ios-moe:moeMainDebugArmv7IphoneosXcodeProvider
:ios-moe:moeMainDebugArmv7sIphoneosXcodeProvider
:ios-moe:moeMainDebugIphoneosXcodeBuild
:ios-moe:moeLaunch
Waiting for iOS Device...
Uploading:
- FileUpload@1% CodeResources
- FileUpload@3% [email protected]
- FileUpload@5% AppIcon20x20@2x~ipad.png
- FileUpload@6% [email protected]
- FileUpload@8% AppIcon20x20~ipad.png
- FileUpload@10% [email protected]
- FileUpload@11% AppIcon29x29@2x~ipad.png
- FileUpload@13% [email protected]
- FileUpload@15% AppIcon29x29~ipad.png
- FileUpload@16% [email protected]
- FileUpload@18% AppIcon40x40@2x~ipad.png
- FileUpload@20% [email protected]
- FileUpload@22% AppIcon40x40~ipad.png
- FileUpload@23% [email protected]
- FileUpload@25% [email protected]
- FileUpload@27% AppIcon76x76@2x~ipad.png
- FileUpload@28% AppIcon76x76~ipad.png
- FileUpload@30% AppIcon83.5x83.5@2x~ipad.png
- FileUpload@32% application.jar
- FileUpload@33% ueeze.png
- FileUpload@35% ueeze_ico.png
- FileUpload@37% api.properties
- FileUpload@38% button.png
- FileUpload@40% fontawesome.ttf
- FileUpload@42% roboto-bold.ttf
- FileUpload@44% roboto.ttf
- FileUpload@45% gauge.png
- FileUpload@47% chime.mp3
- FileUpload@49% pointer.png
- FileUpload@50% progressHandle.png
- FileUpload@52% spinner_android.png
- FileUpload@54% spinner_iphone.png
- FileUpload@55% spinner_sync.png
- FileUpload@57% settings.app
- FileUpload@59% curve.shader
- FileUpload@61% line.shader
- FileUpload@62% lineDots.shader
- FileUpload@64% rectFilledDots.shader
- FileUpload@66% roundRect.shader
- FileUpload@67% roundRectDots.shader
- FileUpload@69% roundRectFilled.shader
- FileUpload@71% roundRectFilledDots.shader
- FileUpload@72% Assets.car
- FileUpload@74% Default-1024w-1366h@2x~ipad.png
- FileUpload@76% [email protected]
- FileUpload@77% [email protected]
- FileUpload@79% [email protected]
- FileUpload@81% Default.png
- FileUpload@83% [email protected]
- FileUpload@84% Default@2x~ipad.png
- FileUpload@86% Default~ipad.png
- FileUpload@88% embedded.mobileprovision
- FileUpload@89% CodeResources
- FileUpload@91% Info.plist
- FileUpload@93% MOE
- FileUpload@94% Info.plist
- FileUpload@96% PkgInfo
- FileUpload@98% preregister.txt
- FileUpload@100% ueeze

Installing:
- Upgrade@5% CreatingStagingDirectory
- Upgrade@15% ExtractingPackage
- Upgrade@20% InspectingPackage
- Upgrade@20% TakingInstallLock
- Upgrade@30% PreflightingApplication
- Upgrade@30% InstallingEmbeddedProfile
- Upgrade@40% VerifyingApplication
- Upgrade@50% CreatingContainer
- Upgrade@60% InstallingApplication
- Upgrade@70% PostflightingApplication
- Upgrade@80% SandboxingApplication
- Upgrade@90% GeneratingApplicationMap
- Upgrade@100% Complete


BUILD SUCCESSFUL in 2m 40s
17 actionable tasks: 14 executed, 3 up-to-date
Parallel execution is an incubating feature.
Using already downloaded SDK: /Users/machs/.moe/moe-sdk-1.4.1
The CompileOptions.bootClasspath property has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the CompileOptions.bootstrapClasspath property instead.
	at build_zee8bd76dsjahxzlcjap2u0y$_run_closure5.doCall(/Users/machs/dev/ueeze/build.gradle:101)
	(Run with --stacktrace to get the full stack trace of this deprecation warning.)
Gradle now uses separate output directories for each JVM language, but this build assumes a single directory for all classes from a source set. This behaviour has been deprecated and is scheduled to be removed in Gradle 5.0
	at build_5bbb3hpgl5mrpddefh7zbhagq$_run_closure3.doCall(/Users/machs/dev/ueeze/desktop/build.gradle:22)
	(Run with --stacktrace to get the full stack trace of this deprecation warning.)
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
	at build_869glaq6cmpu3yxo7tcbus7tn.run(/Users/machs/dev/ueeze/ios-moe/build.gradle:3)
	(Run with --stacktrace to get the full stack trace of this deprecation warning.)
:ios-moe:copyNatives
:core:compileJava UP-TO-DATE
:core:processResources NO-SOURCE
:core:classes UP-TO-DATE
:core:jar UP-TO-DATE
:ios-moe:compileJava UP-TO-DATE
:ios-moe:processResources NO-SOURCE
:ios-moe:classes UP-TO-DATE
:ios-moe:moeMainProGuard UP-TO-DATE
:ios-moe:moeMainRetrolambda UP-TO-DATE
:ios-moe:moeGenerateUIObjCInterfaces UP-TO-DATE
:ios-moe:moeMainDex UP-TO-DATE
:ios-moe:moeMainDebugArm64Dex2Oat UP-TO-DATE
:ios-moe:moeMainResourcePackager UP-TO-DATE
:ios-moe:moeMainStartupProvider UP-TO-DATE
:ios-moe:moeMainDebugArm64IphoneosXcodeProvider
:ios-moe:moeMainDebugArmDex2Oat UP-TO-DATE
:ios-moe:moeMainDebugArmv7IphoneosXcodeProvider
:ios-moe:moeMainDebugArmv7sIphoneosXcodeProvider
:ios-moe:moeMainDebugIphoneosXcodeBuild
:ios-moe:moeLaunch
Waiting for iOS Device...
Uploading:
- FileUpload@1% CodeResources
- FileUpload@3% [email protected]
- FileUpload@5% AppIcon20x20@2x~ipad.png
- FileUpload@6% [email protected]
- FileUpload@8% AppIcon20x20~ipad.png
- FileUpload@10% [email protected]
- FileUpload@11% AppIcon29x29@2x~ipad.png
- FileUpload@13% [email protected]
- FileUpload@15% AppIcon29x29~ipad.png
- FileUpload@16% [email protected]
- FileUpload@18% AppIcon40x40@2x~ipad.png
- FileUpload@20% [email protected]
- FileUpload@22% AppIcon40x40~ipad.png
- FileUpload@23% [email protected]
- FileUpload@25% [email protected]
- FileUpload@27% AppIcon76x76@2x~ipad.png
- FileUpload@28% AppIcon76x76~ipad.png
- FileUpload@30% AppIcon83.5x83.5@2x~ipad.png
- FileUpload@32% application.jar
- FileUpload@33% ueeze.png
- FileUpload@35% ueeze_ico.png
- FileUpload@37% api.properties
- FileUpload@38% button.png
- FileUpload@40% fontawesome.ttf
- FileUpload@42% roboto-bold.ttf
- FileUpload@44% roboto.ttf
- FileUpload@45% gauge.png
- FileUpload@47% chime.mp3
- FileUpload@49% pointer.png
- FileUpload@50% progressHandle.png
- FileUpload@52% spinner_android.png
- FileUpload@54% spinner_iphone.png
- FileUpload@55% spinner_sync.png
- FileUpload@57% settings.app
- FileUpload@59% curve.shader
- FileUpload@61% line.shader
- FileUpload@62% lineDots.shader
- FileUpload@64% rectFilledDots.shader
- FileUpload@66% roundRect.shader
- FileUpload@67% roundRectDots.shader
- FileUpload@69% roundRectFilled.shader
- FileUpload@71% roundRectFilledDots.shader
- FileUpload@72% Assets.car
- FileUpload@74% Default-1024w-1366h@2x~ipad.png
- FileUpload@76% [email protected]
- FileUpload@77% [email protected]
- FileUpload@79% [email protected]
- FileUpload@81% Default.png
- FileUpload@83% [email protected]
- FileUpload@84% Default@2x~ipad.png
- FileUpload@86% Default~ipad.png
- FileUpload@88% embedded.mobileprovision
- FileUpload@89% CodeResources
- FileUpload@91% Info.plist
- FileUpload@93% MOE
- FileUpload@94% Info.plist
- FileUpload@96% PkgInfo
- FileUpload@98% preregister.txt
- FileUpload@100% ueeze

Installing:
- Upgrade@5% CreatingStagingDirectory
- Upgrade@15% ExtractingPackage
- Upgrade@20% InspectingPackage
- Upgrade@20% TakingInstallLock
- Upgrade@30% PreflightingApplication
- Upgrade@30% InstallingEmbeddedProfile
- Upgrade@40% VerifyingApplication
- Upgrade@50% CreatingContainer
- Upgrade@60% InstallingApplication
- Upgrade@70% PostflightingApplication
- Upgrade@80% SandboxingApplication
- Upgrade@90% GeneratingApplicationMap
- Upgrade@100% Complete


BUILD SUCCESSFUL in 43s
17 actionable tasks: 6 executed, 11 up-to-date

I found that upgrading to VMWare 15, time went to 2m30s, and using xcode to build and run, time drops to 1m40, which is acceptable.

2 Likes

if you’re not running the build for debugging with breakpoints I also would suggest you building with xcode directly. For me the build only takes some seconds which is drastically less then building and launching with Android Studio

1 Like