Android Android developers of the Studio package of four methods rely aar (additional third-party libraries dependent manner)

AS use any version:

method one:

 repositories {
        flatDir {
            dirs 'libs'
        }
    }
implementation (name: 'paylibrary_v1.0', ext: 'aar')

Method Two:

Get a line of code

implementation fileTree(include: ['*.jar',"*.aar"], dir: 'libs')

 

Above AS3.0 (low version not tested)

Method three:

The same line of code to get:

implementation files('libs/paylibrary_v1.0.aar')

Method four:

The same line of code to get:

implementation files('libs\\paylibrary_v1.0.aar')

 

Dependent on third-party libraries in some method:

method one:

implementation("com.squareup.okhttp3:okhttp:3.8.1")

Method Two:

implementation'com.squareup.okhttp3:okhttp:3.8.1'

 

He published 191 original articles · won praise 105 · views 360 000 +

Guess you like

Origin blog.csdn.net/xiayiye5/article/details/102705389