Android Gradle adding external library and nested external libraries to a project

后端 未结 3 831
抹茶落季
抹茶落季 2021-02-02 16:18

How do i add an external library and nested external libraries to an android project?


My project structure (Not allowed to change)

  • A
3条回答
  •  渐次进展
    2021-02-02 17:00

    One question. Do you need this dependency tree?

    --- App
       |--- Library 2
       |--- Library 1
           |--- Library 3
           |--- Library 4
    

    If yes, your App does not need import the libraries 3 and 4. These dependencies are available over the Library 1.

    About settings.gradle files. Why one in each module? This file is only used in the root project (like Eclipse workspace) to reference your modules (App, Library 1, Library 2, etc...)

    This help you?

提交回复
热议问题