Fixed Error

No matching variant of com.android.tools.build:gradle:

No matching variant of com.android.tools.build:gradle: adalah error karena perbedaan java yang diguanakan, silahkan ubah versi java sesuai petunjuk.

contoh error :

  No matching variant of com.android.tools.build:gradle:7.4.2 was found. The consumer was configured to find a runtime of a library compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '7.5' but:
          - Variant 'apiElements' capability com.android.tools.build:gradle:7.4.2 declares a library, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 8
              - Other compatible attribute:
                  - Doesn't say anything about org.gradle.plugin.api-version (required '7.5')
          - Variant 'javadocElements' capability com.android.tools.build:gradle:7.4.2 declares a runtime of a component, 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 8)
                  - Doesn't say anything about its elements (required them packaged as a jar)
                  - Doesn't say anything about org.gradle.plugin.api-version (required '7.5')
          - Variant 'runtimeElements' capability com.android.tools.build:gradle:7.4.2 declares a runtime of a library, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
              - Other compatible attribute:
                  - Doesn't say anything about org.gradle.plugin.api-version (required '7.5')
          - Variant 'sourcesElements' capability com.android.tools.build:gradle:7.4.2 declares a runtime of a component, 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 8)
                  - Doesn't say anything about its elements (required them packaged as a jar)
                  - Doesn't say anything about org.gradle.plugin.api-version (required '7.5')

pada contoh menunjukan java yang harus digunakan adalah versi 11 (Incompatible because this component declares an API of a component compatible with Java 11), silahkan lihat panduan Android Gradle plugin requires Java 11 to run  atau akses https://aliendro.id/help-center/fixed-error/android-gradle-plugin-requires-java-11-to-run 

Masih ada pertanyaan?

Jika Anda masih memiliki pertanyaan, Anda dapat mengirimkan permintaan dukungan di sini.   Hubungi Dukungan
Situs ini menggunakan cookie. Dengan terus menelusuri situs, Anda menyetujui penggunaan cookie kami.