DataDog / dd-sdk-android

Datadog SDK for Android (Compatible with Kotlin and Java)
Apache License 2.0
146 stars 59 forks source link

Cannot implementation com.datadoghq:dd-sdk-android-logs #2014

Closed Lihuan-Hsu closed 4 months ago

Lihuan-Hsu commented 4 months ago

Describe the issue

Null extracted folder for artifact: ResolvedArtifact(componentIdentifier=com.datadoghq:dd-sdk-android-core:2.8.0, variantName=null, artifactFile=/Users/lihuan_hsu/.gradle/caches/modules-2/files-2.1/com.datadoghq/dd-sdk-android-core/2.8.0/f95a80bbfe4be8fcb7f20846c9103daf285206b1/dd-sdk-android-core-2.8.0.aar, extractedFolder=null, dependencyType=ANDROID, isWrappedModule=false, buildMapping={__current_build__=/Users/lihuan_hsu/dev/aio6_android}, mavenCoordinatesCache=com.android.build.gradle.internal.ide.dependencies.MavenCoordinatesCacheBuildService$Inject@4e26c478)

Reproduction steps

in app build.gradle dependencies implementation "com.datadoghq:dd-sdk-android-logs:2.8.0"

Device Information

No response

SDK version

2.8.0

Kotlin / Java version

org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0

Gradle / AGP version

com.android.tools.build:gradle:4.2.2

Other dependencies versions

No response

Other relevant information

No response

0xnm commented 4 months ago

Hello @Lihuan-Hsu! In order to get more information for us to help you, can you please post the relevant stacktrace of the error? You can get it by running Gradle with --stacktrace argument (docs).

Also I can see you are using quite outdated AGP plugin, can you try to see if the issue still happens with AGP 7+?

Lihuan-Hsu commented 4 months ago
Lihuan-Hsu commented 4 months ago

can build with APG7+,but we need to upgrade too many other dependencies in my project.Is there any version can build with APG 4.2.2?

0xnm commented 4 months ago

Hello @Lihuan-Hsu!

There is nothing we can do here for the current SDK versions. You can try to use the latest 1.x SDK version (which is 1.19.3), but we suggest you to update your build environment stack to AGP 7+, given it was released almost 3 years ago already.