Не могу скомпилировать проект на Linux используя Kotlin 1.2.70 - PullRequest
0 голосов
/ 19 сентября 2018

После обновления Kotlin с 1.2.61 до 1.2.70 я получаю эту ошибку, когда пытаюсь компилировать плагин Android Gradle проекта v3.1.4

 Could not resolve all dependencies for configuration 
 ':app:debugImplementationDependenciesMetadata'.
  > Could not resolve project :appstart.
 Required by:
     project :app
  > Unable to find a matching variant of project :appstart:
      - Variant 'debugApiElements':
          - Found com.android.build.api.attributes.BuildTypeAttr 'debug' but wasn't required.
          - Found com.android.build.api.attributes.VariantAttr 'debug' but wasn't required.
          - Found com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' but wasn't required.
          - Found org.gradle.usage 'java-api' but wasn't required.
          - Required org.jetbrains.kotlin.platform.type 'common' and found incompatible value 'androidJvm'.
      - Variant 'debugRuntimeElements':
          - Found com.android.build.api.attributes.BuildTypeAttr 'debug' but wasn't required.
          - Found com.android.build.api.attributes.VariantAttr 'debug' but wasn't required.
          - Found com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' but wasn't required.
          - Found org.gradle.usage 'java-runtime' but wasn't required.
          - Required org.jetbrains.kotlin.platform.type 'common' and found incompatible value 'androidJvm'.
      - Variant 'releaseApiElements':
          - Found com.android.build.api.attributes.BuildTypeAttr 'release' but wasn't required.
          - Found com.android.build.api.attributes.VariantAttr 'release' but wasn't required.
          - Found com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' but wasn't required.
          - Found org.gradle.usage 'java-api' but wasn't required.
          - Required org.jetbrains.kotlin.platform.type 'common' and found incompatible value 'androidJvm'.
      - Variant 'releaseRuntimeElements':
          - Found com.android.build.api.attributes.BuildTypeAttr 'release' but wasn't required.
          - Found com.android.build.api.attributes.VariantAttr 'release' but wasn't required.
          - Found com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' but wasn't required.
          - Found org.gradle.usage 'java-runtime' but wasn't required.
          - Required org.jetbrains.kotlin.platform.type 'common' and found incompatible value 'androidJvm'.

Я могу скомпилировать этот проект на Mac OSбез каких-либо проблем.И у меня есть 0 общих модулей.

Что-нибудь, что я мог сделать, чтобы обойти эту проблему?

UPD: после обновления плагина Android Studio Gradle до 3.2.0-rc03 у меня немного другая трассировка стека

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration 
':app:debugImplementationDependenciesMetadata'.
> Could not resolve project :appstart.
 Required by:
     project :app
  > Cannot choose between the following variants of project :appstart:
      - kapt
      - kaptAndroidTest
      - kaptAndroidTestDebug
      - kaptDebug
      - kaptRelease
      - kaptTest
      - kaptTestDebug
      - kaptTestRelease
    All of them match the consumer attributes:
      - Variant 'kapt':
          - Found artifactType 'processed-jar' but wasn't required.
          - Required org.jetbrains.kotlin.platform.type 'common' but no value provided.
      - Variant 'kaptAndroidTest':
          - Found artifactType 'processed-jar' but wasn't required.
          - Required org.jetbrains.kotlin.platform.type 'common' but no value provided.
      - Variant 'kaptAndroidTestDebug':
          - Found artifactType 'processed-jar' but wasn't required.
          - Required org.jetbrains.kotlin.platform.type 'common' but no value provided.
      - Variant 'kaptDebug':
          - Found artifactType 'processed-jar' but wasn't required.
          - Required org.jetbrains.kotlin.platform.type 'common' but no value provided.
      - Variant 'kaptRelease':
          - Found artifactType 'processed-jar' but wasn't required.
          - Required org.jetbrains.kotlin.platform.type 'common' but no value provided.
      - Variant 'kaptTest':
          - Found artifactType 'processed-jar' but wasn't required.
          - Required org.jetbrains.kotlin.platform.type 'common' but no value provided.
      - Variant 'kaptTestDebug':
          - Found artifactType 'processed-jar' but wasn't required.
          - Required org.jetbrains.kotlin.platform.type 'common' but no value provided.
      - Variant 'kaptTestRelease':
          - Found artifactType 'processed-jar' but wasn't required.
          - Required org.jetbrains.kotlin.platform.type 'common' but no value provided.
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...