我正在尝试打开Omni-Notes开源项目,但不断收到错误

时间:2015-05-14 16:20:27

标签: android

gradle sync错误无法解决:com.afollestad:material-dialogs:0.5.6!

这是截图 http://prntscr.com/755pp7

请告诉我您还需要什么!

pply插件:'com.android.application'

android {     compileSdkVersion 21     buildToolsVersion“21.1.2”

defaultConfig {
    applicationId "it.feio.android.omninotes"
    minSdkVersion project.MIN_SDK
    targetSdkVersion project.TARGET_SDK
    versionName project.VERSION_NAME
    versionCode Integer.parseInt(project.VERSION_CODE)
}

buildTypes {
    release {
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        applicationVariants.all { variant ->
            variant.outputs.each { output ->
                output.outputFile = new File(
                        output.outputFile.parent,
                        output.outputFile.name.replace(".apk", "-${variant.versionName}.apk"))
            }
        }
    }
}
lintOptions {
    disable 'MissingTranslation'
}
compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_6
    targetCompatibility JavaVersion.VERSION_1_6
}

}

1 个答案:

答案 0 :(得分:0)

MaterialDialog库已更新至版本0.7.4.1。在build.gradle(Module:app)文件中, 替换

  

compile' com.afollestad:material-dialogs:0.5.6'

通过

  

compile' com.afollestad:material-dialogs:0.7.4.1'