ikemura23 / Yaimafuni-Android

やいまふに Android
3 stars 0 forks source link

エラー対応: Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugCompileClasspath'. #83

Closed ikemura23 closed 2 years ago

ikemura23 commented 2 years ago

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.compose.ui:ui-util:1.1.0-rc03.

ikemura23 commented 2 years ago

API 'BaseVariant.getApplicationIdTextResource' is obsolete and has been replaced with 'VariantProperties.applicationId'. It will be removed in version 7.0 of the Android Gradle plugin. For more information, see TBD. To determine what is calling BaseVariant.getApplicationIdTextResource, use -Pandroid.debug.obsoleteApi=true on the command line to display more information.

ikemura23 commented 2 years ago

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).

ikemura23 commented 2 years ago

Manifest merger failed : android:exported needs to be explicitly specified for . Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.

ikemura23 commented 2 years ago

./gradlew suppressKotlinVersionCompatibilityCheckでKotlinとComposeのバージョン組み合わせのチェックができる

結果

$ ./gradlew suppressKotlinVersionCompatibilityCheck

Welcome to Gradle 7.0.2!

Here are the highlights of this release:
 - File system watching enabled by default
 - Support for running with and building Java 16 projects
 - Native support for Apple Silicon processors
 - Dependency catalog feature preview

For more details see https://docs.gradle.org/7.0.2/release-notes.html

Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details

> Configure project :app
WARNING:API 'BaseVariant.getApplicationIdTextResource' is obsolete and has been replaced with 'VariantProperties.applicationId'.
It will be removed in version 7.0 of the Android Gradle plugin.
For more information, see TBD.
To determine what is calling BaseVariant.getApplicationIdTextResource, use -Pandroid.debug.obsoleteApi=true on the command line to display more information.

> Configure project :shared
Kotlin Multiplatform Projects are an Alpha feature. See: https://kotlinlang.org/docs/reference/evolution/components-stability.html. To hide this message, add 'kotlin.mpp.stability.nowarn=true' to the Gradle properties.

FAILURE: Build failed with an exception.

* What went wrong:
Task 'suppressKotlinVersionCompatibilityCheck' not found in root project 'Yaimafuni-Android'.

* Try:
Run gradlew tasks to get a list of available tasks. 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/7.0.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 15s
e: This version (1.0.1) of the Compose Compiler requires Kotlin version 1.5.21 but you appear to be using Kotlin version 1.6.10 which is not known to be compatible.  Please fix your configuration (or `suppressKotlinVersionCompatibilityCheck` but don't say I didn't warn you!).

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
> Compilation error. See log for more details
ikemura23 commented 2 years ago

2022/03/22 のビルド結果

結果:↑と同じエラーがでた

Details ``` Executing tasks: [:app:assembleDebug] in project /Users/k_ikemura/dev/Yaimafuni-Android > Task :buildSrc:compileKotlin > Task :buildSrc:compileJava NO-SOURCE > Task :buildSrc:compileGroovy NO-SOURCE > Task :buildSrc:pluginDescriptors UP-TO-DATE > Task :buildSrc:processResources NO-SOURCE > Task :buildSrc:classes UP-TO-DATE > Task :buildSrc:inspectClassesForKotlinIC > Task :buildSrc:jar UP-TO-DATE > Task :buildSrc:assemble UP-TO-DATE > Task :buildSrc:compileTestKotlin NO-SOURCE > Task :buildSrc:pluginUnderTestMetadata UP-TO-DATE > Task :buildSrc:compileTestJava NO-SOURCE > Task :buildSrc:compileTestGroovy NO-SOURCE > Task :buildSrc:processTestResources NO-SOURCE > Task :buildSrc:testClasses UP-TO-DATE > Task :buildSrc:test NO-SOURCE > Task :buildSrc:validatePlugins UP-TO-DATE > Task :buildSrc:check UP-TO-DATE > Task :buildSrc:build UP-TO-DATE > Configure project :app AGPBI: {"kind":"warning","text":"API 'BaseVariant.getApplicationIdTextResource' is obsolete and has been replaced with 'VariantProperties.applicationId'.\nIt will be removed in version 7.0 of the Android Gradle plugin.\nFor more information, see TBD.\nTo determine what is calling BaseVariant.getApplicationIdTextResource, use -Pandroid.debug.obsoleteApi=true on the command line to display more information.","sources":[{}]} > Configure project :shared Kotlin Multiplatform Projects are an Alpha feature. See: https://kotlinlang.org/docs/reference/evolution/components-stability.html. To hide this message, add 'kotlin.mpp.stability.nowarn=true' to the Gradle properties. The Kotlin source set androidAndroidTestRelease was configured but not added to any Kotlin compilation. You can add a source set to a target's compilation by connecting it with the compilation's default source set using 'dependsOn'. See https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#connecting-source-sets > Task :app:preBuild UP-TO-DATE > Task :app:preDebugBuild UP-TO-DATE > Task :shared:preBuild UP-TO-DATE > Task :shared:preDebugBuild UP-TO-DATE > Task :shared:compileDebugAidl NO-SOURCE > Task :app:compileDebugAidl NO-SOURCE > Task :shared:packageDebugRenderscript NO-SOURCE > Task :app:compileDebugRenderscript NO-SOURCE > Task :app:dataBindingMergeDependencyArtifactsDebug > Task :app:generateDebugResValues > Task :app:generateDebugResources > Task :app:dataBindingMergeGenClassesDebug > Task :app:injectCrashlyticsMappingFileIdDebug > Task :app:processDebugGoogleServices > Task :shared:compileDebugRenderscript NO-SOURCE > Task :shared:generateDebugResValues > Task :shared:generateDebugResources > Task :shared:packageDebugResources > Task :app:dataBindingTriggerDebug > Task :app:generateDebugBuildConfig > Task :app:writeDebugApplicationId > Task :app:generateSafeArgsDebug > Task :shared:writeDebugAarMetadata > Task :app:createDebugCompatibleScreenManifests > Task :app:extractDeepLinksDebug > Task :shared:extractDeepLinksDebug > Task :shared:processDebugManifest > Task :app:mergeDebugResources > Task :app:checkDebugAarMetadata > Task :app:dataBindingGenBaseClassesDebug > Task :shared:compileDebugLibraryResources > Task :shared:generateDebugBuildConfig > Task :shared:javaPreCompileDebug > Task :app:javaPreCompileDebug > Task :shared:parseDebugLocalResources > Task :app:processDebugMainManifest > Task :app:processDebugManifest > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE > Task :app:mergeDebugShaders > Task :app:compileDebugShaders NO-SOURCE > Task :app:generateDebugAssets UP-TO-DATE > Task :shared:mergeDebugShaders > Task :shared:compileDebugShaders NO-SOURCE > Task :shared:generateDebugAssets UP-TO-DATE > Task :shared:packageDebugAssets > Task :shared:generateDebugRFile > Task :app:mergeDebugAssets > Task :app:compressDebugAssets > Task :app:processDebugJavaRes NO-SOURCE > Task :shared:processDebugJavaRes NO-SOURCE > Task :app:desugarDebugFileDependencies > Task :app:mergeDebugJniLibFolders > Task :shared:mergeDebugJniLibFolders > Task :shared:mergeDebugNativeLibs NO-SOURCE > Task :shared:stripDebugDebugSymbols NO-SOURCE > Task :shared:copyDebugJniLibsProjectOnly > Task :app:checkDebugDuplicateClasses > Task :app:validateSigningDebug > Task :app:processDebugManifestForPackage > Task :app:mergeExtDexDebug > Task :app:writeDebugAppMetadata > Task :app:writeDebugSigningConfigVersions > Task :app:mergeDebugNativeLibs NO-SOURCE > Task :app:stripDebugDebugSymbols NO-SOURCE > Task :shared:compileDebugKotlinAndroid > Task :shared:compileDebugJavaWithJavac > Task :shared:bundleLibResDebug > Task :shared:bundleLibCompileToJarDebug > Task :shared:bundleLibRuntimeToDirDebug > Task :app:mergeLibDexDebug > Task :app:processDebugResources > Task :app:kaptGenerateStubsDebugKotlin > Task :app:kaptDebugKotlin > Task :app:compileDebugKotlin FAILED w: ATTENTION! This build uses unsafe internal compiler arguments: -XXLanguage:+NonParenthesizedAnnotationsOnFunctionalTypes This mode is not recommended for production use, as no stability/compatibility guarantees are given on compiler or generated code. Use it at your own risk! e: This version (1.0.1) of the Compose Compiler requires Kotlin version 1.5.21 but you appear to be using Kotlin version 1.6.10 which is not known to be compatible. Please fix your configuration (or `suppressKotlinVersionCompatibilityCheck` but don't say I didn't warn you!). FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:compileDebugKotlin'. > Compilation error. See log for more details * 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 Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/7.0.2/userguide/command_line_interface.html#sec:command_line_warnings BUILD FAILED in 2m 34s 52 actionable tasks: 52 executed The build scan was not published due to a configuration problem. The Gradle Terms of Service have not been agreed to. For more information, please see https://gradle.com/help/plugin-terms-of-service. Alternatively, if you are using Gradle Enterprise, specify the server location. For more information, please see https://gradle.com/help/plugin-enterprise-config. ```
ikemura23 commented 2 years ago

85 で解決できた