I am able to build the Project successfully in Android Studio but when I am trying to run the application getting error like this "duplicate entry: android/support/v4/print/PrintHelper$1.class.",I have searched lot of sites and tried lot of suggestions but failed.Please help me..below is my code.I was struggled 2 days for this.
apply plugin: 'com.android.application'
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile project(':appcompat_v7')
compile project(':google-play-services_lib')
compile project(':Cognalys')
//noinspection GradleDynamicVersion
compile 'com.android.support:recyclerview-v7:22.2.+'
}
android {
compileSdkVersion 22
buildToolsVersion "23.0.0 rc3"
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
// Move the tests to tests/java, tests/res, etc...
instrumentTest.setRoot('tests')
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
}
defaultConfig {
// Enabling multidex support.
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}