Page 1 of 1

Compiling help?

Posted: Fri Jan 20, 2012 3:00 am
by Tomcat
Is this the right forum to post questions about compiling the code?

I can't get Eclipse to recognize the classes imported as android.*, as opposed to the AT code, which it picks up just fine after the Subversion checkout.

I have installed the JDK v7(.2?), Eclipse Classic, Android SDK tools, Android SDK Platform tools, SDK Platform for Android 2.2 - API8 (what my phone runs), Android Support package, plus docs, samples, and the Google USB Driver, just because. I've tried to follow the directions linked from the Subversion Tutorial on the Wiki section of the code, but they bounces a bit between different sites, and I'm not sure if I'm missing a package, or have a path Eclipsr can't find, or what. I'm new to Java and Android programming, but have worked in other similar environments.

Anyone have any insight they could share?

Re: Compiling help?

Posted: Fri Jan 20, 2012 4:08 am
by phydeaux
I can't get subversive to work, course I just chalked it up to the fact that I don't have regular internet access and have been downloading piecemeal trying to put everything together

Re: Compiling help?

Posted: Fri Jan 20, 2012 5:48 am
by sdevaney
Sounds like Eclipse isn't seeing the project as an "android" project. I am no expert but will do my best to help.

Check if you have properly installed ADT goto -> Window -> Preferences. If you see Android (in the preferences), it means you have ADT installed.

If that doesn't fix it then check to make sure ADT plugin is pointing to the Android SDK.

And for one last off the top of my head solution, create a new Android project and copy the files from the imported project to the newly created Android project.

Hope that helps, if not sorry I wasted your time. :D

sdevaney

Re: Compiling help?

Posted: Fri Jan 20, 2012 9:53 pm
by Tomcat
sdevaney wrote:Sounds like Eclipse isn't seeing the project as an "android" project. I am no expert but will do my best to help.

Check if you have properly installed ADT goto -> Window -> Preferences. If you see Android (in the preferences), it means you have ADT installed.

If that doesn't fix it then check to make sure ADT plugin is pointing to the Android SDK.

And for one last off the top of my head solution, create a new Android project and copy the files from the imported project to the newly created Android project.

Hope that helps, if not sorry I wasted your time. :D

sdevaney
I just haven't figured out how to get Eclipse to find the android classes. The window labeled Console says it could not resolve references to "android-10".

I searched the entire computer for .class files, and found all the AT classes and a few odd ones used by other software, but not anything from the Android SDK. Is it in JAR files? Know the filenames? I know neither the path not where in Eclipse to enter it. Never worked in an environment that didn't know where to find its own language components.

Will try the dummy android app this weekend.

Thanks for the response!

Re: Compiling help?

Posted: Sat Jan 21, 2012 12:44 am
by sdevaney
Tomcat wrote:
sdevaney wrote:Sounds like Eclipse isn't seeing the project as an "android" project. I am no expert but will do my best to help.

Check if you have properly installed ADT goto -> Window -> Preferences. If you see Android (in the preferences), it means you have ADT installed.

If that doesn't fix it then check to make sure ADT plugin is pointing to the Android SDK.

And for one last off the top of my head solution, create a new Android project and copy the files from the imported project to the newly created Android project.

Hope that helps, if not sorry I wasted your time. :D

sdevaney
I just haven't figured out how to get Eclipse to find the android classes. The window labeled Console says it could not resolve references to "android-10".

I searched the entire computer for .class files, and found all the AT classes and a few odd ones used by other software, but not anything from the Android SDK. Is it in JAR files? Know the filenames? I know neither the path not where in Eclipse to enter it. Never worked in an environment that didn't know where to find its own language components.

Will try the dummy android app this weekend.

Thanks for the response!
Hmm interesting issue that I have never had, but I keep coming back to ADT not pointing to the SDK.

Check out this thorough tutorial I found on how to install ADT and the SDK. The whole tutorial is pretty decent and worth a read, even though it is a little out of date. (Start at 4.2) http://www.vogella.de/articles/Android/ ... stallation

Sometimes screenshots are easier to understand than text.

sdevaney