添加 Gmail 后台依赖项时出错
Error while adding Gmail Background dependency
我想在我的 android 应用中在后台发送电子邮件。为此,我使用 Gmail Background。
但是当我尝试在依赖项中添加 compile 'com.github.yesidlazaro:GmailBackground:1.2.0'
时,出现错误
Error:(41, 13) Failed to resolve: com.github.yesidlazaro:GmailBackground:1.2.0
我应该怎么做才能解决这个错误?
非常感谢任何帮助。
你还需要在项目的build.gradle
:
中添加相应的仓库
allprojects {
repositories {
jcenter()
google()
maven { url "https://jitpack.io" } // that's the one missing.
}
}
我想在我的 android 应用中在后台发送电子邮件。为此,我使用 Gmail Background。
但是当我尝试在依赖项中添加 compile 'com.github.yesidlazaro:GmailBackground:1.2.0'
时,出现错误
Error:(41, 13) Failed to resolve: com.github.yesidlazaro:GmailBackground:1.2.0
我应该怎么做才能解决这个错误?
非常感谢任何帮助。
你还需要在项目的build.gradle
:
allprojects {
repositories {
jcenter()
google()
maven { url "https://jitpack.io" } // that's the one missing.
}
}