1***@qq.com
1***@qq.com
  • 发布:2019-10-08 18:09
  • 更新:2021-09-27 11:13
  • 阅读:1464

uni-app离线打包sdk升级20190923后高德地图无法使用,请大神帮忙看下哪里配错了?

分类:uni-app

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="io.dcloud.cos2">

<!-- Barcode(二维码)  begin -->  
<uses-permission android:name="android.permission.CAMERA" />  
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />  
<uses-feature android:name="android.hardware.camera" />  
<uses-feature android:name="android.hardware.camera.autofocus" />  
<uses-permission android:name="android.permission.VIBRATE" />  
<uses-permission android:name="android.permission.FLASHLIGHT" />  
<!-- Barcode(二维码)  end -->  

<uses-permission android:name="android.permission.CALL_PHONE"/>  

<uses-permission android:name="android.permission.USE_FINGERPRINT"/>  

<!-- Maps(地图) begin -->  
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"></uses-permission>    
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"></uses-permission>    
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission>    
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>    
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"></uses-permission>    
<uses-permission android:name="android.permission.READ_PHONE_STATE"></uses-permission>    
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>    
<uses-permission android:name="android.permission.INTERNET"/>    
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"></uses-permission>    
<uses-permission android:name="android.permission.READ_LOGS"></uses-permission>    
<uses-permission android:name="android.permission.WRITE_SETTINGS"/>  
<!-- Maps(地图) end -->  

<!-- 基座删除的部分权限 -->  
<uses-permission android:name="android.permission.GET_TASKS" />  
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />  
<uses-permission android:name="android.permission.READ_CONTACTS" />  
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />  
<uses-feature android:name="android.hardware.camera.autofocus" />  
<uses-permission android:name="android.permission.WRITE_CONTACTS" />  
<uses-permission android:name="android.permission.CAMERA" />  
<uses-permission android:name="android.permission.GET_ACCOUNTS" />  
<uses-permission android:name="android.permission.RECORD_AUDIO" />  
<uses-permission android:name="android.permission.SEND_SMS" />  
<uses-permission android:name="android.permission.READ_PHONE_STATE" />  
<uses-permission android:name="android.permission.FLASHLIGHT" />  
<uses-feature android:name="android.hardware.camera" />  
<uses-permission android:name="android.permission.WRITE_SMS" />  
<uses-permission android:name="android.permission.READ_SMS" />  

<application  
    android:name="io.dcloud.application.DCloudApplication"  
    android:allowClearUserData="true"  
    android:icon="@drawable/icon"  
    android:label="@string/app_name"  
    android:largeHeap="true"  
    android:debuggable="true"  
    >  

    <activity  
        android:name="io.dcloud.PandoraEntry"  
        android:configChanges="orientation|keyboardHidden|keyboard|navigation"  
        android:label="@string/app_name"  
        android:launchMode="singleTask"  
        android:hardwareAccelerated="true"  
        android:theme="@style/TranslucentTheme"  
        android:screenOrientation="user"  
        android:windowSoftInputMode="adjustResize" >  
        <intent-filter>  
            <action android:name="android.intent.action.MAIN" />  
            <category android:name="android.intent.category.LAUNCHER" />  
        </intent-filter>  
    </activity>  

    <provider  
        android:name="io.dcloud.common.util.DCloud_FileProvider"  
        android:authorities="io.dcloud.HBuilder.dc.fileprovider"  
        android:exported="false"  
        android:grantUriPermissions="true">  
        <meta-data  
            android:name="android.support.FILE_PROVIDER_PATHS"  
            android:resource="@xml/dcloud_file_provider" />  
    </provider>  

    <!-- Maps(地图) begin -->  
    <meta-data android:name="com.amap.api.v2.apikey" android:value="这里是我的key" />  
    <service android:name="com.amap.api.location.APSService"></service>  
    <!-- Maps(地图) end -->  
</application>  

2019-10-08 18:09 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com (作者)

问题已解决
<provider
android:name="io.dcloud.common.util.DCloud_FileProvider"
android:authorities="io.dcloud.HBuilder.dc.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/dcloud_file_provider" />

把这个节点中的HBuilder改为cos2(包名)就可以了

9***@qq.com

9***@qq.com

博主,你这个是uniApp里面,勾选高德地图写完,调用离线打包,我的地图是一直不显示等于白屏

1***@qq.com

1***@qq.com

求demo q 184253660

要回复问题请先登录注册