-
Notifications
You must be signed in to change notification settings - Fork 210
Description
Expected behavior
Build should succeed, expected directory bugsnag-libs should exist.
Observed behavior
Build fails, bugsnag-libs directory is not created
Steps to reproduce
I updated my project to the current version of Bugsnag (4.21.1) from 4.13 and followed the instructions on https://docs.bugsnag.com/platforms/android/#native-api-configuration.
Version
4.21.1
Additional information
My NDK code is in an Android Library Submodule. I suspect this may be the cause, as we've (Bugsnag & myself) have had to come up with workarounds for things because of this in the past.
I've tried removing all the 'bugsnag' related grade stuff from my library's build.gradle file & just putting it in the main applications 'build.gradle' (which is what gives me the aforementioned error). I also tried adding the bugsnag dependency to my android library, which results in a different error:
> Task :nativeModule:processBugsnagDebugManifest FAILED
Failed to find manifest at android-project/nativeModule/build/intermediates/merged_manifests/debug/AndroidManifest.xmlFAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':nativeModule:processBugsnagDebugManifest'.
> Cannot get property 'asFile' on null object
Moving my NDK library to the main Android project is not an option - I have 6 different apps that build from the same project - moving the NDK library to the main project results in all of the code being compiled for all 3 of my supported architectures for all 6 of my applications, a total of 18 times re-compiling my (very large) C++ library. I've done this in the past and the build time was in excess of 3 hours. Having the NDK in a submodule cuts that down to only about 20 minutes.