Не удалось разрешить Androidx.Activity: активность: 1.2.3Android

Форум для тех, кто программирует под Android
Ответить
Anonymous
 Не удалось разрешить Androidx.Activity: активность: 1.2.3

Сообщение Anonymous »

Я обновляю свой проект Java Android, чтобы соответствовать новому минимальному APK 35 и BILLING 7.0.0, я почти закончил, есть только биллинг, который я не могу приступить к работе, моя сборка работает нормально с 'com.android.billingClient: Billing: 6.0.0' , но сбои с версией 7.0.0 или 8.0.0, может помочь мне? Новое требование составляет минимум 7,0,0. Вот ошибка, которую я получаю: < /p>
Could not resolve all artifacts for configuration 'classpath'.
Could not resolve androidx.activity:activity:1.2.3.
Required by:
root project : com.android.billingclient:billing:7.0.0
No matching variant of androidx.activity:activity:1.2.3 was found. The consumer was configured to find a library for use during runtime, compatible with Java 21, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '8.13' but:
- Variant 'releaseApiPublication' declares a library, and its dependencies declared externally:
- Incompatible because this component declares a component for use during compile-time, with the library elements 'aar' and the consumer needed a component for use during runtime, packaged as a jar
- Other compatible attributes:
- Doesn't say anything about its target Java version (required compatibility with Java 21)
- Doesn't say anything about org.gradle.plugin.api-version (required '8.13')
- Variant 'releaseRuntimePublication' declares a library for use during runtime, and its dependencies declared externally:
- Incompatible because this component declares a component, with the library elements 'aar' and the consumer needed a component, packaged as a jar
- Other compatible attributes:
- Doesn't say anything about its target Java version (required compatibility with Java 21)
- Doesn't say anything about org.gradle.plugin.api-version (required '8.13')
- Variant 'sourcesElements' 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 elements (required them packaged as a jar)
- Doesn't say anything about its target Java version (required compatibility with Java 21)
- Doesn't say anything about org.gradle.plugin.api-version (required '8.13')
> Could not resolve androidx.activity:activity:1.0.0.
Required by:
root project : > com.android.billingclient:billing:7.0.0 > com.google.android.gms:play-services-base:18.3.0 > androidx.fragment:fragment:1.1.0
> No matching variant of androidx.activity:activity:1.2.3 was found. The consumer was configured to find a library for use during runtime, compatible with Java 21, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '8.13' but:
- Variant 'releaseApiPublication' declares a library, and its dependencies declared externally:
- Incompatible because this component declares a component for use during compile-time, with the library elements 'aar' and the consumer needed a component for use during runtime, packaged as a jar
- Other compatible attributes:
- Doesn't say anything about its target Java version (required compatibility with Java 21)
- Doesn't say anything about org.gradle.plugin.api-version (required '8.13')
- Variant 'releaseRuntimePublication' declares a library for use during runtime, and its dependencies declared externally:
- Incompatible because this component declares a component, with the library elements 'aar' and the consumer needed a component, packaged as a jar
- Other compatible attributes:
- Doesn't say anything about its target Java version (required compatibility with Java 21)
- Doesn't say anything about org.gradle.plugin.api-version (required '8.13')
- Variant 'sourcesElements' 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 elements (required them packaged as a jar)
- Doesn't say anything about its target Java version (required compatibility with Java 21)
- Doesn't say anything about org.gradle.plugin.api-version (required '8.13')

* Try:
> No matching variant errors are explained in more detail at https://docs.gradle.org/8.13/userguide/ ... t-no-match.
> Review the variant matching algorithm at https://docs.gradle.org/8.13/userguide/ ... _algorithm.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.13/userguide/ ... e_warnings in the Gradle documentation.
BUILD FAILED in 684ms
< /code>
Вот моя build.gradle: < /p>
buildscript {
repositories {
jcenter()
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.11.1'
classpath 'com.android.billingclient:billing:7.0.0'
classpath 'com.google.gms:google-services:4.3.14'
}
}

allprojects {
repositories {
jcenter()
google()
mavenCentral()
maven { url 'https://maven.google.com/' }
maven { url 'https://jitpack.io' }
}
}

и мое приложение/build.gradle:
apply plugin: 'com.android.application'

android {
compileSdk 35

defaultConfig {
applicationId "*******"
minSdkVersion 21
targetSdk 35
multiDexEnabled true
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
}

buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
}
}
namespace '******'
}

dependencies {
implementation 'androidx.core:core:1.12.0'
implementation 'com.android.billingclient:billing:7.0.0'

implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.gridlayout:gridlayout:1.0.0'
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.18'
implementation files('lib/App42MultiPlayerGamingSDK.jar')
implementation 'com.anjlab.android.iab.v3:library:2.0.3'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.android.material:material:1.0.0'
implementation 'com.github.bumptech.glide:glide:4.7.1'
implementation 'de.hdodenhof:circleimageview:1.3.0'
implementation 'com.android.support:recyclerview-v7:27.0.0'
implementation 'androidx.media:media:1.0.0'
implementation 'com.github.Abhi347:NoobCameraFlash:0.2.0'

// Google
implementation 'com.google.android.gms:play-services-auth:16.0.1'

//Worker
implementation 'androidx.startup:startup-runtime:1.1.1'
implementation "androidx.lifecycle:lifecycle-process:2.5.1"
implementation "androidx.annotation:annotation:1.4.0"
implementation "androidx.work:work-runtime:2.8.1"
implementation "androidx.work:work-runtime-ktx:2.8.1"
implementation "io.coil-kt:coil-compose:2.4.0"
}
apply plugin: 'com.google.gms.google-services'


Подробнее здесь: https://stackoverflow.com/questions/797 ... ivity1-2-3
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Android»