apptrepreneur
I hate code!
Profile
Posts: 36
Reg: Apr 22, 2011
location unknow...
960
06/02/13 01:15 PM (12 years ago)

Errors when put into Eclipse

I can't export my app in eclipse because I have errors under the "src" folder -> "BT_item.java -> BT_item. How do I fix these?
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
06/02/13 01:31 PM (12 years ago)
Hi @apptreprenur, Can you be more specific on the errors? Did you select the Google API's 2? LA
 
apptrepreneur
I hate code!
Profile
Posts: 36
Reg: Apr 22, 2011
location unknow...
960
like
06/02/13 01:34 PM (12 years ago)
Sorry I just started making apps again, I am not sure what you mean by Google API's. I just imported my project into Eclipse and it has a little x next to the name of the project which I assume means that there are errors. When I keep following where the x is it leads down to "BT_item". Thanks!
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
06/02/13 01:39 PM (12 years ago)
No problem. I was thinking the errors might be because of the API, which you go to project-properties-Android, then select 2.2: 8. Can you take a screenshot and if you look at logcat it will give you info on the errors that can assist with debugging and fixing errors. LA
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
06/02/13 02:07 PM (12 years ago)
Yep - LA has the answer here. If you're getting errors in the BT_item.java file, it's almost certainly due to not choosing the correct Google API. You can either right-click on the project folder in Eclipse, or simply highlight it and press command+i (if on a Mac. Not sure of they keyboard shortcut on Windows - probably ctrl+i).
 
apptrepreneur
I hate code!
Profile
Posts: 36
Reg: Apr 22, 2011
location unknow...
960
like
06/02/13 03:14 PM (12 years ago)
I think you are right as I see this popped up when I initially imported it. I am going to try what you said now. "[2013-06-02 15:12:33 - BT_activity_root] Unable to resolve target 'Google Inc.:Google APIs:11' [2013-06-02 15:12:34 - BT_activity_root] Unable to resolve target 'Google Inc.:Google APIs:11'"
 
apptrepreneur
I hate code!
Profile
Posts: 36
Reg: Apr 22, 2011
location unknow...
960
like
06/02/13 03:39 PM (12 years ago)
So I changed the API to 2.2 :8 then went into the BT_item.java file -> BT_item -> point and changed Geopoint to GesturePoint because it said it couldn't recognize it or something, then I debugged it and the error went away. But the error symbol still exists at BT_item.java as seen in the screenshot. Any ideas? http://imgur.com/eWDWp3m
 
apptrepreneur
I hate code!
Profile
Posts: 36
Reg: Apr 22, 2011
location unknow...
960
like
06/02/13 04:27 PM (12 years ago)
Fixed! THANK YOU!
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
06/02/13 06:34 PM (12 years ago)
Interesting project name.. Depending on the info in the app, just make sure it complies with t&c's if you're going to submit to google play.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.