Discussion Forums  >  Uncategorized

Replies: 1    Views: 833

donna
Android Fan
Profile
Posts: 1
Reg: Nov 22, 2010
La
10
11/23/10 12:45 PM (15 years ago)

Cant compile android app due to errors

I've followed all the instructions to install Eclipse and Android sdk and then create a new project. Every time I select my project and then hit the Run button however, it tells me there are errors I need to fix first. Sure enough, under the Problems tab there are 101 errors. They look like this: Description Resource Path Location Type GeoPoint cannot be resolved to a type Obj_MapLocation.java /TC/src/com/v1_4/BF9C965B66CDD15D/com line 5 Java Problem ItemizedOverlay cannot be resolved to a type Screen_LocationMap.java /TC/src/com/v1_4/BF9C965B66CDD15D/com line 457 Java Problem MapActivity cannot be resolved to a type Screen_LocationMap.java /TC/src/com/v1_4/BF9C965B66CDD15D/com line 40 Java Problem Overlay cannot be resolved to a type Screen_LocationMap.java /TC/src/com/v1_4/BF9C965B66CDD15D/com line 422 Java Problem The constructor AlertDialog.Builder(Screen_LocationMap) is undefined Screen_LocationMap.java /TC/src/com/v1_4/BF9C965B66CDD15D/com line 522 Java Problem The constructor Intent(Screen_LocationMap, Class) is undefined Screen_LocationMap.java /TC/src/com/v1_4/BF9C965B66CDD15D/com line 613 Java Problem The import com.google cannot be resolved Obj_MapLocation.java /TC/src/com/v1_4/BF9C965B66CDD15D/com line 2 Java Problem The method boundCenterBottom(Drawable) is undefined for the type Screen_LocationMap.MyLocationsOverlay Screen_LocationMap.java /TC/src/com/v1_4/BF9C965B66CDD15D/com line 461 Java Problem The method onTap(int) of type Screen_LocationMap.MyLocationsOverlay must override a superclass method Screen_LocationMap.java /TC/src/com/v1_4/BF9C965B66CDD15D/com line 482 Java Problem and on and on and on. So... now what?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/23/10 01:46 PM (15 years ago)
Hi.... this is a common question. Android / Eclipse does make it a bit difficult sometimes and the compiler produces errors sometimes. The errors are usually simple to track down and fix but it can get frustrating. Because the errors above are related to the map functions, it's important to get them removed first. The steps to do this are different depending on whether or not your app is using any mapping functions. Review the README.txt file that came with the project, it discusses some things that need to be done before the maps will work. Also, there are literally hundreds of ways to install and configure the Android Development Environment. It's assumed that you have the Standard version of Eclipse, ALL the v1.6 Google SDK components, including Google Maps, even if your app doesn't have a map. Again, this could go on an on depending on how your machine is configured. But, get the maps thing figured out and you should be fine. Thousands of folks have done this successfully - you can too ;-) Start with the README.txt
 

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.