直接将*.jar包copy到 libs 文件夹下,然后右键*.jar,选择 Add As Library...
弹出 Create Library 对话框,Add to module :app即可,ok 构建中,查看build.gradle会自动添加
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile files('libs/*.jar')
}
ok。完成了
直接将*.jar包copy到 libs 文件夹下,然后右键*.jar,选择 Add As Library...
弹出 Create Library 对话框,Add to module :app即可,ok 构建中,查看build.gradle会自动添加
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile files('libs/*.jar')
}
ok。完成了
转载于:https://my.oschina.net/u/555375/blog/407199