反应原生Android的Android清单地图错误

时间:2019-08-05 01:10:03

标签: reactjs google-maps react-native

在android设备中单击列表时,出现此错误。附加列表错误和哨兵报告。

如果需要更新AndroidManifest.xml ..我在源代码中发现了很多AndroidManifest.xml。

https://user-images.githubusercontent.com/25501496/62419485-dcb8a380-b6b3-11e9-99bb-a0780134638d.jpeg

https://user-images.githubusercontent.com/25501496/62432060-fdd6ce00-b75f-11e9-81de-11519a131125.jpeg

我尝试在android清单文件中添加代码。.但是我检查文件太多

我使用codecanyon“ Listapp”中的模板

2 个答案:

答案 0 :(得分:0)

您需要在<application>元素内的AndroidManifest.xml文件(通常位于app \ src \ main中)中添加your API key,如错误消息所示。

<meta-data
        android:name="com.google.android.geo.API_KEY"
        android:value="YOUR_API_KEY"/>

希望这会有所帮助。

答案 1 :(得分:0)

在元数据标记中,它必须是:

{  
   "date":"xx",
   "time":["11:00" , "15:00" ]
},
{  
  "date":"xx",
   "time":["11:00"]
}