-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Immediate crash in release builds #411
Comments
PS: the issue might be due to a conflict with the Google Drive SDK or Android built-in classes.
I get the exception
However, if I try to add this line to gradle:
It doesn't compile because of
Sounds to me that there are several implementations of some classes floating around that do not fit together. |
1 similar comment
PS: the issue might be due to a conflict with the Google Drive SDK or Android built-in classes.
I get the exception
However, if I try to add this line to gradle:
It doesn't compile because of
Sounds to me that there are several implementations of some classes floating around that do not fit together. |
Found a workaround for the problem. It's similar to the AWS problem described here: aws-amplify/aws-sdk-android#476 Adding the following statement to the Manifest at least provides a workaround that seems to work for me:
|
Thanks for the detailed and thorough analysis of your issue @farindk 🙏 @tobiasKaminsky fancy taking a look? ❤️ |
Can you try this instead? #371 |
I had the gradle options from #371 already in my files (see original comment at the top of this issue). I still use OwnCloudClient. Does that make a difference? Haven't seen that there is now a NextcloudClient. However, I do not see a NextcloudClientFactory and I also need OwnCloudClientManagerFactory to set the UserAgent. Might be too early for me to switch to a new API. |
NextcloudClient is only for one api request, so there is no possibility to switch…
Then I add this. |
The library gives me the following crash on the first call. I tried to trace down the exact location where the crash happens, but ultimately, it seems to be in some static class initialization code somewhere in
HttpConnectionManager
or that area.This only happens when building with proguard enabled, but I think I kept all apache related classes (see my config file below). It is also interesting that this crashes only on my Samsung S8 (Android 9), but not on the Nexus 5 (Android 6). Hence, I don't believe it is simply a missing class, but rather some code error.
I also tried old versions down to 1.3.0, but get the same error, which is strange because I was building this without this problem in April 2019. Hence, the issue might only occur with current versions of Android studio (v3.6.1).
Spent a whole day and night on this and am completely stuck.
Will have to remove Nextcloud support from my software until this is resolved.
Crash:
proguard config (it's an enhanced version of a config previously posted here):
gradle:
The text was updated successfully, but these errors were encountered: