I am trying to add AChartEngine as library for my project. I applied same steps in here: AChartEngine And Android Studio.
But I keep getting this error: Gradle DSL Method not found: maven ()
Here are my 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'
}