I have projects (libraries) they are for example in the folder C:\\Android\libs and there are projects to which I want to connect these libraries - they lie at the address C:\\Android\projects and I want it when I contribute changes to the library code, I re-assemble it, and then I re-assemble the application project itself, then the libraries with the changes were pulled up to it.

But in the project structure, I can connect the libraries that are in the project itself at C:\Android\AndroidProjects\MyPoject\app\libs and I need to pull them from the C:\\Android\libs directory, how can I organize this?

For the proposed link I do this:

  1. there is libraryone.aar which lies at C:/Android/AndroidProjects/NetworkLib/library/build/outputs/aar

  2. I write lines in settings.gradle

     include ':libraryone' project(':libraryone').projectDir = new File('C:/Android/AndroidProjects/NetworkLib/library/build/outputs/aar') 
  3. in ProjectStructure, I add the libraryone module to the dependencies in the app module and then the following line appears in build.gradle (module: app): compile project(':libraryone')

  4. I click on “build project” and catch this one: Error:Configuration with name 'default' not found.

  • If a separate project is located (the project is created as a library), then it can be located anywhere. When Build-Rebuild rebuild everything, including the project with liby. But I understand that this is not the case and you need a gradle expert. - Djangorussia
  • 2
  • @pavlofff, I find it difficult to assess whether this question is a copy of what you have proposed, but I can close the gold double-Hummer ... Close? - Yuriy SPb
  • @YuriySPb Please wait, the problem is not solved, right now update the issue. - Kirill Stoianov
  • This is how the project is connected from source, not compiled into a package. - pavlofff

0