Shoutem UI React Native Android 未构建 [英] Shoutem UI React Native Android Not building

查看:130
本文介绍了Shoutem UI React Native Android 未构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

再次手动安装我的每个库后,我注意到 Shoutem UI 抛出错误并破坏了我的构建,仅适用于 android.

After manually installing every one of my libraries again, I've noticed that Shoutem UI is throwing an error and breaking my build only for android.

Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml:11:7-34
is also present at [me.relex:photodraweeview:1.0.0] AndroidManifest.xml:10:9-35 value=(true).
Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml:7:5-117 to override.

根据网上的建议,我也尝试将/android/app/src/main/AndroidManifest.xml 中的 android:allowBackup 更改为 true 但是这给了我这个错误

Following suggestings from online I also tried changing my android:allowBackup in /android/app/src/main/AndroidManifest.xml to true But then that gives me this error

Duplicate class com.facebook.imagepipeline.cache.CountingMemoryCacheInspector found in modules imagepipeline-base-2.2.0-runtime.jar (com.facebook.fresco:imagepipeline-base:2.2.0) and stetho-2.0.0-runtime.jar (com.facebook.fresco:stetho:2.0.0)
Duplicate class com.facebook.imagepipeline.cache.CountingMemoryCacheInspector$DumpInfo found in modules imagepipeline-base-2.2.0-runtime.jar (com.facebook.fresco:imagepipeline-base:2.2.0) and stetho-2.0.0-runtime.jar (com.facebook.fresco:stetho:2.0.0)
Duplicate class com.facebook.imagepipeline.cache.CountingMemoryCacheInspector$DumpInfoEntry found in modules imagepipeline-base-2.2.0-runtime.jar (com.facebook.fresco:imagepipeline-base:2.2.0) and stetho-2.0.0-runtime.jar (com.facebook.fresco:stetho:2.0.0)

我目前使用的是 react-native 版本:0.62.2.

I'm currently using react-native verion: 0.62.2.

这些是我安装的其他库

"dependencies": {
"@react-native-community/datetimepicker": "^2.4.2",
"@react-native-community/picker": "^1.6.5",
"@react-native-firebase/app": "^7.3.0",
"@react-native-firebase/auth": "^8.0.7",
"@react-native-firebase/database": "^7.2.4",
"@react-native-firebase/firestore": "^7.2.1",
"@react-native-firebase/storage": "^7.1.5",
"@react-navigation/bottom-tabs": "^5.5.2",
"@react-navigation/native": "^5.5.1",
"@react-navigation/stack": "^5.5.1",
"@shoutem/ui": "^2.0.3",
"react": "16.11.0",
"react-native": "0.62.2",
"react-native-linear-gradient": "~2.5.6",
"react-native-modal-datetime-picker": "^8.7.1",
"react-native-photo-view": "github:shoutem/react-native-photo-view#0ffa1481f6b6cb8663cb291b7db1d6644440584d",
"react-native-vector-icons": "^6.6.0",
"react-native-webview": "9.4.0"

},

有人知道如何解决这个问题吗?

Does anyone know how to fix this?

推荐答案

android:allowBackup="false" 更改为 android:allowBackup="true"android/app/src/main/AndroidManifest.xml.

之后做

cd android (./gradlew clean)

cd .. build apk

这解决了我的问题

这篇关于Shoutem UI React Native Android 未构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆