Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
10/01/13 12:25 PM (12 years ago)

android mapv2 problems in eclipse

Hi to all I tried to make my test android aplication with a map that didnt have before as i couldnt get the api v1 i read these instructions : 1) https://www.buzztouch.com/files/howtos/GPSRefBT.pdf 2) https://www.buzztouch.com/files/howtos/googleapiv2.pdf i download the android v3 my application file from the server. i make all the adjustments (google play services etc) to eclipse but i am getting these errors '' Description Resource Path Location Type GoogleMap cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 582 Java Problem GoogleMap cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 580 Java Problem GoogleMap cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 750 Java Problem GoogleMap cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 749 Java Problem CameraUpdate cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 550 Java Problem LatLng cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 549 Java Problem GoogleMap cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 551 Java Problem CameraUpdateFactory cannot be resolved BT_screen_map.java /ioatha/src/com/ioatha line 550 Java Problem GoogleMap cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 525 Java Problem GoogleMap cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 522 Java Problem LatLng cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 544 Java Problem GoogleMap cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 526 Java Problem LatLngBounds cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 515 Java Problem Marker cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 512 Java Problem CameraUpdateFactory cannot be resolved BT_screen_map.java /ioatha/src/com/ioatha line 519 Java Problem CameraUpdate cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 519 Java Problem MarkerOptions cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 428 Java Problem MarkerOptions cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 428 Java Problem Marker cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 325 Java Problem GoogleMap cannot be resolved to a variable BT_screen_map.java /ioatha/src/com/ioatha line 310 Java Problem GoogleMap cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 436 Java Problem Marker cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 436 Java Problem BitmapDescriptorFactory cannot be resolved BT_screen_map.java /ioatha/src/com/ioatha line 433 Java Problem LatLng cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 429 Java Problem GoogleMap cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 300 Java Problem MapFragment cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 265 Java Problem MapFragment cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 265 Java Problem GoogleMap cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 221 Java Problem GoogleMap cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 310 Java Problem GoogleMap cannot be resolved to a variable BT_screen_map.java /ioatha/src/com/ioatha line 305 Java Problem GoogleMap cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 305 Java Problem GoogleMap cannot be resolved to a variable BT_screen_map.java /ioatha/src/com/ioatha line 300 Java Problem GoogleMap cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 479 Java Problem OnMarkerClickListener cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 479 Java Problem GoogleMap cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 466 Java Problem Avoid hardcoding the debug mode; leaving it out allows debug and release builds to automatically assign one AndroidManifest.xml /ioatha line 60 Android Lint Problem GoogleMap cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 473 Java Problem LatLngBounds cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 511 Java Problem Marker cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 512 Java Problem Marker cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 480 Java Problem LatLngBounds cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 511 Java Problem MarkerOptions cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 451 Java Problem LatLng cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 452 Java Problem Marker cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 437 Java Problem MarkerOptions cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 451 Java Problem Should explicitly set android:allowBackup to true or false (it's true by default, and that can have some security implications for the application's data) AndroidManifest.xml /ioatha line 55 Android Lint Problem GoogleMap cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 459 Java Problem <uses-sdk> tag should specify a target API level (the highest verified version; when running on later versions, compatibility behaviors may be enabled) with android:targetSdkVersion="?" AndroidManifest.xml /ioatha line 9 Android Lint Problem Marker cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 460 Java Problem BitmapDescriptorFactory cannot be resolved BT_screen_map.java /ioatha/src/com/ioatha line 456 Java Problem Marker cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 459 Java Problem The import com.google.android.gms cannot be resolved BT_screen_map.java /ioatha/src/com/ioatha line 66 Java Problem The import com.google.android.gms cannot be resolved BT_screen_map.java /ioatha/src/com/ioatha line 65 Java Problem The import com.google.android.gms cannot be resolved BT_screen_map.java /ioatha/src/com/ioatha line 68 Java Problem The import com.google.android.gms cannot be resolved BT_screen_map.java /ioatha/src/com/ioatha line 67 Java Problem The import com.google.android.gms cannot be resolved BT_screen_map.java /ioatha/src/com/ioatha line 70 Java Problem The import com.google.android.gms cannot be resolved BT_screen_map.java /ioatha/src/com/ioatha line 69 Java Problem Marker cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 87 Java Problem GooglePlayServicesUtil cannot be resolved BT_screen_map.java /ioatha/src/com/ioatha line 185 Java Problem ConnectionResult cannot be resolved to a variable BT_screen_map.java /ioatha/src/com/ioatha line 186 Java Problem Marker cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 205 Java Problem Marker cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 205 Java Problem GoogleMap cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 218 Java Problem MapFragment cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 218 Java Problem MapFragment cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 218 Java Problem The import com.google.android.gms cannot be resolved BT_screen_map.java /ioatha/src/com/ioatha line 71 Java Problem The import com.google.android.gms cannot be resolved BT_screen_map.java /ioatha/src/com/ioatha line 72 Java Problem The import com.google.android.gms cannot be resolved BT_screen_map.java /ioatha/src/com/ioatha line 73 Java Problem The import com.google.android.gms cannot be resolved BT_screen_map.java /ioatha/src/com/ioatha line 74 Java Problem The import com.google.android.gms cannot be resolved BT_screen_map.java /ioatha/src/com/ioatha line 75 Java Problem The import com.google.android.gms cannot be resolved BT_screen_map.java /ioatha/src/com/ioatha line 76 Java Problem MapFragment cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 84 Java Problem GoogleMap cannot be resolved to a type BT_screen_map.java /ioatha/src/com/ioatha line 85 Java Problem
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
10/01/13 12:43 PM (12 years ago)
What Google API are you using? LA
 
Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
like
10/01/13 12:48 PM (12 years ago)
android 4 Api level 14 (the same problem and when i choose Google Apis , api level 14 )
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
10/01/13 12:51 PM (12 years ago)
You trying this on emulator? Did you import google play services? LA
 
Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
like
10/01/13 01:00 PM (12 years ago)
yes i have imported but didnt know that had to do that everytime i open a project in eclipse so i import google play services and now i get only one error and one warning This Handler class should be static or leaks might occur (com.ioatha.BT_screen_map.1) BT_screen_map.java /ioatha/src/com/ioatha line 785 Android Lint Problem case expressions must be constant expressions BT_plugin_success.java /ioatha/src/com/ioatha line 85 Java Problem
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
10/01/13 01:18 PM (12 years ago)
They errors or warnings? LA
 
Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
like
10/01/13 01:25 PM (12 years ago)
this is an error : case expressions must be constant expressions BT_plugin_success.java /ioatha/src/com/ioatha line 85 Java Problem the other one was a warning
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
10/01/13 01:29 PM (12 years ago)
Not sure why you are using the plugin_success_java? Usually case expressions must be constant expressions needs a "switch" and "case". LA
 
Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
like
10/01/13 10:13 PM (12 years ago)
i didn't use it as purpose . it is there by it self . this plugin is from eclipse or buzztouch ? in control panel where it is to save the project there is not any pluging called ''success java'' (i deleteted and stop having an error , only the warning is still there) i will try to test it in my device to see how it works now with the included map option
 
Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
like
10/03/13 11:57 AM (12 years ago)
Hi again.. lets say what problems i have with the new version step by step 1)i open the eclipse 2)i import the unzipped file of my v3 android app 3)eclipse shows no errors 4)i import google play services lib 5)eclipse still with no errors 6)i go to my project i eclipse -> properties -> is library -> add -> and i choose google play services 7) after that i get one error : case expressions must be constant expressions BT_plugin_success.java /ioatha/src/com/ioatha line 85 Java Problem here is the line in java file with the problem : //onClickView.. public void onClick(View view) { BT_debugger.showIt(fragmentName + ":onClick"); //id of tapped item... int itemId = view.getId(); //figure out what method... switch (itemId){ case R.id.successImage: this.wobbleImage(); return; } } the problem says that is this line : case R.id.successImage: And one more problem... when i run my application (before i import google play services libs) in emulator or in my phone i cant open from menu some html i had as pages.. in old version i could load - open the screens (Html docs) now get an error that couldnt be found or it is down
 
Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
like
10/05/13 09:10 PM (12 years ago)
?? anyone...
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
10/06/13 11:44 AM (12 years ago)
I'm not sure about this one and still not sure why success.java is throwing it! Did you put any code in there? You do a config build path? LA
 
DannyH
Apple Fan
Profile
Posts: 122
Reg: Nov 30, 2011
location unknow...
2,220
like
11/02/13 06:20 PM (12 years ago)
change //figure out what method... switch (itemId){ case R.id.successImage: this.wobbleImage(); return; } to if (itemId == R.id.successImage) { this.wobbleImage(); return; } didnt compiled the project yet but the error is gone
 
HelperDev
Lost but trying
Profile
Posts: 49
Reg: Nov 16, 2012
New York
3,090
like
02/01/14 10:29 AM (11 years ago)
This fix worked for me, but I am also having this error in the apprater.java file. A red X shows next to: case R.id.btnLike: case R.id.btnDislike: case R.id.btnLater: How to fix?
 

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.