測試函式庫

回到Bintray進入新建的package

複製圖片右下角的網址串 (http://dl.bintray.com/...../.....\)

回到Android studio,開啟要引用函式庫的專案(非剛剛創建的Module)

打開專案層級的build.gradle( Project:app)

於repositories添加依賴庫

maven{
       url 'http://dl.bintray.com/...../.....'
     }

添加完依賴庫之後,再到App層級下的build.gradle引入函式庫

compile 'com.example.library:test:1.0.0'

確切的 compile 包名可於bintray查詢

results matching ""

    No results matching ""