This question is locked. New answers and comments are not allowed.
So I followed the directions for adding the .aar files to the lib folder of my project and then updating my gradle file but I keep getting an error for all of the .aar files in Android Studio. The error just says "Failed to resolve: <aar file name>". Here is my current gradle file, I've been tinkering and tweaking it all morning based on other examples and posts online but I don't know if it's a problem with the current version of Android Studio or how I'm setting it up.
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.1'
}
}
apply plugin: 'com.android.application'
repositories {
mavenCentral()
flatDir {
dirs 'libs'
}
}
android {
compileSdkVersion 21
buildToolsVersion '21.1.2'
defaultConfig {
minSdkVersion 16
targetSdkVersion 21
versionCode 2
versionName "1.6"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.google.android.gms:play-services:6.5.87'
compile 'com.android.support:support-v4:21.0.3'
compile 'com.android.support:appcompat-v7:21.0.3'
compile files('src/main/libs/ksoap2-android-assembly-3.0.0-jar-with-dependencies.jar')
compile files('src/main/libs/joda-time-2.3.jar')
compile files('src/main/libs/gson-2.2.4.jar')
compile files('src/main/libs/achartengine-1.2.0.jar')
compile files('src/main/libs/ksoap2-android-assembly-3.3.0-jar-with-dependencies.jar')
compile files('src/main/libs/pdfviewerlibrary.jar')
compile(name:'Common-2014.3.1402-trial-release', ext:'aar')
compile(name:'Primitives-2014.3.1402-trial-release', ext:'aar')
compile(name:'Input-2014.3.1402-trial-release', ext:'aar')
compile(name:'Chart-2014.3.1402-trial-release', ext:'aar')
compile(name:'Feedback-2014.3.1402-trial-release', ext:'aar')
}