Android Studio: build.gradle: Невозможно найти подходящий вариант проекта: XYZLib - PullRequest
0 голосов
/ 04 июля 2019

Не удалось собрать проект Android. Используется сторонний проект библиотеки Android ищет вариант. Есть какое-то решение для этого?

Unable to find a matching variant of project :XYZLib:
      - Variant 'debugApiElements':
          - Required branding 'ABC' but no value provided.
          - Required com.android.build.api.attributes.BuildTypeAttr 'uat' and found incompatible value 'debug'.
          - Found com.android.build.api.attributes.VariantAttr 'debug' but wasn't required.
          - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
          - Required org.gradle.usage 'java-runtime' and found incompatible value 'java-api'.
      - Variant 'debugRuntimeElements':
          - Required branding 'ABC' but no value provided.
          - Required com.android.build.api.attributes.BuildTypeAttr 'uat' and found incompatible value 'debug'.
          - Found com.android.build.api.attributes.VariantAttr 'debug' but wasn't required.
          - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
          - Required org.gradle.usage 'java-runtime' and found compatible value 'java-runtime'.
      - Variant 'releaseApiElements':
          - Required branding 'ABC' but no value provided.
          - Required com.android.build.api.attributes.BuildTypeAttr 'uat' and found incompatible value 'release'.
          - Found com.android.build.api.attributes.VariantAttr 'release' but wasn't required.
          - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
          - Required org.gradle.usage 'java-runtime' and found incompatible value 'java-api'.
      - Variant 'releaseRuntimeElements':
          - Required branding 'ABC' but no value provided.
          - Required com.android.build.api.attributes.BuildTypeAttr 'uat' and found incompatible value 'release'.
          - Found com.android.build.api.attributes.VariantAttr 'release' but wasn't required.
          - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
          - Required org.gradle.usage 'java-runtime' and found compatible value 'java-runtime'.
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...