インポートするモジュールによってどこかしらが重複する模様。こういうのどうでもいいから適当に良しなに解消しておいてほしいんだけどねえ🤔
解消方法:
Android の Module : app レベルの Build.gradle に以下の記述を追記する
dependencies {
configurations.implementation {
exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-jdk8'
exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-jdk7'
}
}
一番下にもともとは dependencies{} としかかかれてないので、そこに追記する
【追記】
新しいVerのAndroidStudioには dependencies {} すら書かれていない感じなので、一番したに追加するので良いかも。
エラー:
出てしまうエラーはこんな感じ
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
Go to the documentation to learn how to <a href="d.android.com/r/tools/classpath-sync-errors">Fix dependency resolution errors</a>.
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
Exception: Gradle task assembleDebug failed with exit code 1
疲れた。┐(´д`)┌ヤレヤレ