Backendless Support
 
Not Covered by Support

Error:(80, 89) error: cannot find symbol method getMap() How can I solve this problem ?

I downloaded MapShowActivitiy.class from Backendless Code Generation. I builded the .java class but I can't solve this problem.

GoogleMap mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();

Leave a Comment

Comments (7)

photo
1

Did you make any changes in the downloaded code?

What is the version of the Android API you're building for?

photo
1

Yes I made any changes. Android API level is 23.

photo
photo
1

Yes I made any changes. Android API level is 23.

photo
1

When I made any changes so :

GoogleMap mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMapAsync();

I got an error message getMapAsync (OnMapReadyCallback) in MapFragment cannot be applied.

photo
1

I just generated the same project and ran it with Android Studio. The only change I made was for the version of gradle, as shown in the screenshot below. The project compiled and ran without any compilation problems whatsoever.

I believe the errors you are experiencing are related to the changes you made.

e1b897e08c88a07e483abe5473a5f584

photo
1

not working for me. When I changed my code so :

GoogleMap mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMapAsync(OnMapReadyCallback);

I dont know what to write here getMapAsync(.............) ;

photo
1

It looks like you need help with the Google maps API. Please consider posting to their support forum, this would be outside of our support.

Regards,

Mark

photo