在整个工程的build.gradle中添加以下代码即可: allprojects { repositories { jcenter() maven { url 'https://jitpack.io' } } }