I was reading the deployment section and followed the simple steps. In the end, my project opened in eclipse with many errors. I think it is because there is no android.jar reference file. Is this supposed to be part of the export?
I have written and published a few android apps with eclipse. I have the sdk installed in multiple locations (it seems each development environment I have installed wants to install the SDK in a different spot). The errors are because there is no android.jar exported from Gideros. If I add the android.jar to the build path, all the errors go away. My question is, is android.jar supposed to be exported with your project from Gideros? If so, my Gideros installation isn't doing it.
yes normally it should have been automatically exported. I mean when i deploy an android application with gideros i don't need to add nothing from eclipse. I just export as apk and sign it that's it.
Hmm, it needs to be confirmed, but I doubt that Gideros looks for SDK, it just exports files, and then you compile it in Eclipse for example using SDK that Eclipse uses. But as I said, I'm not aware if it really happens that way.
One thing though, when you export android project there is a checkbox saying, export assets only. Can you check if you accidentally didn't check it and thats why not everything is exported?
@ar2rsawseen it is like this. You are exporting from Gideros as android. Opening with Eclipse. And without doing any operation in eclipse you just export the project as android Aplication(to turn it to apk) that's it. In @ondesic's case the project is missing some main component in the eclipse project which must be there android.jar.
This is surelly Gideros studio, sdk or eclipse installation problem.
Ok, I had to do a lot of cleaning and extra installing. It now loads android-15 (which it was looking for) and automatically puts in the android.jar.
The problem I am finding now is after the install, it shows the gideros splash screen then closes (it ran fine on the player). I opened the activity.java file and there is none of my lua code in there. It just seems to be a skeleton. Is there another step I need to take?
Did you reexported project again and did a clean build in eclipse? There should be no lua code in activiy.java only in the assets folder with .jet extension
Are there any errors in the log cat (DDMS button in the upper right corner)?
I have the same problem, I can not even run the examples
[2012-07-25 19:16:36 - Drag Me] Unable to resolve target 'android-15'
The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project Bird Animation Unknown Java Problem
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files BirdAnimationActivity.java /Bird Animation/src/com/giderosmobile/android line 1 Java Problem
I had to update my android SDK and installed android-15 to get it to work. Even though it runs, I still can't get it to do anything but show the splash screen.
windows file system is case-insensitive but android file system is case-sensitive. most errors occur because of this difference. can you check the names of your assets and files?
Comments
What kind of errors? Can you post some of them here?
You can follow this guide:
http://www.talkandroid.com/guides/developer/android-sdk-install-guide/
The errors are because there is no android.jar exported from Gideros. If I add the android.jar to the build path, all the errors go away. My question is, is android.jar supposed to be exported with your project from Gideros? If so, my Gideros installation isn't doing it.
I mean when i deploy an android application with gideros i don't need to add nothing from eclipse. I just export as apk and sign it that's it.
One thing though, when you export android project there is a checkbox saying, export assets only. Can you check if you accidentally didn't check it and thats why not everything is exported?
You are exporting from Gideros as android.
Opening with Eclipse. And without doing any operation in eclipse you just export the project as android Aplication(to turn it to apk) that's it. In @ondesic's case the project is missing some main component in the eclipse project which must be there android.jar.
This is surelly Gideros studio, sdk or eclipse installation problem.
The problem I am finding now is after the install, it shows the gideros splash screen then closes (it ran fine on the player). I opened the activity.java file and there is none of my lua code in there. It just seems to be a skeleton. Is there another step I need to take?
There should be no lua code in activiy.java only in the assets folder with .jet extension
Are there any errors in the log cat (DDMS button in the upper right corner)?
[2012-07-25 19:16:36 - Drag Me] Unable to resolve target 'android-15'
The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project Bird Animation Unknown Java Problem
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files BirdAnimationActivity.java /Bird Animation/src/com/giderosmobile/android line 1 Java Problem
https://play.google.com/store/apps/details?id=com.uglygames.slug
@duke2017 will have to wait for @atilim on this one
https://play.google.com/store/apps/details?id=com.uglygames.slug