【问题标题】:Achartengine Error: Cannot find Maven ()Achartengine 错误:找不到 Maven ()
【发布时间】:2015-05-02 17:22:25
【问题描述】:

我正在尝试将 AChartEngine 添加为我的项目的库。我在这里应用了相同的步骤:AChartEngine And Android Studio

但我不断收到此错误:Gradle DSL Method not found: maven ()

这是我的 build.Gradle:

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        jcenter()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.1.0'
    }
}

allprojects {
    repositories {
        jcenter()
    }
    maven {
        url "https://repository-achartengine.forge.cloudbees.com/snapshot/"
    }
}

apply plugin: 'com.android.application'

android {
    compileSdkVersion 22
    buildToolsVersion "22.0.0"

    defaultConfig {
        applicationId "com.example.ibm.drawing_1"
        minSdkVersion 16
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile files('libs/achartengine-1.1.0.jar')
    compile group: 'org.achartengine', name: 'achartengine', version: '1.2.0'
}

【问题讨论】:

标签: android-studio achartengine


【解决方案1】:

似乎快照已从他们的网站上删除(所以 gradle 找不到它)。 在这里查看我的答案: https://stackoverflow.com/a/46768836/2556220

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-05-10
    • 2015-05-14
    • 2018-03-27
    • 2015-11-06
    • 1970-01-01
    • 1970-01-01
    • 2016-12-02
    • 2019-05-31
    相关资源
    最近更新 更多