我试着改变compilesdk和mindsdk的版本,就像here告诉我的那样。我读了所有其他关于同样的帖子,但是到目前为止没有一个成功。我看了以前的答案ans1和ans2。他们没有帮助。
当我试图运行这个项目时,它会引发多个错误。我认为主要的问题是因为这个
找不到任何符合org.jitsi.react:jitsi-meet-sdk:3.+的项目,因为没有可用的org.jitsi.react:jitsi-meet-sdk版本。
build.gradle(我的应用程序)
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
maven {
url "https://github.com/jitsi/jitsi-maven-repository/raw/master/releases"
}
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.4"
classpath 'com.google.gms:google-services:4.3.10'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
构建.gradle(应用程序)
plugins {
id 'com.android.application'
id 'com.google.gms.google-services'
}
android {
compileSdk 30
defaultConfig {
applicationId "com.example.myapplication"
minSdk 21
targetSdk 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'com.google.firebase:firebase-auth:19.2.0'
implementation 'com.google.firebase:firebase-common-ktx:20.0.0'
implementation 'com.google.firebase:firebase-firestore:24.0.0'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation platform('com.google.firebase:firebase-bom:29.0.3')
implementation ('org.jitsi.react:jitsi-meet-sdk:3.+') { transitive = true }
}
任何帮助都是感激不尽的。
4条答案
按热度按时间yb3bgrhw1#
我找到了一个解决方法。你必须将maven URL粘贴到settings.gradle文件中。其他一些用户也遇到了类似于here的问题。我做了同样的操作,它工作正常。
beq87vna2#
+1 /无法解析:网站名称:jitsi-meet-sdk:3.+
5分钟我把Maven依赖项添加到了错误的地方。它在项目Gradle中,在allprojects-〉repository下。
构建已配置为首选设置存储库而不是项目存储库,但构建文件“build.gradle”添加了存储库“maven”
i5desfxk3#
对我来说,问题在于SDK版本
我替换了这条线
用这条线
vof42yt14#
如果您使用的React-Native〈0.60,则应使用〈2.0.0的版本。对于高于2.0.0的版本,您需要在metro.config.js文件中添加以下代码片段,以避免metro捆绑器中的react-native-jitsi-meet和react-native之间发生冲突。
const blacklist =必需(“地铁配置/源/默认/黑名单”);模块.exports = {解析器:{黑名单RE:黑名单([ /ios/Pod/JitsiMeetSDK/框架/JitsiMeet.framework/assets/节点模块/React原生/.*/,]),},};
参考:https://github.com/skrafft/react-native-jitsi-meet