googlemaps/android-maps-utils

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

G-Steve-E opened this issue · 3 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 Have you tried Android Studio "File->Invalidate caches"?

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.