Skip to content
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

How to include local library in published parent library? #305

Open
ApostolisApo opened this issue Dec 9, 2019 · 1 comment
Open

How to include local library in published parent library? #305

ApostolisApo opened this issue Dec 9, 2019 · 1 comment

Comments

@ApostolisApo
Copy link

I have a library A which is published via Bintray and all of its dependencies which are remote dependencies (e.g. maven or jcenter) are compiled and accessed as usual by any app hosting my library.
However I recently included a local sub-library B as an aar file into library A. and it cannot be seen by the host app C. It is either not seen at all (when I include B into A as a project) or it seen and compiles but when in runtime I try to access a class of library B that host app C crashes and I get such errors:
java.lang.NoClassDefFoundError: Failed resolution of: ***/AuthorizationService;

What is the syntax for the library B to force Bintray to include in the published package even its local sub libraries?

@marandaneto
Copy link

@ApostolisApo not sure if I got your question, why don't you share your Gradle or Maven dependencies code?

  1. If you are using a Gradle file, try to use api instead of implementation when adding sub-lib B, that might be one thing to try.
  2. be sure that the sub-lib B should also be published on bintray/jcenter/etc...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants