I am using a third-party dependency which doesn't handle a special use case and is been crashing on multi-process applications.
Is there any way we can remove the file during packaging so that we can create and put a new fixed file in the application code with the same package name as of third party?
If we are not removing the original file from the third-party dependency, we are getting multiple files defined in different dex. Is there any way to remove the original file from external dependency or replace the file during packaging?
I have tried the same using
ResolutionStrategy: This doesn't support file-level changes.
DuplicatesStrategy: Not able to get enough resources to solve the requirement.
There can be the solution of downloading the .aar
or .jar
file and manually removing the file and then repackaging it. But looking forward to knowing if there is any direct solution that gradle or any other tool support this context.