①首先将aar包放入项目中的libs目录下

②在项目中的build.gradle中添加以下代码

repositories {
flatDir {
dirs 'libs'
}
}

③在dependencies中添加(upnp代表aar的名字)

implementation(name:'upnp', ext:'aar')

posted on 2019-02-21 10:04  Lotz  阅读(4167)  评论(0编辑  收藏  举报