How to build for Android on Mac

Hey guys  :smiley:

I am getting “Android build 11” error on my Windows computer for the past couple of days…

I have installed latest Corona SDK, and I use same internet hotspot as for my Mac.

On Mac app`s build with no problem (I am getting “Android build 11” communication error only on Windows).

My question is, what do I have to install to build Android apps on my Mac?

I do not have in drop-down any Android devices, I have only iPhone and iPad when I hit CMD + B.

Waiting your reply!

Many thanks  :smiley:

Ivan

You can not build android apps from a mac and you cant build apple apps from a windows.

As for the error your getting - Have you tried getting the latest version of java? Maybe uninstalling corona and then reinstalling?

Good Luck!

@Ivan - you can definitely build for Android on a Mac. @Sonic is correct that you can’t build for iOS on a Windows machine, but Macs are able to build for all platforms except for Windows/Windows Phone. You don’t need to install anything special to build for Android on a Mac. You don’t need the Android SDK unless you want to use its debugging tools (emulator, logcat, etc.). With only the Simulator you can build an APK, transfer it to your device and test away.

The keyboard shortcut to build for Android is Shift-CMD-B, or you can navigate to it manually by going to File – > Build --> Android. (see attached photo)

Good luck!

Thanks for verifying that @schroederapps! I wasn’t sure about the apple to android thing.

–SonicX278 

Hi schroederapps,

Hi Sonic,

Thank you, but no luck!

I just installed JRE on my Mac and I get: “Build failed: Error code: 11” when I try to build for Android.

Build for iOS works fine!

Do you have any idea why Android builds are unavailable both from Windows and Mac?

Thank you.

Ivan

If you’re getting build errors on both Mac & Windows when building for Android, but you’re able to build for iOS, then there’s likely some sort of syntax error in your build.settings in the android table. Check there for missing commas, end brackets, etc. Also check to make sure that all the content in that table’s valid.

Tnx schroederapps.

I will check it out and let you know the result!

You were right shroederapps!

Build settings error!

Tnx.

You can not build android apps from a mac and you cant build apple apps from a windows.

As for the error your getting - Have you tried getting the latest version of java? Maybe uninstalling corona and then reinstalling?

Good Luck!

@Ivan - you can definitely build for Android on a Mac. @Sonic is correct that you can’t build for iOS on a Windows machine, but Macs are able to build for all platforms except for Windows/Windows Phone. You don’t need to install anything special to build for Android on a Mac. You don’t need the Android SDK unless you want to use its debugging tools (emulator, logcat, etc.). With only the Simulator you can build an APK, transfer it to your device and test away.

The keyboard shortcut to build for Android is Shift-CMD-B, or you can navigate to it manually by going to File – > Build --> Android. (see attached photo)

Good luck!

Thanks for verifying that @schroederapps! I wasn’t sure about the apple to android thing.

–SonicX278 

Hi schroederapps,

Hi Sonic,

Thank you, but no luck!

I just installed JRE on my Mac and I get: “Build failed: Error code: 11” when I try to build for Android.

Build for iOS works fine!

Do you have any idea why Android builds are unavailable both from Windows and Mac?

Thank you.

Ivan

If you’re getting build errors on both Mac & Windows when building for Android, but you’re able to build for iOS, then there’s likely some sort of syntax error in your build.settings in the android table. Check there for missing commas, end brackets, etc. Also check to make sure that all the content in that table’s valid.

Tnx schroederapps.

I will check it out and let you know the result!

You were right shroederapps!

Build settings error!

Tnx.