android-maps-utils icon indicating copy to clipboard operation
android-maps-utils copied to clipboard

The import com.google.maps.android.R cannot be resolved

Open G-Steve-E opened this issue 2 years ago • 2 comments

Thanks for stopping by to let us know something could be better!


PLEASE READ

If you have a support contract with Google, please create an issue in the support console. This will ensure a timely response.

Discover additional support services for the Google Maps Platform, including developer communities, technical guidance, and expert support at the Google Maps Platform support resources page.

If your bug or feature request is not related to this particular library, please visit the Google Maps Platform issue trackers.

Check for answers on StackOverflow with the google-maps tag.


Please be sure to include as much information as possible: Library is installed in android Studio. In DefaultClusterRenderer the import statement - 'import com.google.maps.android.R' has error that 'R' cannot be resolved. App appears to work, but how can i eliminate this error.

Summarize your issue in one or two sentences

Expected behavior

What did you expect?

Observed behavior

What did you see instead? Describe your issue in detail here.

Environment details

  1. Device make and model, or emulator details
  2. Android version
  3. Library version and other environment information

Steps to reproduce

If you can reproduce using the demo app in the project, it helps us troubleshoot faster.

  1. ?

Code example

# example

Stack trace

# example

Following these steps will guarantee the quickest resolution possible.

Thanks!

G-Steve-E avatar Jun 26 '22 20:06 G-Steve-E

@G-Steve-E Have you tried Android Studio "File->Invalidate caches"?

barbeau avatar Jun 30 '22 14:06 barbeau

Sean: Sorry for the delay. Invalidating the caches did not work. Steve

On Jun 30, 2022, at 7:48 AM, Sean Barbeau @.***> wrote:

@G-Steve-E https://github.com/G-Steve-E Have you tried Android Studio "File->Invalidate caches"?

— Reply to this email directly, view it on GitHub https://github.com/googlemaps/android-maps-utils/issues/1100#issuecomment-1171315733, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHG6VBEQM3734ULZXGEEAT3VRWXSRANCNFSM5Z4P3BOQ. You are receiving this because you were mentioned.

G-Steve-E avatar Jul 14 '22 16:07 G-Steve-E

Hi @G-Steve-E .

Sometimes Android Studio messes up the R.java and the indexes. The general way to fix this is through invalidating the caches and/or synching the Gradle file.

Can you please verify whether this still happens with the latest Android Studio version?

Thanks.

kikoso avatar Dec 05 '22 07:12 kikoso