-
-
Notifications
You must be signed in to change notification settings - Fork 60
Closed
Labels
Description
Failing builds are getting reported here on discord.
Context
The v8 of sentry-java no longer contains sentry-native-ndk so we have to provide this separately. The change happened in #2014
We're pulling the .aar from the sentry-native release page now.
We're now adding these lines and libraries to the exported gradle project
sentry-unity/src/Sentry.Unity.Editor/Android/GradleSetup.cs
Lines 14 to 17 in 41e23b1
| public const string SdkDependencies = @"dependencies { | |
| implementation(name: 'sentry-android-ndk-release', ext:'aar') | |
| implementation(name: 'sentry-android-core-release', ext:'aar') | |
| implementation(name: 'sentry-native-ndk-release', ext:'aar')"; |
Error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':launcher:mergeReleaseNativeLibs'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeNativeLibsTask$MergeNativeLibsTaskWorkAction
> 2 files found with path 'lib/arm64-v8a/libsentry-android.so' from inputs:
- /Users/jenkins/.gradle/caches/transforms-3/471de06e2b8edd9c0dc4fc0e46cc62a0/transformed/jetified-sentry-android-ndk-release/jni/arm64-v8a/libsentry-android.so
- /Users/jenkins/.gradle/caches/transforms-3/559a935e525dfcc9f4c72afea3271165/transformed/jetified-sentry-native-ndk-release/jni/arm64-v8a/libsentry-android.so
If you are using jniLibs and CMake IMPORTED targets, see
https://developer.android.com/r/tools/jniLibs-vs-imported-targets
* Try:
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
BUILD FAILED in 28s
Possible culprit
I suspect this being a Unity-specific caching issue that we're tracking in #1847.
The "old" sentry-java did not get overwritten but the new sentry-native-ndk gets added to the exported gradle project, causing the conflict.
Metadata
Metadata
Assignees
Labels
Projects
Status
Done