Could not find com.squareup.picasso:picasso:2.5.2

前端 未结 5 1221
我寻月下人不归
我寻月下人不归 2021-01-13 04:52

I adding picasso dependencies but seem it not worked. I tried changing the version. But still useless.

This my build.gradle (module)

apply plugin: \'         


        
5条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-13 05:27

    You need to add a section allprojects at the end of your main build.gradle that defines the repositories for the modules of your project:

    allprojects {
        repositories {
            jcenter()
        }
    }
    

    This will result in the following build.gradle:

    buildscript {
        repositories {
            jcenter()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:2.1.0'
            // NOTE: Do not place your application dependencies here; they belong
            // in the individual module build.gradle files
        }
    }
    
    allprojects {
        repositories {
            jcenter()
        }
    }
    

提交回复
热议问题