PeopleInSpace: project import failed in a newly installed AS 4.2 canary 8 (Ubuntu)

Project import fails with error Please initialize at least one Kotlin target in 'common (:common)'.

OS: Ubuntu Linux 20.04

Android Studio Version: 4.2 Canary 8. (No multiplatform project has been done before now)

Clicking Run with --debug option returns this error. Caused by: org.gradle.internal.component.AmbiguousConfigurationSelectionException: The consumer was configured to find a runtime of a library compatible with Java 14, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm'. However we cannot choose between the following variants of project :common: Changing the default system jdk to java 8 prints the same message but now Java 8 instead of Java 14.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 22 (13 by maintainers)

Commits related to this issue

Most upvoted comments

@joreilly KaMPKit opens fine. But it uses another plugin: co.touchlab.native.cocoapods