Fixed
Status Update
Comments
sh...@google.com <sh...@google.com> #2
Thanks for the post,
Based on the error that you are getting, It seems that you have layout in both module and library with same name or inflating multiple xml layout with duplicate resource id. Kindly check your implementation if this case is present in your code. I would suggest that you redirect this kind of issues in Stack Overflow as this are implementation related issues. We would advice that you also add the following tags for our Google Advocates to see your questions as well:
google-maps
google-maps-api-3
google-maps-mobile
google-maps-android-api-2
Thank you.
Based on the error that you are getting, It seems that you have layout in both module and library with same name or inflating multiple xml layout with duplicate resource id. Kindly check your implementation if this case is present in your code. I would suggest that you redirect this kind of issues in Stack Overflow as this are implementation related issues. We would advice that you also add the following tags for our Google Advocates to see your questions as well:
google-maps
google-maps-api-3
google-maps-mobile
google-maps-android-api-2
Thank you.
ca...@gmail.com <ca...@gmail.com> #3
And why SDK v2 is working without any problems? We never had that problem before.
How can we check, if in SDK v3 is a same named layout?
How can we check, if in SDK v3 is a same named layout?
ro...@gmail.com <ro...@gmail.com> #4
Does your project consist of multiple (dynamic) features? We had the same issue initially and solved it by depending on the Maps API only once in the base/app module, using 'api' instead of 'implementation' to make it available for other modules:
api name:'maps-sdk-3.0.0-beta', ext:'aar'
api name:'maps-sdk-3.0.0-beta', ext:'aar'
ja...@getcircuit.com <ja...@getcircuit.com> #5
Suffering from this issue too, OP did you manage to get this fixed?
co...@googlemail.com <co...@googlemail.com> #6
I switched back to v2 now, because at the moment I don't have time for that. I think there will be soon more reports here with the same problem. Only then will google start solving the problem ;)
ja...@getcircuit.com <ja...@getcircuit.com> #7
Sam here - hopefully we can get a fix for this soon so we can switch back.
jh...@google.com <jh...@google.com>
je...@gmail.com <je...@gmail.com> #8
I experienced this crash, but only on the Pixelbook, not on the Pixel 3 XL or Pixel 2 XL. https://issuetracker.google.com/issues/132367948
What devices are those experiencing this using? Are there any it does work on for you?
What devices are those experiencing this using? Are there any it does work on for you?
co...@googlemail.com <co...@googlemail.com> #9
You are right! On Pixel 2 XL Emulator it works, on Pixel C emulator it doesn't work. So there is something missing in the different firmwares of the devices?
[Deleted User] <[Deleted User]> #10
Also happens on Lenovo TAB3 8 Plus, no other device affected at the moment in my project.
bo...@gmail.com <bo...@gmail.com> #11
Also happens on a Samsung Galaxy Tab S3 (8.0.0), but works fine with other handsets (Pixel 3XL, Pixel 2XL, Pixel 2, Galaxy S10+, S10)
va...@ajjas.com <va...@ajjas.com> #12
Happens on OnePlus5 in my project
ca...@off-road.io <ca...@off-road.io> #13
Any update or workaround for it?
co...@googlemail.com <co...@googlemail.com> #14
Workaround, you have to add the missing strings in res:
<string name="MAP_COPYRIGHTS_GOOGLE_ONLY">© %1$d Google</string>
<string name="MAP_COPYRIGHTS_FULL">© %1$d Google – Bilder © %2$d %3$s, Kartendaten © %4$d %5$s</string>
<string name="MAP_COPYRIGHTS_IMAGERY_ONLY">© %1$d Google – Bilder © %2$d %3$s</string>
<string name="MAP_COPYRIGHTS_MAP_DATA_ONLY">© %1$d Google – Kartendaten © %2$d %3$s</string>
<string name="MAP_COPYRIGHTS_GOOGLE_ONLY">© %1$d Google</string>
<string name="MAP_COPYRIGHTS_FULL">© %1$d Google – Bilder © %2$d %3$s, Kartendaten © %4$d %5$s</string>
<string name="MAP_COPYRIGHTS_IMAGERY_ONLY">© %1$d Google – Bilder © %2$d %3$s</string>
<string name="MAP_COPYRIGHTS_MAP_DATA_ONLY">© %1$d Google – Kartendaten © %2$d %3$s</string>
da...@gmail.com <da...@gmail.com> #15
This workaround worked to me, thanks!
jo...@gmail.com <jo...@gmail.com> #16
For anyone wanting the english version of these strings:
<string name="MAP_COPYRIGHTS_GOOGLE_ONLY">© %1$d Google</string>
<string name="MAP_COPYRIGHTS_FULL">© %1$d Google – Pictures © %2$d %3$s, Map Data © %4$d %5$s</string>
<string name="MAP_COPYRIGHTS_IMAGERY_ONLY">© %1$d Google – Pictures © %2$d %3$s</string>
<string name="MAP_COPYRIGHTS_MAP_DATA_ONLY">© %1$d Google – Map Data © %2$d %3$s</string>
<string name="MAP_COPYRIGHTS_GOOGLE_ONLY">© %1$d Google</string>
<string name="MAP_COPYRIGHTS_FULL">© %1$d Google – Pictures © %2$d %3$s, Map Data © %4$d %5$s</string>
<string name="MAP_COPYRIGHTS_IMAGERY_ONLY">© %1$d Google – Pictures © %2$d %3$s</string>
<string name="MAP_COPYRIGHTS_MAP_DATA_ONLY">© %1$d Google – Map Data © %2$d %3$s</string>
ra...@google.com <ra...@google.com>
st...@gmail.com <st...@gmail.com> #17
Thanks for fixing this issue! Has a new version of maps-sdk-3.0.0-beta.aar been uploaded with this fix included? If not, could you please expedite that and comment here once it's available? We'd appreciate it :)
Description
- Maps SDK Version: maps-sdk-3.0.0-beta
- Android SDK Version: 28
- in previous version of the Maps SDK v2 for Android it was/is working
I get the following exception, when I start a activity with:
<fragment
android:id="@+id/map"
class="com.google.android.libraries.maps.SupportMapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent" />
on it.
Exception:
java.lang.NoSuchFieldError: No static field MAP_COPYRIGHTS_FULL of type I in class Lcom/google/android/libraries/maps/R$string; or its superclasses (declaration of 'com.google.android.libraries.maps.R$string' appears in base.apk!classes2.dex)
at com.google.android.libraries.maps.av.zzh.(R.java:1)
at com.google.android.libraries.maps.bl.zzct.zzd(OverlayManager.java:155)
at com.google.android.libraries.maps.dc.zzp.zzc(GmmRenderTarget.java:87)
at com.google.android.apps.gmm.renderer.zzba.run(GLViewThreadImpl.java:144)