Flutter 为什么这个flatter应用程序无法建立flatter_播放的依赖关系?

Flutter 为什么这个flatter应用程序无法建立flatter_播放的依赖关系?,flutter,Flutter,据我所知,问题在于Flatter_playout ^1.0.25版本 替换所需的v1.0.36版本不会产生任何效果 也许有什么地方不对劲,或者有什么地方不见了 FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ': flutter_playout: compileDebugAidl'. > Could no

据我所知,问题在于Flatter_playout ^1.0.25版本 替换所需的v1.0.36版本不会产生任何效果 也许有什么地方不对劲,或者有什么地方不见了

FAILURE: Build failed with an exception.

    * What went wrong:
    Could not determine the dependencies of task ': flutter_playout: compileDebugAidl'.
    > Could not resolve all task dependencies for configuration ': flutter_playout: debugCompileClasspath'.
       > Could not find: android_malibrary :.
         Searched in the following locations:
           - file: /Users/annashcherbak/Documents/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_playout-1.0.36/android/libs/android_malibrary.aar
         Required by:
             project: flutter_playout
       > Could not find: exoplayer_AkamaiMediaAnalytics :.
         Searched in the following locations:
           - file: /Users/annashcherbak/Documents/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_playout-1.0.36/android/libs/exoplayer_AkamaiMediaAnalytics.aar
         Required by:
             project: flutter_playout

* 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
Gradle task assembleDebug failed with exit code 1
下面是颤振医生的结果

    [✓] Flutter (Channel unknown, v1.12.13+hotfix.8, on Mac OS X 10.15.6 19G73, locale ru-RU)
     
    [!] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
        ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
    [!] Xcode - develop for iOS and macOS (Xcode 11.6)
        ✗ CocoaPods not installed.
            CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage
            on the Dart side.
            Without CocoaPods, plugins will not work on iOS or macOS.
            For more info, see https://flutter.dev/platform-plugins
          To install:
            sudo gem install cocoapods
    [✓] Android Studio (version 4.0)
    [✓] VS Code (version 1.47.3)
    [✓] Connected device (1 available)
    
    ! Doctor found issues in 2 categories.

您是否已运行
flatter pub get
?请提供你的
gradle.build以及应用程序和软件包级别的
文件。Flatter pub试用一下,没有任何帮助。据我所知,Flatter_play 1.0.36插件存在问题,我已经安装了1.0.25版本,但由于某些原因,应用程序构建开始需要1.0.36,我安装了它,但没有任何帮助,所有必要的文件都在文件夹中。这个问题出现在Mac上,在Windows上没有这样的问题,版本1.0.25存在,项目文件夹中还有其他版本,但收集器不会对它们骂人,而是安静地使用版本1.0.25。在这两个系统(PC、Mac)上,Flitter和安卓sdk版本是否相等?我在构建服务器上设置CI/CD时遇到了类似的问题,因为我的开发PC和构建服务器本身存在“微小”的版本差异。在这两个平台上,版本完全相同,1.12.13+8hotfix您是否运行了
flatter pub get
?请提供你的
gradle.build以及应用程序和软件包级别的
文件。Flatter pub试用一下,没有任何帮助。据我所知,Flatter_play 1.0.36插件存在问题,我已经安装了1.0.25版本,但由于某些原因,应用程序构建开始需要1.0.36,我安装了它,但没有任何帮助,所有必要的文件都在文件夹中。这个问题出现在Mac上,在Windows上没有这样的问题,版本1.0.25存在,项目文件夹中还有其他版本,但收集器不会对它们骂人,而是安静地使用版本1.0.25。在这两个系统(PC、Mac)上,Flitter和安卓sdk版本是否相等?我在构建服务器上设置CI/CD时遇到了类似的问题,因为我的开发PC和构建服务器本身存在“微小”的版本差异。在这两种平台上,版本完全相同,1.12.13+8hotfix
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
    localPropertiesFile.withReader('UTF-8') { reader ->
        localProperties.load(reader)
    }
}

def flutterRoot = localProperties.getProperty('flutter.sdk')
    if (flutterRoot == null) {
        throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
    }
    
    def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
    if (flutterVersionCode == null) {
        flutterVersionCode = '1'
    }
    
    def flutterVersionName = localProperties.getProperty('flutter.versionName')
    if (flutterVersionName == null) {
        flutterVersionName = '1.0'
    }

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
    compileSdkVersion 28

    sourceSets {
        main.java.srcDirs += 'src/main/kotlin'
    }

    lintOptions {
        disable 'InvalidPackage'
    }

    defaultConfig {
        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
        applicationId "selena.app"
        minSdkVersion 21
        targetSdkVersion 28
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        multiDexEnabled true
    }

    buildTypes {
        release {
            // TODO: Add your own signing config for the release build.
            // Signing with the debug keys for now, so `flutter run --release` works.
            signingConfig signingConfigs.debug

              minifyEnabled true
            useProguard true

            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

flutter {
    source '../..'
}

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'com.google.firebase:firebase-firestore:19.0.0'
    implementation 'androidx.multidex:multidex:2.0.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
    implementation 'com.google.firebase:firebase-crashlytics:17.0.0-beta01'
    implementation 'com.google.firebase:firebase-analytics:17.2.2'
    implementation 'com.google.firebase:firebase-auth:16.1.0'
}

apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'