I would like to add this library from GitHub but it doesn't seem to be working when adding the following statement in the build.gradle file:
compile 'com.github.flavienlaurent.datetimepicker:library:0.0.2'
I get the following error message:
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define
I read somewhere else that it had to do with the support-v4
library. How could I resolve this?
build.gradle file:
apply plugin: 'android'
android {
compileSdkVersion 19
buildToolsVersion '19.1.0'
defaultConfig {
minSdkVersion 7
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}}
dependencies {
compile 'com.android.support:appcompat-v7:19.1+'
compile 'com.android.support:support-v4:19.0.0'
compile files('libs/mpandroidchartlibrary-1-7-4.jar')
compile files('libs/smartconfiglib.jar')
// compile 'com.github.flavienlaurent.datetimepicker:library:0.0.2'
}