how I can start with eclipse?

I can not do a simple hello world in android. placed as account and password from terminal … and then? [import]uid: 214723 topic_id: 35089 reply_id: 335089[/import]

Google’s documentation on how to set up an Android project and Eclipse can be found here…
http://developer.android.com/tools/projects/index.html

You’ll need to install Google’s ADT plugin for Eclipse as documented here…
http://developer.android.com/sdk/installing/installing-adt.html

I recommend that you first learn to set up and build one of Google’s sample projects that comes with the Android SDK. This will help you learn the basics of Android development. After you’ve mastered that, then attempt to build a Corona sample project. [import]uid: 32256 topic_id: 35089 reply_id: 139532[/import]

Thank you for the reply. Probably I didn’t explain myself clearly.
I have downloaded Eclipse Android Plugins. I have the ADT and even all
APIs from Android 2.2 to 4.1, and many other tools offered. The readme
file included in the HTML within the “Corona Enterprise” package says
that I should use the template for Android or iOS, then I’ve created a new
Android project with existing code, but it has multiple errors.

Are there any libraries/extra downloads, or I have to code it by hand?
If so, isn’t there another way different from use a Terminal and a NotePad? [import]uid: 214723 topic_id: 35089 reply_id: 139796[/import]

What errors are you getting?

Also, have you used the “Android SDK Manager” to download the API Level that your app needs?
You’ll need to install API Level 8 for Corona and the API Level your app is designed to use (most likely API Level 16). [import]uid: 32256 topic_id: 35089 reply_id: 139818[/import]

I have the API’s for android and google, when I go to the project properties in eclipse and I change API’s to find which one remove errors; all CORONA’s libraries are missing, do I have to add some repository to sdk manager (not to eclipse)? [import]uid: 214723 topic_id: 35089 reply_id: 139940[/import]

I can’t help you unless you tell me what the error is. :slight_smile:

Also, I recommend that you try to build one of the Corona Enterprise sample projects as is via ant first. Just go to the following directory in your Terminal…
> ./Applications/CoronaEnterprise/Samples/ExtendingUI/android

And then type in the following into the terminal…
> ./build.sh

Replace the part above to the root path of your Android SDK. The build script will then do a “android update project” which runs an Android SDK tool to finish setting up your project directory (creates a “local.properties” file with the path set to your Android SDK) and it will then build a release version of that sample app via ant. If the build fails, then hopefully the Android build system will tell you what is wrong with your dev environment. If it succeeded, then you’re ready to move on to get that project working with Eclipse. Google’s Android build system takes a little time to grasp, so you just have to take baby steps with it. Good luck!
[import]uid: 32256 topic_id: 35089 reply_id: 139960[/import]

Google’s documentation on how to set up an Android project and Eclipse can be found here…
http://developer.android.com/tools/projects/index.html

You’ll need to install Google’s ADT plugin for Eclipse as documented here…
http://developer.android.com/sdk/installing/installing-adt.html

I recommend that you first learn to set up and build one of Google’s sample projects that comes with the Android SDK. This will help you learn the basics of Android development. After you’ve mastered that, then attempt to build a Corona sample project. [import]uid: 32256 topic_id: 35089 reply_id: 139532[/import]

[import]uid: 214723 topic_id: 35089 reply_id: 140266[/import]

Ok, how can I move the sample generated to Eclipse? Because I can’t drag the folder on to eclipse and if I create a new project and then replace everything, I’d get multiple errors,

By the way if I create a new project with existing code I get the same result. These erros are:

ERRORCODE

com.naef not be solved in a type

public class AsyncCallLuaFunction implements com.naef.jnlua.NamedJavaFunction{...}

com.ansca.corona.CoronaRuntime not be solved in a type

com.ansca.corona.CoronaRuntimeTask task=com.ansca.corona.CoronaRuntimeTask(){...}

and others 17 just even in the class AsyncCallLuaFunction
4 in callLuaFunction
as30 in CoronaApplication

other

com.naef.jnlua.LuaState luaState = runtime.getLuaState();  
  
 // Add a module named "myTests" to Lua having the following functions.  
 luaFunctions = new com.naef.jnlua.NamedJavaFunction[] {  
 new GetRandomBooleanLuaFunction(),  
 new GetRandomNumberLuaFunction(),  
 new GetRandomStringLuaFunction(),  
 new GetRandomArrayLuaFunction(),  
 new GetRandomTableLuaFunction(),  
 new PrintBooleanLuaFunction(),  
 new PrintNumberLuaFunction(),  
 new PrintStringLuaFunction(),  
 new PrintArrayLuaFunction(),  
 new PrintTableLuaFunction(),  
 new PrintTableValuesXYLuaFunction(),  
 new CallLuaFunction(),  
 new AsyncCallLuaFunction(),  
 };  

each line gives error:
Type Mismatch: can not convert from ‘name’ to NamedJavaFunction
where name is the new object() created;
and “com.naef not be solved in a type” again

this is the result in terminal when ant compilation:

...  
-release-sign:  
  
-post-build:  
  
release:  
  
BUILD SUCCESSFUL  
Total time: 27 seconds  




[import]uid: 214723 topic_id: 35089 reply_id: 140264[/import]

You need to set up Eclipse to reference the “Corona” library project as documented by Google here…
http://developer.android.com/tools/projects/projects-eclipse.html#ReferencingLibraryProject
[import]uid: 32256 topic_id: 35089 reply_id: 140295[/import]

Thank you for the reply. Probably I didn’t explain myself clearly.
I have downloaded Eclipse Android Plugins. I have the ADT and even all
APIs from Android 2.2 to 4.1, and many other tools offered. The readme
file included in the HTML within the “Corona Enterprise” package says
that I should use the template for Android or iOS, then I’ve created a new
Android project with existing code, but it has multiple errors.

Are there any libraries/extra downloads, or I have to code it by hand?
If so, isn’t there another way different from use a Terminal and a NotePad? [import]uid: 214723 topic_id: 35089 reply_id: 139796[/import]

Ok, thank you so much.
I found the error, it was the Mac OS! I was working in Mac OS and the path for Corona library is wrong.


I’ve made a new project in Eclipse with the content of Corona Library, then in another sample project I removed the reference error.


This fixed the error, may be if I move all Corona to the given path it could fix this error.

thank you. [import]uid: 214723 topic_id: 35089 reply_id: 140408[/import]

Great! I’m glad you got it working!
And thanks for posting your results too.
I’m sure it’ll help other Corona Enterprise developers as well. [import]uid: 32256 topic_id: 35089 reply_id: 140415[/import]

What errors are you getting?

Also, have you used the “Android SDK Manager” to download the API Level that your app needs?
You’ll need to install API Level 8 for Corona and the API Level your app is designed to use (most likely API Level 16). [import]uid: 32256 topic_id: 35089 reply_id: 139818[/import]

I have the API’s for android and google, when I go to the project properties in eclipse and I change API’s to find which one remove errors; all CORONA’s libraries are missing, do I have to add some repository to sdk manager (not to eclipse)? [import]uid: 214723 topic_id: 35089 reply_id: 139940[/import]

I can’t help you unless you tell me what the error is. :slight_smile:

Also, I recommend that you try to build one of the Corona Enterprise sample projects as is via ant first. Just go to the following directory in your Terminal…
> ./Applications/CoronaEnterprise/Samples/ExtendingUI/android

And then type in the following into the terminal…
> ./build.sh

Replace the part above to the root path of your Android SDK. The build script will then do a “android update project” which runs an Android SDK tool to finish setting up your project directory (creates a “local.properties” file with the path set to your Android SDK) and it will then build a release version of that sample app via ant. If the build fails, then hopefully the Android build system will tell you what is wrong with your dev environment. If it succeeded, then you’re ready to move on to get that project working with Eclipse. Google’s Android build system takes a little time to grasp, so you just have to take baby steps with it. Good luck!
[import]uid: 32256 topic_id: 35089 reply_id: 139960[/import]

[import]uid: 214723 topic_id: 35089 reply_id: 140266[/import]

Ok, how can I move the sample generated to Eclipse? Because I can’t drag the folder on to eclipse and if I create a new project and then replace everything, I’d get multiple errors,

By the way if I create a new project with existing code I get the same result. These erros are:

ERRORCODE

com.naef not be solved in a type

public class AsyncCallLuaFunction implements com.naef.jnlua.NamedJavaFunction{...}

com.ansca.corona.CoronaRuntime not be solved in a type

com.ansca.corona.CoronaRuntimeTask task=com.ansca.corona.CoronaRuntimeTask(){...}

and others 17 just even in the class AsyncCallLuaFunction
4 in callLuaFunction
as30 in CoronaApplication

other

com.naef.jnlua.LuaState luaState = runtime.getLuaState();  
  
 // Add a module named "myTests" to Lua having the following functions.  
 luaFunctions = new com.naef.jnlua.NamedJavaFunction[] {  
 new GetRandomBooleanLuaFunction(),  
 new GetRandomNumberLuaFunction(),  
 new GetRandomStringLuaFunction(),  
 new GetRandomArrayLuaFunction(),  
 new GetRandomTableLuaFunction(),  
 new PrintBooleanLuaFunction(),  
 new PrintNumberLuaFunction(),  
 new PrintStringLuaFunction(),  
 new PrintArrayLuaFunction(),  
 new PrintTableLuaFunction(),  
 new PrintTableValuesXYLuaFunction(),  
 new CallLuaFunction(),  
 new AsyncCallLuaFunction(),  
 };  

each line gives error:
Type Mismatch: can not convert from ‘name’ to NamedJavaFunction
where name is the new object() created;
and “com.naef not be solved in a type” again

this is the result in terminal when ant compilation:

...  
-release-sign:  
  
-post-build:  
  
release:  
  
BUILD SUCCESSFUL  
Total time: 27 seconds  




[import]uid: 214723 topic_id: 35089 reply_id: 140264[/import]

You need to set up Eclipse to reference the “Corona” library project as documented by Google here…
http://developer.android.com/tools/projects/projects-eclipse.html#ReferencingLibraryProject
[import]uid: 32256 topic_id: 35089 reply_id: 140295[/import]

Ok, thank you so much.
I found the error, it was the Mac OS! I was working in Mac OS and the path for Corona library is wrong.


I’ve made a new project in Eclipse with the content of Corona Library, then in another sample project I removed the reference error.


This fixed the error, may be if I move all Corona to the given path it could fix this error.

thank you. [import]uid: 214723 topic_id: 35089 reply_id: 140408[/import]