在我的ionic应用程序中,我集成了ionic4原生base64插件,当我的android目标sdk 28时,它在所有android os手机上都工作得很好。由于播放商店的限制,我已经将tragetSDK 28改为29,然后它就不能在android os 10手机上工作了。请任何人帮助如何修复它。
发布于 2021-01-08 17:23:56
在Android中,在build.gradle(app)文件中,将目标SDK更改为targetSdkVersion 30或targetSdkVersion 29。
然后转到您的AndroidManifest.xml,在application标记中添加一行android:requestLegacyExternalStorage="true",如下所示:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
>
<application
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:requestLegacyExternalStorage="true">https://stackoverflow.com/questions/65624260
复制相似问题