1***@qq.com
1***@qq.com
  • 发布:2025-01-14 18:19
  • 更新:2025-01-14 19:44
  • 阅读:24

有没有大佬读写手机存储不管用?

分类:uni-app

离线打包开启权限缺少文件


云打包开启权限会有文件

云打包打开红框内所有文件都可以获取到本地路径,离线打包只能在手机内部存储获取,这是什么原因?

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

        <!-- 读写权限 -->  
        <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />  
        <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />  

    <application  
        android:allowBackup="true"  
        android:allowClearUserData="true"  
        android:icon="@drawable/icon"  
        android:label="@string/app_name"  
        android:largeHeap="true"  
        android:supportsRtl="true"  
        android:requestLegacyExternalStorage="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:exported="true"  
            android:windowSoftInputMode="adjustResize" >  
            <intent-filter>  
                <action android:name="android.intent.action.MAIN" />  
                <category android:name="android.intent.category.LAUNCHER" />  
            </intent-filter>  
        </activity>  
        <activity  
            android:name="io.dcloud.PandoraEntryActivity"  
            android:launchMode="singleTask"  
            android:configChanges="orientation|keyboardHidden|screenSize|mcc|mnc|fontScale|keyboard|smallestScreenSize|screenLayout|screenSize|uiMode"  
            android:hardwareAccelerated="true"  
            android:permission="com.miui.securitycenter.permission.AppPermissionsEditor"  
            android:screenOrientation="user"  
            android:theme="@style/DCloudTheme"  
            android:exported="true"  
            android:windowSoftInputMode="adjustResize">  
            <intent-filter>  
                <category android:name="android.intent.category.DEFAULT" />  
                <category android:name="android.intent.category.BROWSABLE" />  
                <action android:name="android.intent.action.VIEW" />  
                <data android:scheme=" " />  
            </intent-filter>  
        </activity>  
        <meta-data  
            android:name="dcloud_appkey"  
            android:value="99a20518bf08c33f1e" />  
        <meta-data android:name="DCLOUD_WRITE_EXTERNAL_STORAGE" android:value="always"/>  
    </application>  
</manifest>
2025-01-14 18:19 负责人:无 分享
已邀请:
1***@qq.com

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

有没有遇到过的大佬

1***@qq.com

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

有没有遇到过的大佬1

1***@qq.com

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

有没有遇到过的大佬2

1***@qq.com

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

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

要回复问题请先登录注册