The s:form tag declares that it accepts dynamic attributes but does not implemen

本文讨论了在项目中出现与应用服务器(如Tomcat/JBoss)中包重复且版本过低的问题,导致冲突。提供了解决方案,包括删除重复包或将其复制到项目中,以确保服务正常启动。
可能是你项目中的诸如:catalina.jar、jsp-api.jar、servlet-api.jar、javax.servlet.jar、javax.servlet.jsp.jar等包和应用服务器(JBoss/Tomcat等)中的包重复且比其版本低,应用服务器在启动时会优先加载项目中的包,这样就导致和应用服务器中的其它包不匹配。可把重复的包从项目中删除,或将应用服务器下的这些包拷贝到项目中,重启服务即可。


我的情况是:jboss-jsp-api_2.2_spec.jar
jboss-el-api_2.2_spec.jar
jboss-servlet-api_3.0_spec.jar与Tomcat中的包冲突.把它们删除就OK.
Build file '/Users/ts-xin.e.yu/IdeaProjects/opp-bulk-auto-recovery-batch/opp-commons/build.gradle.kts' line: 171 Could not resolve all artifacts for configuration ':opp-commons:classpath'. > Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23. Required by: project :opp-commons > org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin:1.9.23 > The consumer was configured to find a runtime of a component compatible with Java 11, packaged as a jar, and its dependencies declared externally. However we cannot choose between the following variants of org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23: - gradle70JavadocElements - gradle70RuntimeElements - gradle70SourcesElements - gradle71JavadocElements - gradle71RuntimeElements - gradle71SourcesElements - gradle74JavadocElements - gradle74RuntimeElements - gradle74SourcesElements - gradle75JavadocElements - gradle75RuntimeElements - gradle75SourcesElements - gradle76JavadocElements - gradle76RuntimeElements - gradle76SourcesElements - gradle80JavadocElements - gradle80RuntimeElements - gradle80SourcesElements - gradle81JavadocElements - gradle81RuntimeElements - gradle81SourcesElements - gradle82JavadocElements - gradle82RuntimeElements - gradle82SourcesElements - javadocElements - runtimeElementsWithFixedAttribute - sourcesElements All of them match the consumer attributes: - Variant 'gradle70JavadocElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a runtime of a component, and its dependencies declared externally: - Unmatched attributes: - Provides documentation but the consumer didn't ask for it - Provides javadocs but the consumer didn't ask for it - Doesn't say anything about its target Java version (required compatibility with Java 11) - Doesn't say anything about its elements (required them packaged as a jar) - Provides attribute 'org.gradle.plugin.api-version' with value '7.0' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Variant 'gradle70RuntimeElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a runtime of a component compatible with Java 8, packaged as a jar, and its dependencies declared externally: - Unmatched attributes: - Provides a library but the consumer didn't ask for it - Provides attribute 'org.gradle.jvm.environment' with value 'standard-jvm' but the consumer didn't ask for it - Provides attribute 'org.gradle.plugin.api-version' with value '7.0' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Variant 'gradle70SourcesElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a runtime of a component, and its dependencies declared externally: - Unmatched attributes: - Provides documentation but the consumer didn't ask for it - Provides sources but the consumer didn't ask for it - Doesn't say anything about its target Java version (required compatibility with Java 11) - Doesn't say anything about its elements (required them packaged as a jar) - Provides attribute 'org.gradle.plugin.api-version' with value '7.0' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Variant 'gradle71JavadocElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a runtime of a component, and its dependencies declared externally: - Unmatched attributes: - Provides documentation but the consumer didn't ask for it - Provides javadocs but the consumer didn't ask for it - Doesn't say anything about its target Java version (required compatibility with Java 11) - Doesn't say anything about its elements (required them packaged as a jar) - Provides attribute 'org.gradle.plugin.api-version' with value '7.1' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Variant 'gradle71RuntimeElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a runtime of a component compatible with Java 8, packaged as a jar, and its dependencies declared externally: - Unmatched attributes: - Provides a library but the consumer didn't ask for it - Provides attribute 'org.gradle.jvm.environment' with value 'standard-jvm' but the consumer didn't ask for it - Provides attribute 'org.gradle.plugin.api-version' with value '7.1' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Variant 'gradle71SourcesElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a runtime of a component, and its dependencies declared externally: - Unmatched attributes: - Provides documentation but the consumer didn't ask for it - Provides sources but the consumer didn't ask for it - Doesn't say anything about its target Java version (required compatibility with Java 11) - Doesn't say anything about its elements (required them packaged as a jar) - Provides attribute 'org.gradle.plugin.api-version' with value '7.1' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Variant 'gradle74JavadocElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a runtime of a component, and its dependencies declared externally: - Unmatched attributes: - Provides documentation but the consumer didn't ask for it - Provides javadocs but the consumer didn't ask for it - Doesn't say anything about its target Java version (required compatibility with Java 11) - Doesn't say anything about its elements (required them packaged as a jar) - Provides attribute 'org.gradle.plugin.api-version' with value '7.4' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Variant 'gradle74RuntimeElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a runtime of a component compatible with Java 8, packaged as a jar, and its dependencies declared externally: - Unmatched attributes: - Provides a library but the consumer didn't ask for it - Provides attribute 'org.gradle.jvm.environment' with value 'standard-jvm' but the consumer didn't ask for it - Provides attribute 'org.gradle.plugin.api-version' with value '7.4' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Variant 'gradle74SourcesElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a runtime of a component, and its dependencies declared externally: - Unmatched attributes: - Provides documentation but the consumer didn't ask for it - Provides sources but the consumer didn't ask for it - Doesn't say anything about its target Java version (required compatibility with Java 11) - Doesn't say anything about its elements (required them packaged as a jar) - Provides attribute 'org.gradle.plugin.api-version' with value '7.4' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Variant 'gradle75JavadocElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a runtime of a component, and its dependencies declared externally: - Unmatched attributes: - Provides documentation but the consumer didn't ask for it - Provides javadocs but the consumer didn't ask for it - Doesn't say anything about its target Java version (required compatibility with Java 11) - Doesn't say anything about its elements (required them packaged as a jar) - Provides attribute 'org.gradle.plugin.api-version' with value '7.5' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Variant 'gradle75RuntimeElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a runtime of a component compatible with Java 8, packaged as a jar, and its dependencies declared externally: - Unmatched attributes: - Provides a library but the consumer didn't ask for it - Provides attribute 'org.gradle.jvm.environment' with value 'standard-jvm' but the consumer didn't ask for it - Provides attribute 'org.gradle.plugin.api-version' with value '7.5' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Variant 'gradle75SourcesElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a runtime of a component, and its dependencies declared externally: - Unmatched attributes: - Provides documentation but the consumer didn't ask for it - Provides sources but the consumer didn't ask for it - Doesn't say anything about its target Java version (required compatibility with Java 11) - Doesn't say anything about its elements (required them packaged as a jar) - Provides attribute 'org.gradle.plugin.api-version' with value '7.5' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Variant 'gradle76JavadocElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a runtime of a component, and its dependencies declared externally: - Unmatched attributes: - Provides documentation but the consumer didn't ask for it - Provides javadocs but the consumer didn't ask for it - Doesn't say anything about its target Java version (required compatibility with Java 11) - Doesn't say anything about its elements (required them packaged as a jar) - Provides attribute 'org.gradle.plugin.api-version' with value '7.6' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Variant 'gradle76RuntimeElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a runtime of a component compatible with Java 8, packaged as a jar, and its dependencies declared externally: - Unmatched attributes: - Provides a library but the consumer didn't ask for it - Provides attribute 'org.gradle.jvm.environment' with value 'standard-jvm' but the consumer didn't ask for it - Provides attribute 'org.gradle.plugin.api-version' with value '7.6' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Variant 'gradle76SourcesElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a runtime of a component, and its dependencies declared externally: - Unmatched attributes: - Provides documentation but the consumer didn't ask for it - Provides sources but the consumer didn't ask for it - Doesn't say anything about its target Java version (required compatibility with Java 11) - Doesn't say anything about its elements (required them packaged as a jar) - Provides attribute 'org.gradle.plugin.api-version' with value '7.6' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Variant 'gradle80JavadocElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a runtime of a component, and its dependencies declared externally: - Unmatched attributes: - Provides documentation but the consumer didn't ask for it - Provides javadocs but the consumer didn't ask for it - Doesn't say anything about its target Java version (required compatibility with Java 11) - Doesn't say anything about its elements (required them packaged as a jar) - Provides attribute 'org.gradle.plugin.api-version' with value '8.0' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Variant 'gradle80RuntimeElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a runtime of a component compatible with Java 8, packaged as a jar, and its dependencies declared externally: - Unmatched attributes: - Provides a library but the consumer didn't ask for it - Provides attribute 'org.gradle.jvm.environment' with value 'standard-jvm' but the consumer didn't ask for it - Provides attribute 'org.gradle.plugin.api-version' with value '8.0' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Variant 'gradle80SourcesElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a runtime of a component, and its dependencies declared externally: - Unmatched attributes: - Provides documentation but the consumer didn't ask for it - Provides sources but the consumer didn't ask for it - Doesn't say anything about its target Java version (required compatibility with Java 11) - Doesn't say anything about its elements (required them packaged as a jar) - Provides attribute 'org.gradle.plugin.api-version' with value '8.0' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Variant 'gradle81JavadocElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a runtime of a component, and its dependencies declared externally: - Unmatched attributes: - Provides documentation but the consumer didn't ask for it - Provides javadocs but the consumer didn't ask for it - Doesn't say anything about its target Java version (required compatibility with Java 11) - Doesn't say anything about its elements (required them packaged as a jar) - Provides attribute 'org.gradle.plugin.api-version' with value '8.1' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Variant 'gradle81RuntimeElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a runtime of a component compatible with Java 8, packaged as a jar, and its dependencies declared externally: - Unmatched attributes: - Provides a library but the consumer didn't ask for it - Provides attribute 'org.gradle.jvm.environment' with value 'standard-jvm' but the consumer didn't ask for it - Provides attribute 'org.gradle.plugin.api-version' with value '8.1' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Variant 'gradle81SourcesElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a runtime of a component, and its dependencies declared externally: - Unmatched attributes: - Provides documentation but the consumer didn't ask for it - Provides sources but the consumer didn't ask for it - Doesn't say anything about its target Java version (required compatibility with Java 11) - Doesn't say anything about its elements (required them packaged as a jar) - Provides attribute 'org.gradle.plugin.api-version' with value '8.1' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Variant 'gradle82JavadocElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a runtime of a component, and its dependencies declared externally: - Unmatched attributes: - Provides documentation but the consumer didn't ask for it - Provides javadocs but the consumer didn't ask for it - Doesn't say anything about its target Java version (required compatibility with Java 11) - Doesn't say anything about its elements (required them packaged as a jar) - Provides attribute 'org.gradle.plugin.api-version' with value '8.2' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Variant 'gradle82RuntimeElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a runtime of a component compatible with Java 8, packaged as a jar, and its dependencies declared externally: - Unmatched attributes: - Provides a library but the consumer didn't ask for it - Provides attribute 'org.gradle.jvm.environment' with value 'standard-jvm' but the consumer didn't ask for it - Provides attribute 'org.gradle.plugin.api-version' with value '8.2' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Variant 'gradle82SourcesElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a runtime of a component, and its dependencies declared externally: - Unmatched attributes: - Provides documentation but the consumer didn't ask for it - Provides sources but the consumer didn't ask for it - Doesn't say anything about its target Java version (required compatibility with Java 11) - Doesn't say anything about its elements (required them packaged as a jar) - Provides attribute 'org.gradle.plugin.api-version' with value '8.2' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Variant 'javadocElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a runtime of a component, and its dependencies declared externally: - Unmatched attributes: - Provides documentation but the consumer didn't ask for it - Provides javadocs but the consumer didn't ask for it - Doesn't say anything about its target Java version (required compatibility with Java 11) - Doesn't say anything about its elements (required them packaged as a jar) - Provides release status but the consumer didn't ask for it - Variant 'runtimeElementsWithFixedAttribute' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a runtime of a component compatible with Java 8, packaged as a jar, and its dependencies declared externally: - Unmatched attributes: - Provides a library but the consumer didn't ask for it - Provides attribute 'org.gradle.jvm.environment' with value 'standard-jvm' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Variant 'sourcesElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a runtime of a component, and its dependencies declared externally: - Unmatched attributes: - Provides documentation but the consumer didn't ask for it - Provides sources but the consumer didn't ask for it - Doesn't say anything about its target Java version (required compatibility with Java 11) - Doesn't say anything about its elements (required them packaged as a jar) - Provides release status but the consumer didn't ask for it The following variants were also considered but didn't match the requested attributes: - Variant 'apiElementsWithFixedAttribute' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a component compatible with Java 8, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares an API of a component and the consumer needed a runtime of a component - Variant 'gradle70ApiElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a component compatible with Java 8, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares an API of a component and the consumer needed a runtime of a component - Variant 'gradle71ApiElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a component compatible with Java 8, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares an API of a component and the consumer needed a runtime of a component - Variant 'gradle74ApiElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a component compatible with Java 8, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares an API of a component and the consumer needed a runtime of a component - Variant 'gradle75ApiElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a component compatible with Java 8, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares an API of a component and the consumer needed a runtime of a component - Variant 'gradle76ApiElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a component compatible with Java 8, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares an API of a component and the consumer needed a runtime of a component - Variant 'gradle80ApiElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a component compatible with Java 8, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares an API of a component and the consumer needed a runtime of a component - Variant 'gradle81ApiElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a component compatible with Java 8, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares an API of a component and the consumer needed a runtime of a component - Variant 'gradle82ApiElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 declares a component compatible with Java 8, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares an API of a component and the consumer needed a runtime of a component * 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.
07-05
Executing tasks: [:app:clean, :app:assembleDebug] in project G:\Android\H12Pro_RemoteUpgrade > Task :app:clean UP-TO-DATE > Task :app:preBuild UP-TO-DATE > Task :app:preDebugBuild UP-TO-DATE > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE > Task :app:compileDebugAidl NO-SOURCE > Task :app:compileDebugRenderscript NO-SOURCE > Task :app:generateDebugBuildConfig > Task :app:javaPreCompileDebug > Task :app:checkDebugAarMetadata FAILED > Task :app:generateDebugResValues > Task :app:generateDebugResources > Task :app:mergeDebugResources FAILED > Task :app:packageDebugResources > Task :app:createDebugCompatibleScreenManifests > Task :app:parseDebugLocalResources > Task :app:extractDeepLinksDebug > Task :app:processDebugMainManifest FAILED > Task :app:mergeDebugShaders > Task :app:compileDebugShaders NO-SOURCE > Task :app:generateDebugAssets UP-TO-DATE > Task :app:mergeDebugAssets FAILED > Task :app:processDebugJavaRes NO-SOURCE > Task :app:mergeDebugJavaResource FAILED > Task :app:checkDebugDuplicateClasses FAILED > Task :app:desugarDebugFileDependencies FAILED > Task :app:mergeDebugJniLibFolders > Task :app:mergeDebugNativeLibs FAILED > Task :app:validateSigningDebug > Task :app:writeDebugAppMetadata > Task :app:writeDebugSigningConfigVersions FAILURE: Build completed with 8 failures. 1: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':app:checkDebugAarMetadata'. > Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Could not resolve androidx.compose.foundation:foundation-android:+. Required by: project :app > The consumer was configured to find a runtime of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.2.2'. However we cannot choose between the following variants of androidx.compose.foundation:foundation-android:1.10.0-rc01: - androidRuntimeElements-published - androidSourcesElements-published All of them match the consumer attributes: - Variant 'androidRuntimeElements-published' capability androidx.compose.foundation:foundation-android:1.10.0-rc01 declares a runtime of a component, preferably optimized for Android: - Unmatched attributes: - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.2.2') - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug') - Provides a library but the consumer didn't ask for it - Provides its elements with the library elements 'aar' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Provides attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but the consumer didn't ask for it - Variant 'androidSourcesElements-published' capability androidx.compose.foundation:foundation-android:1.10.0-rc01 declares a runtime of a component, preferably optimized for Android: - Unmatched attributes: - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.2.2') - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug') - Provides documentation but the consumer didn't ask for it - Provides its dependencies declared externally but the consumer didn't ask for it - Provides sources but the consumer didn't ask for it - Provides its elements packaged as a jar but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Provides attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but the consumer didn't ask for it The following variants were also considered but didn't match the requested attributes: - Variant 'androidApiElements-published' capability androidx.compose.foundation:foundation-android:1.10.0-rc01 declares a component, preferably optimized for Android: - Incompatible because this component declares an API of a component and the consumer needed a runtime of a component - Other compatible attributes: - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.2.2') - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug') * 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. ============================================================================== 2: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':app:mergeDebugResources'. > Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Could not resolve androidx.compose.foundation:foundation-android:+. Required by: project :app > The consumer was configured to find a runtime of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.2.2'. However we cannot choose between the following variants of androidx.compose.foundation:foundation-android:1.10.0-rc01: - androidRuntimeElements-published - androidSourcesElements-published All of them match the consumer attributes: - Variant 'androidRuntimeElements-published' capability androidx.compose.foundation:foundation-android:1.10.0-rc01 declares a runtime of a component, preferably optimized for Android: - Unmatched attributes: - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.2.2') - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug') - Provides a library but the consumer didn't ask for it - Provides its elements with the library elements 'aar' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Provides attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but the consumer didn't ask for it - Variant 'androidSourcesElements-published' capability androidx.compose.foundation:foundation-android:1.10.0-rc01 declares a runtime of a component, preferably optimized for Android: - Unmatched attributes: - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.2.2') - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug') - Provides documentation but the consumer didn't ask for it - Provides its dependencies declared externally but the consumer didn't ask for it - Provides sources but the consumer didn't ask for it - Provides its elements packaged as a jar but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Provides attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but the consumer didn't ask for it The following variants were also considered but didn't match the requested attributes: - Variant 'androidApiElements-published' capability androidx.compose.foundation:foundation-android:1.10.0-rc01 declares a component, preferably optimized for Android: - Incompatible because this component declares an API of a component and the consumer needed a runtime of a component - Other compatible attributes: - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.2.2') - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug') * 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. ============================================================================== 3: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':app:processDebugMainManifest'. > Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Could not resolve androidx.compose.foundation:foundation-android:+. Required by: project :app > The consumer was configured to find a runtime of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.2.2'. However we cannot choose between the following variants of androidx.compose.foundation:foundation-android:1.10.0-rc01: - androidRuntimeElements-published - androidSourcesElements-published All of them match the consumer attributes: - Variant 'androidRuntimeElements-published' capability androidx.compose.foundation:foundation-android:1.10.0-rc01 declares a runtime of a component, preferably optimized for Android: - Unmatched attributes: - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.2.2') - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug') - Provides a library but the consumer didn't ask for it - Provides its elements with the library elements 'aar' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Provides attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but the consumer didn't ask for it - Variant 'androidSourcesElements-published' capability androidx.compose.foundation:foundation-android:1.10.0-rc01 declares a runtime of a component, preferably optimized for Android: - Unmatched attributes: - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.2.2') - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug') - Provides documentation but the consumer didn't ask for it - Provides its dependencies declared externally but the consumer didn't ask for it - Provides sources but the consumer didn't ask for it - Provides its elements packaged as a jar but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Provides attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but the consumer didn't ask for it The following variants were also considered but didn't match the requested attributes: - Variant 'androidApiElements-published' capability androidx.compose.foundation:foundation-android:1.10.0-rc01 declares a component, preferably optimized for Android: - Incompatible because this component declares an API of a component and the consumer needed a runtime of a component - Other compatible attributes: - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.2.2') - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug') * 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. ============================================================================== 4: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':app:mergeDebugAssets'. > Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Could not resolve androidx.compose.foundation:foundation-android:+. Required by: project :app > The consumer was configured to find a runtime of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.2.2'. However we cannot choose between the following variants of androidx.compose.foundation:foundation-android:1.10.0-rc01: - androidRuntimeElements-published - androidSourcesElements-published All of them match the consumer attributes: - Variant 'androidRuntimeElements-published' capability androidx.compose.foundation:foundation-android:1.10.0-rc01 declares a runtime of a component, preferably optimized for Android: - Unmatched attributes: - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.2.2') - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug') - Provides a library but the consumer didn't ask for it - Provides its elements with the library elements 'aar' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Provides attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but the consumer didn't ask for it - Variant 'androidSourcesElements-published' capability androidx.compose.foundation:foundation-android:1.10.0-rc01 declares a runtime of a component, preferably optimized for Android: - Unmatched attributes: - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.2.2') - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug') - Provides documentation but the consumer didn't ask for it - Provides its dependencies declared externally but the consumer didn't ask for it - Provides sources but the consumer didn't ask for it - Provides its elements packaged as a jar but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Provides attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but the consumer didn't ask for it The following variants were also considered but didn't match the requested attributes: - Variant 'androidApiElements-published' capability androidx.compose.foundation:foundation-android:1.10.0-rc01 declares a component, preferably optimized for Android: - Incompatible because this component declares an API of a component and the consumer needed a runtime of a component - Other compatible attributes: - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.2.2') - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug') * 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. ============================================================================== 5: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':app:mergeDebugJavaResource'. > Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Could not resolve androidx.compose.foundation:foundation-android:+. Required by: project :app > The consumer was configured to find a runtime of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.2.2'. However we cannot choose between the following variants of androidx.compose.foundation:foundation-android:1.10.0-rc01: - androidRuntimeElements-published - androidSourcesElements-published All of them match the consumer attributes: - Variant 'androidRuntimeElements-published' capability androidx.compose.foundation:foundation-android:1.10.0-rc01 declares a runtime of a component, preferably optimized for Android: - Unmatched attributes: - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.2.2') - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug') - Provides a library but the consumer didn't ask for it - Provides its elements with the library elements 'aar' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Provides attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but the consumer didn't ask for it - Variant 'androidSourcesElements-published' capability androidx.compose.foundation:foundation-android:1.10.0-rc01 declares a runtime of a component, preferably optimized for Android: - Unmatched attributes: - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.2.2') - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug') - Provides documentation but the consumer didn't ask for it - Provides its dependencies declared externally but the consumer didn't ask for it - Provides sources but the consumer didn't ask for it - Provides its elements packaged as a jar but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Provides attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but the consumer didn't ask for it The following variants were also considered but didn't match the requested attributes: - Variant 'androidApiElements-published' capability androidx.compose.foundation:foundation-android:1.10.0-rc01 declares a component, preferably optimized for Android: - Incompatible because this component declares an API of a component and the consumer needed a runtime of a component - Other compatible attributes: - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.2.2') - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug') * 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. ============================================================================== 6: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':app:checkDebugDuplicateClasses'. > Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Could not resolve androidx.compose.foundation:foundation-android:+. Required by: project :app > The consumer was configured to find a runtime of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.2.2'. However we cannot choose between the following variants of androidx.compose.foundation:foundation-android:1.10.0-rc01: - androidRuntimeElements-published - androidSourcesElements-published All of them match the consumer attributes: - Variant 'androidRuntimeElements-published' capability androidx.compose.foundation:foundation-android:1.10.0-rc01 declares a runtime of a component, preferably optimized for Android: - Unmatched attributes: - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.2.2') - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug') - Provides a library but the consumer didn't ask for it - Provides its elements with the library elements 'aar' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Provides attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but the consumer didn't ask for it - Variant 'androidSourcesElements-published' capability androidx.compose.foundation:foundation-android:1.10.0-rc01 declares a runtime of a component, preferably optimized for Android: - Unmatched attributes: - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.2.2') - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug') - Provides documentation but the consumer didn't ask for it - Provides its dependencies declared externally but the consumer didn't ask for it - Provides sources but the consumer didn't ask for it - Provides its elements packaged as a jar but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Provides attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but the consumer didn't ask for it The following variants were also considered but didn't match the requested attributes: - Variant 'androidApiElements-published' capability androidx.compose.foundation:foundation-android:1.10.0-rc01 declares a component, preferably optimized for Android: - Incompatible because this component declares an API of a component and the consumer needed a runtime of a component - Other compatible attributes: - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.2.2') - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug') * 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. ============================================================================== 7: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':app:desugarDebugFileDependencies'. > Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Could not resolve androidx.compose.foundation:foundation-android:+. Required by: project :app > The consumer was configured to find a runtime of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.2.2'. However we cannot choose between the following variants of androidx.compose.foundation:foundation-android:1.10.0-rc01: - androidRuntimeElements-published - androidSourcesElements-published All of them match the consumer attributes: - Variant 'androidRuntimeElements-published' capability androidx.compose.foundation:foundation-android:1.10.0-rc01 declares a runtime of a component, preferably optimized for Android: - Unmatched attributes: - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.2.2') - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug') - Provides a library but the consumer didn't ask for it - Provides its elements with the library elements 'aar' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Provides attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but the consumer didn't ask for it - Variant 'androidSourcesElements-published' capability androidx.compose.foundation:foundation-android:1.10.0-rc01 declares a runtime of a component, preferably optimized for Android: - Unmatched attributes: - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.2.2') - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug') - Provides documentation but the consumer didn't ask for it - Provides its dependencies declared externally but the consumer didn't ask for it - Provides sources but the consumer didn't ask for it - Provides its elements packaged as a jar but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Provides attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but the consumer didn't ask for it The following variants were also considered but didn't match the requested attributes: - Variant 'androidApiElements-published' capability androidx.compose.foundation:foundation-android:1.10.0-rc01 declares a component, preferably optimized for Android: - Incompatible because this component declares an API of a component and the consumer needed a runtime of a component - Other compatible attributes: - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.2.2') - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug') * 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. ============================================================================== 8: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':app:mergeDebugNativeLibs'. > Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Could not resolve androidx.compose.foundation:foundation-android:+. Required by: project :app > The consumer was configured to find a runtime of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.2.2'. However we cannot choose between the following variants of androidx.compose.foundation:foundation-android:1.10.0-rc01: - androidRuntimeElements-published - androidSourcesElements-published All of them match the consumer attributes: - Variant 'androidRuntimeElements-published' capability androidx.compose.foundation:foundation-android:1.10.0-rc01 declares a runtime of a component, preferably optimized for Android: - Unmatched attributes: - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.2.2') - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug') - Provides a library but the consumer didn't ask for it - Provides its elements with the library elements 'aar' but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Provides attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but the consumer didn't ask for it - Variant 'androidSourcesElements-published' capability androidx.compose.foundation:foundation-android:1.10.0-rc01 declares a runtime of a component, preferably optimized for Android: - Unmatched attributes: - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.2.2') - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug') - Provides documentation but the consumer didn't ask for it - Provides its dependencies declared externally but the consumer didn't ask for it - Provides sources but the consumer didn't ask for it - Provides its elements packaged as a jar but the consumer didn't ask for it - Provides release status but the consumer didn't ask for it - Provides attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but the consumer didn't ask for it The following variants were also considered but didn't match the requested attributes: - Variant 'androidApiElements-published' capability androidx.compose.foundation:foundation-android:1.10.0-rc01 declares a component, preferably optimized for Android: - Incompatible because this component declares an API of a component and the consumer needed a runtime of a component - Other compatible attributes: - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.2.2') - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug') * 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 1s 21 actionable tasks: 20 executed, 1 up-to-date
11-26
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值