简体   繁体   English

在运行应用程序时检查 AAR 元数据值时发现一个或多个问题

[英]while running the application One or more issues found when checking AAR metadata values

I am making Gmail application using javamail API. When I added these libraries it is saying One or more issues found when checking AAR metadata values: build.gradle我正在使用 javamail API 制作 Gmail 应用程序。当我添加这些库时,它说检查 AAR 元数据值时发现一个或多个问题: build.gradle

plugins {
    id 'com.android.application'
}
android {
    compileSdk 31
    defaultConfig {
        applicationId "com.example.software2.sample"
        minSdk 22
        targetSdk 31
        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
    }
    buildToolsVersion '31.0.0'
}

dependencies {
    implementation 'androidx.appcompat:appcompat:1.5.1'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
    implementation 'androidx.core:core-ktx:1.9.0'
    implementation files('libs/activation.jar')
    implementation files('libs/additionnal.jar')
    implementation files('libs/mail.jar')
    testImplementation 'junit:junit:4.+'
    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}

Following issues are appears:出现以下问题:

One or more issues found when checking AAR metadata values:检查 AAR 元数据值时发现的一个或多个问题:

The minCompileSdk (32) specified in a dependency's AAR metadata (META-INF/com/android/build.gradle/aar-metadata.properties) is greater than this module's compileSdkVersion (android-31).依赖项的 AAR 元数据 (META-INF/com/android/build.gradle/aar-metadata.properties) 中指定的 minCompileSdk (32) 大于此模块的 compileSdkVersion (android-31)。 Dependency: androidx.appcompat:appcompat-resources:1.5.1.依赖项:androidx.appcompat:appcompat-resources:1.5.1。 AAR metadata file: C:\Users\Rushikesh.gradle\caches\transforms-3\63bd602bbd077db6fa33982f975ba9a9\transformed\jetified-appcompat-resources-1.5.1\META-INF\com\android\build.gradle\aar-metadata.properties. AAR 元数据文件:C:\Users\Rushikesh.gradle\caches\transforms-3\63bd602bbd077db6fa33982f975ba9a9\transformed\jetified-appcompat-resources-1.5.1\META-INF\com\android\build.gradle\aar-metadata.properties . The minCompileSdk (32) specified in a dependency's AAR metadata (META-INF/com/android/build.gradle/aar-metadata.properties) is greater than this module's compileSdkVersion (android-31).依赖项的 AAR 元数据 (META-INF/com/android/build.gradle/aar-metadata.properties) 中指定的 minCompileSdk (32) 大于此模块的 compileSdkVersion (android-31)。 Dependency: androidx.appcompat:appcompat:1.5.1.依赖项:androidx.appcompat:appcompat:1.5.1。 AAR metadata file: C:\Users\Rushikesh.gradle\caches\transforms-3\92893fee921d4827887eec16e205d3d5\transformed\appcompat-1.5.1\META-INF\com\android\build.gradle\aar-metadata.properties. AAR 元数据文件:C:\Users\Rushikesh.gradle\caches\transforms-3\92893fee921d4827887eec16e205d3d5\transformed\appcompat-1.5.1\META-INF\com\android\build.gradle\aar-metadata.properties。

The minCompileSdk (32) specified in a dependency's AAR metadata (META-INF/com/android/build.gradle/aar-metadata.properties) is greater than this module's compileSdkVersion (android-31).依赖项的 AAR 元数据 (META-INF/com/android/build.gradle/aar-metadata.properties) 中指定的 minCompileSdk (32) 大于此模块的 compileSdkVersion (android-31)。 Dependency: androidx.emoji2:emoji2-views-helper:1.2.0.依赖项:androidx.emoji2:emoji2-views-helper:1.2.0。 AAR metadata file: C:\Users\Rushikesh.gradle\caches\transforms-3\4ae05e0043a542b94a1819b5f9f97771\transformed\jetified-emoji2-views-helper-1.2.0\META-INF\com\android\build.gradle\aar-metadata.properties. AAR元数据文件:C:\Users\Rushikesh.gradle\caches\transforms-3\4ae05e0043a542b94a1819b5f9f97771\transformed\jetified-emoji2-views-helper-1.2.0\META-INF\com\android\build.gradle\aar-metadata 。特性。

The minCompileSdk (32) specified in a dependency's AAR metadata (META-INF/com/android/build.gradle/aar-metadata.properties) is greater than this module's compileSdkVersion (android-31).依赖项的 AAR 元数据 (META-INF/com/android/build.gradle/aar-metadata.properties) 中指定的 minCompileSdk (32) 大于此模块的 compileSdkVersion (android-31)。 Dependency: androidx.emoji2:emoji2:1.2.0.依赖:androidx.emoji2:emoji2:1.2.0。 AAR metadata file: C:\Users\Rushikesh.gradle\caches\transforms-3\c68bf547d8153864e116103b3c54fbba\transformed\jetified-emoji2-1.2.0\META-INF\com\android\build.gradle\aar-metadata.properties. AAR 元数据文件:C:\Users\Rushikesh.gradle\caches\transforms-3\c68bf547d8153864e116103b3c54fbba\transformed\jetified-emoji2-1.2.0\META-INF\com\android\build.gradle\aar-metadata.properties。 The minCompileSdk (33) specified in a dependency's AAR metadata (META-INF/com/android/build.gradle/aar-metadata.properties) is greater than this module's compileSdkVersion (android-31).依赖项的 AAR 元数据 (META-INF/com/android/build.gradle/aar-metadata.properties) 中指定的 minCompileSdk (33) 大于此模块的 compileSdkVersion (android-31)。 Dependency: androidx.core:core:1.9.0.依赖:androidx.core:core:1.9.0。 AAR metadata file: C:\Users\Rushikesh.gradle\caches\transforms-3\acd99a442914ab71e729da423f1b38d1\transformed\core-1.9.0\META-INF\com\android\build.gradle\aar-metadata.properties. AAR 元数据文件:C:\Users\Rushikesh.gradle\caches\transforms-3\acd99a442914ab71e729da423f1b38d1\transformed\core-1.9.0\META-INF\com\android\build.gradle\aar-metadata.properties。

The minCompileSdk (33) specified in a dependency's AAR metadata (META-INF/com/android/build.gradle/aar-metadata.properties) is greater than this module's compileSdkVersion (android-31).依赖项的 AAR 元数据 (META-INF/com/android/build.gradle/aar-metadata.properties) 中指定的 minCompileSdk (33) 大于此模块的 compileSdkVersion (android-31)。 Dependency: androidx.core:core-ktx:1.9.0.依赖项:androidx.core:core-ktx:1.9.0。 AAR metadata file: C:\Users\Rushikesh.gradle\caches\transforms-3\24dbdd1120e9c289188c7e6e855e6468\transformed\jetified-core-ktx-1.9.0\META-INF\com\android\build.gradle\aar-metadata.properties. AAR元数据文件:C:\Users\Rushikesh.gradle\caches\transforms-3\24dbdd1120e9c289188c7e6e855e6468\transformed\jetified-core-ktx-1.9.0\META-INF\com\android\build.gradle\aar-metadata.properties .

The minCompileSdk (33) specified in a dependency's AAR metadata (META-INF/com/android/build.gradle/aar-metadata.properties) is greater than this module's compileSdkVersion (android-31).依赖项的 AAR 元数据 (META-INF/com/android/build.gradle/aar-metadata.properties) 中指定的 minCompileSdk (33) 大于此模块的 compileSdkVersion (android-31)。 Dependency: androidx.annotation:annotation-experimental:1.3.0.依赖项:androidx.annotation:annotation-experimental:1.3.0。 AAR metadata file: C:\Users\Rushikesh.gradle\caches\transforms-3\0c48b9042d6344e832766a1eebc1f197\transformed\jetified-annotation-experimental-1.3.0\META-INF\com\android\build.gradle\aar-metadata.properties. AAR元数据文件:C:\Users\Rushikesh.gradle\caches\transforms-3\0c48b9042d6344e832766a1eebc1f197\transformed\jetified-annotation-experimental-1.3.0\META-INF\com\android\build.gradle\aar-metadata.properties .

You are using dependencies which configured with greater minCompileSdk than your chosen compileSdk 31.您正在使用配置了比您选择的 compileSdk 31 更大的 minCompileSdk 的依赖项。

eg例如

implementation 'androidx.appcompat:appcompat:1.5.1'

The minCompileSdk (32) specified in a dependency's AAR metadata (META-INF/com/android/build.gradle/aar-metadata.properties) is greater than this module's compileSdkVersion (android-31).依赖项的 AAR 元数据 (META-INF/com/android/build.gradle/aar-metadata.properties) 中指定的 minCompileSdk (32) 大于此模块的 compileSdkVersion (android-31)。 Dependency: androidx.appcompat:appcompat-resources:1.5.1.依赖项:androidx.appcompat:appcompat-resources:1.5.1。 AAR metadata file: AAR 元数据文件:

Try some older versions of these dependencies with fitting minCompileSdk.使用适合的 minCompileSdk 尝试这些依赖项的一些旧版本。

EDIT: Or upgrade your compileSdk to 33.编辑:或将您的 compileSdk 升级到 33。

Also have a look at Android app won't build -- The minCompileSdk (31) specified in a dependency's androidx.work:work-runtime:2.7.0-beta01另请查看Android app won't build -- The minCompileSdk (31) specified in a dependency's androidx.work:work-runtime:2.7.0-beta01

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android Studio 错误:“检查 AAR 元数据时发现 6 个问题” - Android Studio error: "6 issues were found when checking AAR metadata" “ PersistenceException: HibernateException: 发现多于一行具有给定标识符” - 运行 select 查询时 - " PersistenceException : HibernateException : More than one row with the given identifier was found " - When running select query 为什么即使机器上运行了多个 java 应用程序也没有 JMX 冲突? - Why there is no JMX conflict even when more than one java application is running on the machine? 检查应用程序是否已经在运行 - Checking if application is already running 运行 spring 应用程序时未找到 Spring Controller - Spring Controller not found when running spring application 在应用程序中发现了多个m子部署说明 - More than one mule-deploy descriptions found in application 将值从数组打印到Java Swing应用程序时,JTextPane问题 - JTextPane issues while printing values from array to Java Swing Application 运行 springboot 应用程序时在浏览器中找不到 h2 控制台 - h2 console not being found in browser while running springboot application 检查一个文件是否正在运行,而另一个不在 - Checking if one file is running and another is not 将值添加到DataPoint阵列中导致应用程序在运行时崩溃 - Adding values into DataPoint array causing the application crash while running
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM