skydoves / chatgpt-android

📲 ChatGPT Android demonstrates a Chatbot application using OpenAI's chat API on Android with Stream Chat SDK for Compose.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gradle Sync Falied: No matching variant of androidx.benchmark:benchmark-baseline-profile-gradle-plugin:1.2.0-alpha15 was found.

evangerlions opened this issue · comments

commented

I use M1 mac and my jdk is zulu-11.0.18.
It seems like benchmark can't support this version, any solutions can work around? Thanks very much

A problem occurred configuring root project 'chatgpt-android'.
> Could not resolve all files for configuration ':classpath'.
   > Could not resolve androidx.benchmark:benchmark-baseline-profile-gradle-plugin:1.2.0-alpha15.
     Required by:
         project : > androidx.baselineprofile:androidx.baselineprofile.gradle.plugin:1.2.0-alpha15
      > No matching variant of androidx.benchmark:benchmark-baseline-profile-gradle-plugin:1.2.0-alpha15 was found. The consumer was configured to find a library for use during runtime, compatible with Java 11, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '8.0' but:
          - Variant 'apiElements' capability androidx.benchmark:benchmark-baseline-profile-gradle-plugin:1.2.0-alpha15 declares a library, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares a component for use during compile-time, compatible with Java 17 and the consumer needed a component for use during runtime, compatible with Java 11
              - Other compatible attribute:
                  - Doesn't say anything about org.gradle.plugin.api-version (required '8.0')
          - Variant 'runtimeElements' capability androidx.benchmark:benchmark-baseline-profile-gradle-plugin:1.2.0-alpha15 declares a library for use during runtime, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares a component, compatible with Java 17 and the consumer needed a component, compatible with Java 11
              - Other compatible attribute:
                  - Doesn't say anything about org.gradle.plugin.api-version (required '8.0')
          - Variant 'sourcesElements' capability androidx.benchmark:benchmark-baseline-profile-gradle-plugin:1.2.0-alpha15 declares a component for use during runtime, and its dependencies declared externally:
              - Incompatible because this component declares documentation and the consumer needed a library
              - Other compatible attributes:
                  - Doesn't say anything about its target Java version (required compatibility with Java 11)
                  - Doesn't say anything about its elements (required them packaged as a jar)
                  - Doesn't say anything about org.gradle.plugin.api-version (required '8.0')

* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
commented

use a higher jdk version like java 11 or java 17