Open TomokiIchi opened 3 years ago
エラーメッセージは「fitkitの:fit_kit:debugCompileClasspathが要求する依存関係(androidx.loader:loader:1.0.0やcom.google.android.gms:play-services-base:17.1.0など)を解消できない」。
原因として考えられること
PCを再起動後、突如治った。 依存関係のパッケージのインストールがなぜかうまくいった。
「Could not resolve all task dependencies for configuration」「Could not determine the dependencies of task」「Could not resolve androidx.lifecycle:lifecycle-common」で検索した解決策を試しても動かなかった。 依存関係のミスはなぜ起きるのか?
以下のエラーが発生。
`FAILURE: Build failed with an exception.
What went wrong: Could not determine the dependencies of task ':fit_kit:compileDebugAidl'.
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 10s Running Gradle task 'assembleDebug'... Running Gradle task 'assembleDebug'... Done 11.4s The build failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetifier to solve the incompatibility. Building plugin fit_kit... Running Gradle task 'assembleAarRelease'... Running Gradle task 'assembleAarRelease'... Done 6.7s
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring root project 'fit_kit'.
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 5s
Exception: The plugin fit_kit could not be built due to the issue above.`