angular-Android 10 的 Ionic 构建错误 minCompileSdk
发布时间:2022-06-04 17:42:44 304
相关标签: # chrome-devtools
我开始在离子构建中遇到此错误...在此之前我的项目执行良好,再次尝试我收到此错误...请我需要帮助...我尝试了很多选项都无济于事。
我构建时出错
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
> The minCompileSdk (31) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-30).
Dependency: androidx.browser:browser:1.4.0.
AAR metadata file: /private/var/root/.gradle/caches/transforms-3/fedb1dfce730f31190923d6e253eb6c6/transformed/browser-1.4.0/META-INF/com/android/build/gradle/aar-metadata.properties.
我正在使用 android@10。
我的 build.gradle 文件看起来像这样
buildscript {
apply from: 'CordovaLib/cordova.gradle'
apply from: 'repositories.gradle'
repositories repos
dependencies {
classpath "com.android.tools.build:gradle:${cordovaConfig.AGP_VERSION}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${cordovaConfig.KOTLIN_VERSION}"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
def hasRepositoriesGradle = file('repositories.gradle').exists()
if (hasRepositoriesGradle) {
apply from: 'repositories.gradle'
} else {
apply from: "${project.rootDir}/repositories.gradle"
}
repositories repos
}
task clean(type: Delete) {
delete rootProject.buildDir
}
特别声明:以上内容(图片及文字)均为互联网收集或者用户上传发布,本站仅提供信息存储服务!如有侵权或有涉及法律问题请联系我们。
举报