skrafft / react-native-jitsi-meet

React native wrapper for Jitsi Meet SDK
Apache License 2.0
286 stars 348 forks source link

android build error #199

Open aghahuseynov opened 4 years ago

aghahuseynov commented 4 years ago

Hello, I am getting an error while building the application.

Error : Could not HEAD 'https://jitpack.io/org/jitsi/react/jitsi-meet-sdk/2.4.0/jitsi-meet-sdk-2.4.0.pom'. Received status code 401 from server: Unauthorized Enable Gradle 'offline mode' and sync project

RN Version => 0.62.2 "react-native-jitsi-meet": "^2.1.1",

gradle v = classpath('com.android.tools.build:gradle:3.6.3')

maxoyano commented 3 years ago

Same error here.

manpreetsingh3215 commented 3 years ago

i got the same error

abhikulshrestha22 commented 3 years ago

@aghahuseynov @maxoyano @manpreetsingh3215 Did you guys get any workaround for this? I am stuck on the same error

aghahuseynov commented 3 years ago

unfortunately not found

Saurabh-WowLabz-Kataria commented 3 years ago

It's a bit late but I was also facing this issue and solved it by adding the below line in android/app/build.gradle:

implementation ('org.jitsi.react:jitsi-meet-sdk:+') { transitive = true }

tphuc commented 3 years ago

Solved with:

settings.gradle

project(':react-native-jitsi-meet').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-jitsi-meet/android')

AndroidManifest.xml

<manifest
  xmlns:tools="http://schemas.android.com/tools"
  ...>

    ...
    <application
      tools:replace="android:allowBackup"
      ...

android/build.gradle

allprojects {
    repositories {
        maven {
            url "https://github.com/jitsi/jitsi-maven-repository/raw/master/releases"
        }
        ...
    }
}

app/build.gradle

dependencies {
   implementation ('org.jitsi.react:jitsi-meet-sdk:2.+') { transitive = true }
}