Task :persistSentryProguardUuidsForReleaseArm64-v8a-release FAILED (AS:3.3 ABP:3.3.0 Gradle:4.10.1 sentry-android-gradle-plugin:1.7.16)
See original GitHub issueProject was working fine with sentry plugin before upgrade to AS 3.3 and the matching dev tools.
Now I have more build variants than just release/debug which I had before.
When I build a release version of the APK I get “Task :persistSentryProguardUuidsForReleaseArm64-v8a-release FAILED”. The plugin is trying to run command:
"[user]\\AppData\\Local\\Temp\\.sentry-cli8452420388174734644.exe" "upload-proguard" "--android-manifest" "[project_root]\\build\\intermediates\\merged_manifests\\release\\AndroidManifest.xml" "--write-properties" "[project_root]\\build\\intermediates\\merged_assets\\release\\mergeReleaseAssets\\out/sentry-debug-meta.properties" "[project_root]\\build\\outputs\\mapping\\release\\mapping.txt"
but there is no "[project_root]\\build\\intermediates\\merged_manifests\\release\\AndroidManifest.xml"
, instead there is "[project_root]\\build\\intermediates\\merged_manifests\\release\\arm64-v8a\\AndroidManifest.xml"
. The task fails with “error: The system cannot find the file specified. (os error 2)”.
I am running the build on Windows 10.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:46 (3 by maintainers)
Top Results From Across the Web
Gradle build failing after update to 3.0 - Stack Overflow
1 to 3.0. Since then the gradle build is failing every time with this error: Error:Cause: org.gradle.api.internal.tasks.DefaultTaskInputs ...
Read more >Gradle@3 - Gradle v3 task | Microsoft Learn
Gradle v3 # Build using a Gradle wrapper script. - task: Gradle@3 inputs: gradleWrapperFile: 'gradlew' # string. Alias: wrapperScript.
Read more >The Gradle Wrapper - Gradle User Manual
Executing the wrapper task generates the necessary Wrapper files in the project directory. Running the Wrapper task. $ gradle wrapper > Task :wrapper...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@bruno-garcia it should be enough to replace https://github.com/getsentry/sentry-java/blob/52d7836f0d642b079238a3e4736dd96143d3f9d5/sentry-android-gradle-plugin/src/main/groovy/io/sentry/android/gradle/SentryPlugin.groovy#L171
with
manifestPath = new File(new File(dir, variantOutput.dirName), "AndroidManifest.xml")
Sorry for the late answer…
I built a snapshot with this fix and it worked for me.