Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Not compiling with Shoutem UI #496

Open
andy-t-wang opened this issue Jun 23, 2020 · 3 comments
Open

Android Not compiling with Shoutem UI #496

andy-t-wang opened this issue Jun 23, 2020 · 3 comments

Comments

@andy-t-wang
Copy link

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.

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)

I'm currently using react-native version: 0.62.2.
Does anyone know how to fix this?

@andy-t-wang
Copy link
Author

These are the libraries I have installed

"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": "^1.0.4",
    "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"
  },

@cc-visionary
Copy link

cc-visionary commented Jun 25, 2020

I had the same error, but fixed it by remove react-native-photo-view. Try doing this https://stackoverflow.com/a/62566861/11692740

@UjjalKar
Copy link

UjjalKar commented Oct 21, 2020

I had same problem i changed android:allowBackup="false" to android:allowBackup="true" working fine now.

<application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="true" android:theme="@style/AppTheme"> <activity android:name=".MainActivity" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:launchMode="singleTask" 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="com.facebook.react.devsupport.DevSettingsActivity" /> </application>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants