react-native-jitsi-meet icon indicating copy to clipboard operation
react-native-jitsi-meet copied to clipboard

is also present at [org.jitsi.react:jitsi-meet-sdk:2.4.0] AndroidManifest.xml:32:9-35 value=(true).

Open pikooli opened this issue 5 years ago • 10 comments

Hello, i got a little problem when i want to use react-native-jitsi-meet. i did a blank project with "npx react-native init project" , i can launch the project fine on a emulator with npm run android.

i wanted to test this jitsi meet for react native but everytime i try to install and use it , i got error in building.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings 19 actionable tasks: 2 executed, 17 up-to-date /Users/pascal/test/test/AwesomeProject/android/app/src/debug/AndroidManifest.xml:11:7-34 Error: Attribute application@allowBackup value=(false) from AndroidManifest.xml:11:7-34 is also present at [org.jitsi.react:jitsi-meet-sdk:2.4.0] AndroidManifest.xml:32:9-35 value=(true). Suggestion: add 'tools:replace="android:allowBackup"' to element at AndroidManifest.xml:7:5-12:39 to >override. /Users/pascal/test/test/AwesomeProject/android/app/src/debug/AndroidManifest.xml Error: uses-sdk:minSdkVersion 16 cannot be smaller than version 21 declared in library [org.jitsi.react:jitsi-meet-sdk:2.4.0] >/Users/pascal/.gradle/caches/transforms-2/files-2.1/13980a81bf322f3ecfd3478bb1109cc1/jitsi-meet-sdk->2.4.0/AndroidManifest.xml as the library might be using APIs not available in 16 Suggestion: use a compatible library with a minSdk of at most 16, or increase this project's minSdk version to at least 21, or use tools:overrideLibrary="org.jitsi.meet.sdk" to force usage (may lead to runtime failures)

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:processDebugManifest'. Manifest merger failed with multiple errors, see logs
  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with -->scan to get full insights.
  • Get more help at https://help.gradle.org

BUILD FAILED in 3s`

i did configure like in the readme, but nothing work.

can someone help ? thanks in advance

pikooli avatar Aug 11 '20 15:08 pikooli

I fixe it by putting 'android:allowBackup="true"' in "android/app/src/debug/AndroidManifest.xml" at application

pikooli avatar Aug 12 '20 09:08 pikooli

facing same issue

Mubeen07 avatar Aug 20 '20 20:08 Mubeen07

facing the same problem, android:allowBackup="true" did not worked for me

raghavyuva avatar Sep 29 '20 16:09 raghavyuva

I have same issue

vinh-smartdev avatar Oct 12 '20 07:10 vinh-smartdev

i also fixed by editing androidManifest.xml android:allowBackup="true" to "true" .

minos95 avatar Dec 04 '20 21:12 minos95

If you need to prevent backups, in your manifest you can add:

tools:replace="android:allowBackup"

icc-romeu avatar Dec 10 '20 07:12 icc-romeu

Final sol

<application
    android:usesCleartextTraffic="true"
    tools:targetApi="28"
    android:allowBackup="true"
    tools:replace="android:allowBackup"
    tools:ignore="GoogleAppIndexingWarning">
    <activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
</application>

dipankar08 avatar Jun 19 '21 15:06 dipankar08

I have same issue. Have any solution?

I've tested all solutions from this issue, but it's not working for me...

malyiy avatar Jun 07 '22 09:06 malyiy

Just in case.

add to the manifest header:

xmlns:tools="http://schemas.android.com/tools"

For example:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.yourpackage"
    xmlns:tools="http://schemas.android.com/tools">

Then in the element: tools:replace="android:allowBackup"

https://stackoverflow.com/a/32033581

Aleksandern avatar Sep 15 '22 09:09 Aleksandern

FAILURE: Build failed with an exception.

  • What went wrong: Could not determine the dependencies of task ':app:mergeDebugAssets'.

Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'. Could not resolve org.jitsi.react:jitsi-meet-sdk:5.1.0. Required by: project :app > project :react-native-jitsi-meet > Could not resolve org.jitsi.react:jitsi-meet-sdk:5.1.0. > Could not get resource 'https://www.jitpack.io/org/jitsi/react/jitsi-meet-sdk/5.1.0/jitsi-meet-sdk-5.1.0.pom'. > Could not HEAD 'https://www.jitpack.io/org/jitsi/react/jitsi-meet-sdk/5.1.0/jitsi-meet-sdk-5.1.0.pom'. Received status code 401 from server: Unauthorized > Could not resolve org.jitsi.react:jitsi-meet-sdk:5.1.0. > Could not get resource 'https://www.jitpack.io/org/jitsi/react/jitsi-meet-sdk/5.1.0/jitsi-meet-sdk-5.1.0.pom'. > Could not HEAD 'https://www.jitpack.io/org/jitsi/react/jitsi-meet-sdk/5.1.0/jitsi-meet-sdk-5.1.0.pom'. Received status code 401 from server: Unauthorized

  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 29s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

  • What went wrong: Could not determine the dependencies of task ':app:mergeDebugAssets'.

Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'. Could not resolve org.jitsi.react:jitsi-meet-sdk:5.1.0. Required by: project :app > project :react-native-jitsi-meet > Could not resolve org.jitsi.react:jitsi-meet-sdk:5.1.0. > Could not get resource 'https://www.jitpack.io/org/jitsi/react/jitsi-meet-sdk/5.1.0/jitsi-meet-sdk-5.1.0.pom'. > Could not HEAD 'https://www.jitpack.io/org/jitsi/react/jitsi-meet-sdk/5.1.0/jitsi-meet-sdk-5.1.0.pom'. Received status code 401 from server: Unauthorized > Could not resolve org.jitsi.react:jitsi-meet-sdk:5.1.0. > Could not get resource 'https://www.jitpack.io/org/jitsi/react/jitsi-meet-sdk/5.1.0/jitsi-meet-sdk-5.1.0.pom'. > Could not HEAD 'https://www.jitpack.io/org/jitsi/react/jitsi-meet-sdk/5.1.0/jitsi-meet-sdk-5.1.0.pom'. Received status code 401 from server: Unauthorized

  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 29s

at makeError (/home/dali/Desktop/fabskill/video_interview/reactNativeCandidateV2/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:174:9)
at /home/dali/Desktop/fabskill/video_interview/reactNativeCandidateV2/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (/home/dali/Desktop/fabskill/video_interview/reactNativeCandidateV2/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)
at async Command.handleAction (/home/dali/Desktop/fabskill/video_interview/reactNativeCandidateV2/node_modules/@react-native-community/cli/build/index.js:192:9)

medAliJlassi avatar Jul 12 '23 15:07 medAliJlassi