在project folder
File > New > New module and choose Import .JAR/.AAR Package.
此時AAR project會產生在跟app同層並且此aap project的build.gradle會寫上
configurations.create("default")
artifacts.add("default", file('this-is-yours-package-in-aar-format.aar'))
此時在app的build.gradle的dependencies裡加上
compile project(':name-of-module-created-via-new-module-option-described-above')
沒有留言:
張貼留言