gpt4 book ai didi

android - 无法解析 ':react-native-twilio-video-webrtc:_debugPublishCopy' 的所有依赖项。 > com.android.support :support-annotations

转载 作者:行者123 更新时间:2023-12-03 05:10:02 30 4
gpt4 key购买 nike

在 Android 平台上编译 react-native 应用程序时的依赖问题。
错误引用了我正在使用的这个模块:https://github.com/blackuy/react-native-twilio-video-webrtc但我不确定它是否特定于它,似乎是与 SDK 相关的问题?

重现步骤

  • 尝试编译应用程序,调试或发布

  • 预期行为

    应用程序应该编译成功

    实际行为

    `FAILURE:构建失败并出现异常。
  • 什么地方出了错:
    配置项目 ':app' 时出现问题。

    Could not resolve all dependencies for configuration ':app:_debugApk'. A problem occurred configuring project ':react-native-twilio-video-webrtc'. Could not resolve all dependencies for configuration ':react-native-twilio-video-webrtc:_debugPublishCopy'. Could not find com.android.support:support-annotations:26.1.0. Searched in the following locations: file:/Users/antoine/Library/Android/sdk/extras/android/m2repository/com/android/support/support-annotations/26.1.0/support-annotations-26.1.0.pom file:/Users/antoine/Library/Android/sdk/extras/android/m2repository/com/android/support/support-annotations/26.1.0/support-annotations-26.1.0.jar file:/Users/antoine/R/medwayapp/android/sdk-manager/com/android/support/support-annotations/26.1.0/support-annotations-26.1.0.jar Required by: project :react-native-twilio-video-webrtc > com.android.support:appcompat-v7:25.3.1 project :react-native-twilio-video-webrtc > com.android.support:appcompat-v7:25.3.1 > com.android.support:support-vector-drawable:25.3.1 project :react-native-twilio-video-webrtc > com.android.support:design:25.3.1 > com.android.support:recyclerview-v7:25.3.1 project :react-native-twilio-video-webrtc > com.android.support:design:25.3.1 > com.android.support:transition:25.3.1 project :react-native-twilio-video-webrtc > com.android.support:appcompat-v7:25.3.1 > com.android.support:support-vector-drawable:25.3.1 > com.android.support:support-compat:25.3.1 project :react-native-twilio-video-webrtc > com.android.support:design:25.3.1 > com.android.support:support-v4:25.3.1 > com.android.support:support-media-compat:25.3.1 project :react-native-twilio-video-webrtc > com.android.support:design:25.3.1 > com.android.support:support-v4:25.3.1 > com.android.support:support-core-utils:25.3.1 project :react-native-twilio-video-webrtc > com.android.support:design:25.3.1 > com.android.support:recyclerview-v7:25.3.1 > com.android.support:support-core-ui:25.3.1 Could not find com.android.support:support-annotations:26.1.0. Searched in the following locations: file:/Users/antoine/Library/Android/sdk/extras/android/m2repository/com/android/support/support-annotations/26.1.0/support-annotations-26.1.0.pom file:/Users/antoine/Library/Android/sdk/extras/android/m2repository/com/android/support/support-annotations/26.1.0/support-annotations-26.1.0.jar file:/Users/antoine/R/medwayapp/android/sdk-manager/com/android/support/support-annotations/26.1.0/support-annotations-26.1.0.jar Required by: project :react-native-twilio-video-webrtc > com.twilio:video-android:1.3.8

  • 尝试:
    使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。

  • 构建失败`

    环境
  • Node.js 版本 : v8.4.0
  • React Native 版本 : 0.42.0
  • React Native 平台+平台版本 : 安卓 7

  • react-native-twilio-video-webrtc

    版本 : 掌握

    特定于此问题的 build.gradle 行
    android {
    compileSdkVersion 25
    buildToolsVersion '25.0.3'
    dexOptions {
    jumboMode true
    }
    defaultConfig {
    applicationId "com.app.id"
    minSdkVersion 16
    targetSdkVersion 23
    versionCode 1
    versionName "1.0.0"
    }
    }
    dependencies {
    compile project(':react-native-twilio-video-webrtc')
    compile project(':react-native-code-push')
    compile project(':react-native-i18n')
    compile project(':react-native-vector-icons')
    compile project(':react-native-config')
    compile fileTree(dir: "libs", include: ["*.jar"])
    compile "com.android.support:appcompat-v7:25.1.0"
    compile "com.facebook.react:react-native:+" // From node_modules
    }

    Gradle 构建工具:2.2.3

    最佳答案

    固定的 !原来我的模块现在依赖于 com.android.support:support-annotations并且我从中获取包的存储库都没有它。我必须添加 maven { url "https://maven.google.com" }到我的高层build.gradle使其工作的存储库。

    关于android - 无法解析 ':react-native-twilio-video-webrtc:_debugPublishCopy' 的所有依赖项。 > com.android.support :support-annotations,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49492601/

    30 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com