sentry-java: SentryPlugin.getDebugMetaPropPath fails with AGP 3.4

variant.mergeAssets.outputDir now returns Provider<Directory> in AGP 3.4.0, instead of a File.

That means the plugin will not be able to store the sentry-debug-meta.properties file in the final APK.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 5
  • Comments: 20 (3 by maintainers)

Most upvoted comments

This is high on the priorities list and we should have something released relatively soon

@bruno-garcia Agh, my bad. I’d updated the library but not the gradle plugin šŸ¤¦ā€ā™‚ Thanks

Note that on Windows, the build fails with the following error for the same reason:

error: The filename or extension is too long. (os error 206)

[... SNIP ...]

> Process 'command 'cmd'' finished with non-zero exit value 1

Setting SENTRY_LOG_LEVEL=info shows the following command run:

"C:\\Users\\me\\AppData\\Local\\Temp\\.sentry-cli4700052644997814422.exe" "upload-proguard" "--android-manifest" "C:\\path\\to\\my\\project\\app\\build\\intermediates\\merged_manifests\\release\\AndroidManifest.xml" "--write-properties" "property(interface org.gradle.api.file.Directory, map(property(interface org.gradle.api.file.Directory, fixed(class org.gradle.api.internal.file.DefaultFilePropertyFactory$FixedDirectory, C:\\path\\to\\my\\project\\app\\build))))/sentry-debug-meta.properties" "C:\\path\\to\\my\\project\\app\\build\\outputs\\mapping\\app\\release\\mapping.txt"