目录

FAQ

如果您在下面没有找到需要的问题,请加入Stack Overflow社区参与讨论。

地图瓦片无法加载,怎么办?

根因分析:

地图服务需要从AppGallery Connect配置文件中读取appid和其他属性。在某些情况下,地图服务无法读取appid。

解决方案:

您可以手动在AndroidManifest.xml文件中添加appid。

<application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> 
  <uses-library android:name="org.apache.http.legacy" android:required="false" /> 
  <meta-data android:name="com.huawei.hms.client.appid" android:value="appid=<your_app_id>" /> 
</application>