插入了我的API密钥,但没有地图预览,只有灰色屏幕上写着。还有一个名为未知片段的警告,它说: "A <fragment> tag allows a layout file to dynamically include different layouts atDo not warn about <fragment> tags in this session" 我在网上搜索了好几个小时,但还是找不到解决这个问题的方法。这是来自activity_maps.xml的代码
我在AndroidStudio中看不到地图。You can choose which layout you would like previewed while editing the layout.
- <fragment com.google.android.gms.maps.SupportMapFragment感谢您的收听