First Steps: Building Sample Project .apk In Corona Enterprise

I just setup my Mac and I’m currently trying to wrap my head around Corona Enterprise (despite the lack of tutorials). As I currently only have an Android Phone, I want to create a plugin that runs on android. My goal is to create a plugin that uses the “share” intent on android for Corona SDK.

I have a few questions though (and probably more later on, hopefully those will help other beginners as well):

  • if I create a plugin (using the suggested “App” folder), can I run this project in the SDK simulator even with the android plugin or do I have to build an .apk to test the plugin?
  • when I try to run the build.sh file in the console from the “ProjectTemplates -> App”-project, I get the following error: “build.sh: line 77: /Documents/Development/adt/sdk/tools/android: No such file or directory” but I’m quite sure that I picked the right directory. The weird thing is, if I comment those lines from the bash file, the error is still appearing :confused:

I guess I have to setup the corona path to make this work, but do I link to the simulator or to the enterprise folder?

I hope somebody can help me  :slight_smile:

You can’t use the Corona simulator to test anything related to Native builds. I found that the hard way, like you, because the docs assume you’re already an expert Android/iOS developer, so they’re mostly useless for begginers.

The only way to test something that you developed with native code is to build and send to device.

As for that error about missing directory, you probably did pick the wrong directory :stuck_out_tongue: Either that or you didn’t edit the local.properties file to include your Android SDK’s path. That file needs a line like this: sdk.dir=/Users/ricardo/bin/android-sdk.

@CluelessIdeas: Thank you so much for responding to my questions, I really appreciate it!!

I will check the path and try to create an apk that I can run on my device, that is currently my bottleneck to progress :slight_smile:

will reply here once I tried it :slight_smile:

You can’t use the Corona simulator to test anything related to Native builds. I found that the hard way, like you, because the docs assume you’re already an expert Android/iOS developer, so they’re mostly useless for begginers.

The only way to test something that you developed with native code is to build and send to device.

As for that error about missing directory, you probably did pick the wrong directory :stuck_out_tongue: Either that or you didn’t edit the local.properties file to include your Android SDK’s path. That file needs a line like this: sdk.dir=/Users/ricardo/bin/android-sdk.

@CluelessIdeas: Thank you so much for responding to my questions, I really appreciate it!!

I will check the path and try to create an apk that I can run on my device, that is currently my bottleneck to progress :slight_smile:

will reply here once I tried it :slight_smile: