Android動態改變工程依賴

https://www.cnblogs.com/lindeer/p/11006449.html

app/build.gradle:

api project(':mytemplate')

settings.gradle

include ':tavautotemplate'
project(':mytemplate').projectDir = new File(rootDir.getParent() + '/mytemplate-Android/mytemplate')

 

發佈了21 篇原創文章 · 獲贊 11 · 訪問量 9萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章