Closed quanzaiyu closed 4 years ago
D:\Documents\life_helper\life_helper_provider\android\app\src\debug\AndroidManifest.xml:20:7-34 Error:
Attribute application@allowBackup value=(false) from AndroidManifest.xml:20:7-34
is also present at [com.aliyun.dpa:oss-android-sdk:2.9.2] AndroidManifest.xml:18:9-35 value=(true).
Suggestion: add 'tools:replace="android:allowBackup"' to
报错很明显了啊,按照提示去改一下AndroidManifest就好了
谢谢, 问题已修复, 修改 AndroidManifest.xml
对应位置为以下内容即可:
android:allowBackup="true"
android:allowBackup="true"
您好,请问是怎么改的,是改 android\app\src\debug\AndroidManifest.xml 这个文件么,修改后的文件能分享下么,我根据你前面的答案试了好久都不行,不知道 “对应位置” 指的具体是什么位置。。。
@AnnaSearl 肯定不是改debug的啊,是main下的
在 react-native 0.60 版本及以后的版本, 不需要使用
react-native link
命令连接资源, 在安装 aliyun-oss-react-native 后, 编译报错, 即使gradlew clean
了也仍然报错, 错误的部分详情如下:一旦卸载
aliyun-oss-react-native
就没问题了, 希望尽快支持 rn 0.60+, 辛苦了附上我的系统环境: