App crashes due to module library dependency

662 Views Asked by At

I have module in Android app. This module uses the Airship library. I have imported this module in my project and used it.

Scenario: If both my app and module gradle has the Airship library, everything works fine.

But, I think adding the same library at both places does't make sense, hence i removed it from the the app gradle (As the app does not have direct dependency on Airship lib). But app is crashing with the following error

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/urbanairship/AirshipConfigOptions;
0

There are 0 best solutions below