search

Home  >  Q&A  >  body text

Can Android use frameworks such as dagger2 and butterknife in the library?

I hope to build a complete library, so that when there is a new project, I can directly rely on the library for development and use it as a framework. But I'm not sure if I can put a library like dagger2 into the library. I tried it myself, but a compilation error message appeared.

Error:Execution failed for task ':baseprojectlib:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

The method of building the project is relatively simple and crude, which is to directly add dependencies in build.gradle in the library. I think there must be a problem with this, but I don't know what to do.

Or if someone has a method for making a framework library, you can tell me directly. I would be grateful.

扔个三星炸死你扔个三星炸死你2792 days ago862

reply all(1)I'll reply

  • phpcn_u1582

    phpcn_u15822017-06-20 10:08:37

    Put it in a Module

    reply
    0
  • Cancelreply