Gradle could not resolve otto library

会有一股神秘感。 提交于 2019-12-06 02:12:39

You need to tell gradle where to find it.

repositories {
    mavenCentral()
}

Note that the existing repositories { ... } inside buildscript { ... } is only to configure the repositories for the build classpath itself, not your project, so put this new element just under apply plugin ...

I believe what you're missing is Tools->Android->Sync Project with Gradle Files. I tested your code above and it worked just fine for me.

Hope this helps.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!