2017-02-27 98 views
-1

如何安裝材料抽屜庫我嘗試使用這種方法,但不起作用如何安裝MaterialDrawer庫在Android Studio中

我使用文件>新建>新建模塊>導入搖籃項目>選擇我的源目錄>導入應用/庫>完成 enter image description here

enter image description here

enter image description here

但我仍然有錯誤

Error:(9, 0) Could not find method compile() for arguments [com.mikepenz:materialdrawer:[email protected], bu[email protected]dd62d82] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

是否我的方法不正確或者我做錯了?

+0

我想你想要導入的是庫的樣本,給該項目內的庫模塊的路徑。或者,如果提供的是Gradle文件,則應該使用@aar依賴關係,而不是模塊。 – Harry

回答

0

關注這個:

文件 - >新建 - >導入模塊

選擇庫路徑和完成。

相關問題