无法转换权限-3.8.aar (com.nabinbhandari.android:permissions:3.8)

问题描述 投票:0回答:1

我尝试构建我的 Flutter 项目,但收到此错误:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform permissions-3.8.aar (com.nabinbhandari.android:permissions:3.8) to match attributes {artifactType=android-aar-metadata, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Could not find permissions-3.8.aar (com.nabinbhandari.android:permissions:3.8).
        Searched in the following locations:
            https://jcenter.bintray.com/com/nabinbhandari/android/permissions/3.8/permissions-3.8.aar
            https://jcenter.bintray.com/com/nabinbhandari/android/permissions/3.8/permissions-3.8.jar

* 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 21s
Error: Gradle task assembleDebug failed with exit code 1


已经尝试根据此调整我的build.gradle:https://github.com/jonataslaw/VideoCompress/issues/207

buildscript {
    ext.kotlin_version = '1.9.0'
    repositories {
        google()
        mavenCentral()
        jcenter()
        maven { url "https://plugins.gradle.org/m2/" } 
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:7.3.0'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        maven { url "https://plugins.gradle.org/m2/" } 
        mavenCentral()
    }
}

rootProject.buildDir = '../build'
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
    project.evaluationDependsOn(':app')
}

tasks.register("clean", Delete) {
    delete rootProject.buildDir
}

这是我的SDK

 compileSdkVersion = 34

不确定是什么原因导致此错误。过去确实有效。

颤动版本:

PS C:\Users\muela\StudioProjects\sca\v1.0\carereporter\safesense_carereporter> flutter --version 
Flutter 3.22.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision a14f74ff3a (3 months ago) • 2024-05-22 11:08:21 -0500
Engine • revision 55eae6864b
Tools • Dart 3.4.1 • DevTools 2.34.3

知道如何解决这个问题吗?

flutter gradle
1个回答
0
投票

你有什么解决办法吗?

© www.soinside.com 2019 - 2024. All rights reserved.