右鍵項目,Open Module Settings android studio中為項目添加依賴包的方法 打開後選擇Dependencies頁籤,點最右邊的加号: android studio中為項目添加依賴包的方法 選擇Libriay dependencies,從下拉清單裡面選擇就可以了。