6***@qq.com
经过对比发现,安卓离线打包的文件中,新版本的AndroidManifest.xml最下面多出了这么一段代码:
```
<activity
android:name="io.dcloud.PandoraEntryActivity"
android:launchMode="singleTask"
android:configChanges="orientation|keyboardHidden|screenSize|mcc|mnc|fontScale|keyboard"
android:hardwareAccelerated="true"
android:permission="com.miui.securitycenter.permission.AppPermissionsEditor"
android:screenOrientation="user"
android:theme="@style/DCloudTheme"
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="spacechuang"
android:host="aitu">
</data>
</intent-filter>
</activity>
<provider
android:name="io.dcloud.gdt.GdtFileProvider"
android:authorities="io.dcloud.HelloH5.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/gdt_file_path"
tools:replace="android:resource"/>
</provider>
<provider
android:name="com.bytedance.sdk.openadsdk.TTFileProvider"
android:authorities="io.dcloud.HelloH5.TTFileProvider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths"
tools:replace="android:resource"/>
</provider>
<provider
android:name="com.bytedance.sdk.openadsdk.multipro.TTMultiProvider"
android:authorities="io.dcloud.HelloH5.TTMultiProvider"
android:exported="false" />
```
使用的时候将其中的HelloH5换成你自己的app名称即可,如果报错,那么可能是你没有用到一些sdk,将
```
<provider
android:name="io.dcloud.gdt.GdtFileProvider"
android:authorities="io.dcloud.HelloH5.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/gdt_file_path"
tools:replace="android:resource"/>
</provider>
<provider
android:name="com.bytedance.sdk.openadsdk.TTFileProvider"
android:authorities="io.dcloud.HelloH5.TTFileProvider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths"
tools:replace="android:resource"/>
</provider>
<provider
android:name="com.bytedance.sdk.openadsdk.multipro.TTMultiProvider"
android:authorities="io.dcloud.HelloH5.TTMultiProvider"
android:exported="false" />
```
这三个调用sdk的删除即可。。。。。
等官方回复等了半年, 最后还是得靠自己……官方理都不理
2020-04-06 18:42
639 个评论
要回复文章请先登录或注册
456vv
6***@qq.com
搬砖中
1***@qq.com
hida
CharkLeo
水手
水手
水手
6***@qq.com