Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
this error appeared since it was updated to android 3.0
build.gradle (Module:app):
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion '27.0.0'
defaultConfig {
multiDexEnabled true
applicationId "com.example.samue.radiostatus"
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
dexOptions {
javaMaxHeapSize "4g"
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
testCompile 'junit:junit:4.12'
implementation 'com.android.support:multidex:1.0.2'
implementation 'com.android.support:appcompat-v7:26.+'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.google.code.gson:gson:2.8.1'
implementation 'com.loopj.android:android-async-http:1.4.9'
implementation 'com.github.snowdream.android:smartimageview:0.0.2'
implementation 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
implementation 'com.mcxiaoke.volley:library-aar:1.0.1'
implementation 'com.android.support:design:26.+'
implementation 'com.android.support:support-v4:26.+'
testCompile 'junit:junit:4.12'
implementation files('libs/httpmime-4.3.jar')
implementation files('libs/android-smart-image-view-1.0.0.jar')
implementation files('libs/activation.jar')
implementation files('libs/additionnal (1).jar')
implementation files('libs/android-async-http-1.4.9.jar')
implementation files('libs/javamail-mailapi-1.4.2.jar')
implementation files('libs/javamail-smtp-1.4.2.jar')
implementation files('libs/mail (1).jar')
}
build gradle (project):
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
classpath 'com.google.gms:google-services:3.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
google()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
This is because you have duplicates dependencies. You can't mix the same dependency from repositories and from local jar files. So, you need to clean up your app build.gradle. And also, don't use + for dependencies. Use exact version of dependencies. This is because you can't specify a problem for a library if you don't know its exact version.
You need to clean up your build.gradle to something like this:
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
testCompile 'junit:junit:4.12'
implementation 'com.android.support:multidex:1.0.2'
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.google.code.gson:gson:2.8.1'
implementation 'com.loopj.android:android-async-http:1.4.9'
implementation 'com.github.snowdream.android:smartimageview:0.0.2'
implementation 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
implementation 'com.mcxiaoke.volley:library-aar:1.0.1'
implementation 'com.android.support:design:26.1.0'
implementation 'com.android.support:support-v4:26.1.0'
implementation files('libs/httpmime-4.3.jar')
//implementation files('libs/android-smart-image-view-1.0.0.jar')
implementation files('libs/activation.jar')
implementation files('libs/additionnal (1).jar')
//implementation files('libs/android-async-http-1.4.9.jar')
implementation files('libs/javamail-mailapi-1.4.2.jar')
implementation files('libs/javamail-smtp-1.4.2.jar')
implementation files('libs/mail (1).jar')
}
Related
I have this app up and running till i suddenly getting these errors while updating few codes and rebuild:
Duplicate class com.getkeepsafe.relinker.ApkLibraryInstaller found in modules classes.jar (com.getkeepsafe.relinker:relinker:1.2.2) and classes.jar (pl.droidsonroids.relinker:relinker:1.3.1)
Duplicate class com.getkeepsafe.relinker.BuildConfig found in modules classes.jar (com.getkeepsafe.relinker:relinker:1.2.2) and classes.jar (pl.droidsonroids.relinker:relinker:1.3.1)
...
Go to the documentation to learn how to Fix dependency resolution errors.
Here is my build.gradle(app module) file looks like:
apply plugin: 'com.android.application'
apply plugin: 'realm-android'
apply plugin: 'io.fabric'
android {
...
compileSdkVersion 28
...
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.mrrideconfig
}
}
productFlavors {
}
repositories {
flatDir {
dirs 'libs'
}
}
}
...
dependencies {
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.+'
implementation(name: 'walletmixopglibrary', ext: 'aar')
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
exclude group: 'com.google.code.findbugs'
})
implementation('com.mikepenz:fastadapter:2.0.0#aar') {
transitive = true
}
implementation 'com.afollestad.material-dialogs:core:0.9.0.0'
implementation 'com.mikepenz:iconics-core:2.8.1#aar'
implementation 'com.mikepenz:fontawesome-typeface:4.6.0.2#aar'
implementation('cn.trinea.android.view.autoscrollviewpager:android-auto-scroll-view-pager:1.1.2') {
exclude module: 'support-v4'
}
androidTestImplementation 'junit:junit:4.12'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:support-vector-drawable:28.0.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.google.guava:guava:24.1-jre'
implementation 'com.dmitrymalkovich.android:material-design-dimens:1.4'
implementation 'com.ogaclejapan.smarttablayout:library:1.6.1#aar'
implementation 'com.ogaclejapan.smarttablayout:utils-v4:1.6.1#aar'
implementation 'com.jakewharton:butterknife:8.8.1'
implementation 'me.relex:circleindicator:1.2.2#aar'
implementation 'com.squareup.okhttp3:okhttp:3.14.1'
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.14.0'
implementation 'com.google.firebase:firebase-core:16.0.8'
implementation 'com.google.firebase:firebase-messaging:17.6.0'
implementation 'com.google.firebase:firebase-auth:16.2.1'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.9'
implementation 'com.mobsandgeeks:android-saripaar:2.0.3'
//implementation 'com.google.android.gms:play-services:12.0.1'
implementation 'com.google.android.gms:play-services-maps:16.1.0'
implementation 'com.google.android.gms:play-services-places:16.1.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.gms:play-services-nearby:16.0.0'
implementation 'org.greenrobot:eventbus:3.1.0'
implementation 'com.makeramen:roundedimageview:2.2.1'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
implementation 'com.github.siyamed:android-shape-imageview:0.9.3'
implementation 'de.hdodenhof:circleimageview:2.1.0'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'com.mcxiaoke.volley:library:1.0.19'
implementation 'com.balysv:material-ripple:1.0.2'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
}
apply plugin: 'com.google.gms.google-services'
and build.gradle(project module) file:
buildscript {
repositories {
jcenter()
google()
maven {
url 'https://maven.fabric.io/public'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'com.google.gms:google-services:4.2.0'
classpath 'io.realm:realm-gradle-plugin:4.2.0'
classpath 'io.fabric.tools:gradle:1.28.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
google()
// maven {
// url 'https://maven.google.com/'
// name 'Google'
// }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
My Android Studio version is 3.4.1 and sdk is up to date. I searched for a solution but coudn't find one. Those librarys in the error messeage isn't even in my dependency list. How can i resolve these problem?
Use
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.15'
instead of latest version or
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.+'
its relinker class is conflicting with realm library. This is the only way I know for now.
Since pl.droidsonroids.gif update to 1.2.17 relinker conflict with com getkeepsafe.relinker...
I had a similar problem I solved it by changing
api 'pl.droidsonroids.gif:android-gif-drawable:1.2.+'
to
api 'pl.droidsonroids.gif:android-gif-drawable:1.2.1'
I have been trying to add a dependency of com.shamanland:fonticon:0.1.8 but as I add this I get the error
error: duplicate value for resource 'attr/textSize' with config ''.
error: resource previously defined here.
There are too many values with duplication issue to remove the values.
I have tried changing compileSdkVersion and targetSdkVersion to 25 but this did not help either.
I tried to use exclude but I don't know what to exclude exactly. Can anyone help me with this issue? Thank you.
My gradle:
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
android {
configurations {
all*.exclude module: 'okhttp'
all*.exclude module: 'okio'
}
compileSdkVersion 27
buildToolsVersion '27.0.2'
defaultConfig {
applicationId "com.abc.def"
vectorDrawables.useSupportLibrary = true
minSdkVersion 17
targetSdkVersion 27
versionCode 15
versionName "1.2.4"
multiDexEnabled = true
}
buildTypes {
release {
lintOptions {
disable 'MissingTranslation'
checkReleaseBuilds false
}
minifyEnabled false
}
}
aaptOptions {
cruncherEnabled = false
}
dexOptions {
javaMaxHeapSize "2g"
}
}
repositories {
maven { url 'https://maven.fabric.io/public' }
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:design:27.0.2'
compile 'com.android.support:appcompat-v7:27.0.2'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:percent:27.0.2'
compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
compile 'com.squareup.okhttp3:logging-interceptor:3.4.1'
compile 'com.jakewharton:butterknife:8.5.1'
compile 'com.google.code.gson:gson:2.6.2'
compile 'com.squareup.retrofit2:retrofit:2.1.0'
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
compile 'com.android.support:recyclerview-v7:27.0.2'
compile 'com.android.support:cardview-v7:27.0.2'
provided 'org.projectlombok:lombok:1.16.16'
compile 'pl.droidsonroids.gif:android-gif-drawable:1.2.8'
annotationProcessor "org.projectlombok:lombok:1.16.16"
compile 'com.google.android.gms:play-services-maps:11.0.1'
testCompile 'junit:junit:4.12'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0'
compile 'com.chauthai.swipereveallayout:swipe-reveal-layout:1.4.0'
compile 'com.theartofdev.edmodo:android-image-cropper:2.4.+'
compile 'com.mikhaellopez:circularimageview:3.0.2'
compile 'com.wdullaer:materialdatetimepicker:3.2.2'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.github.jd-alexander:library:1.1.0'
compile 'com.google.android.gms:play-services-location:11.0.1'
compile 'com.google.android.gms:play-services-maps:11.0.1'
compile 'com.yarolegovich:discrete-scrollview:1.2.0'
compile 'com.miguelcatalan:materialsearchview:1.4.0'
compile 'com.wang.avi:library:2.1.3'
compile 'com.google.firebase:firebase-core:11.0.1'
compile 'com.google.firebase:firebase-messaging:11.0.1'
compile 'com.android.support:multidex:1.0.0'
compile 'com.github.ksoichiro:android-observablescrollview:1.5.0'
compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
compile 'com.hedgehog.ratingbar:app:1.1.2'
compile 'com.eftimoff:android-pathview:1.0.8#aar'
compile('com.crashlytics.sdk.android:crashlytics:2.6.8#aar') {
transitive = true;
}
compile 'uk.co.chrisjenx:calligraphy:2.3.0'
apply plugin: 'com.google.gms.google-services'
compile 'com.stone.vega.library:VegaLayoutManager:1.0.1'
compile project(':library')
compile 'me.henrytao:smooth-app-bar-layout:24.1.0.0'
compile project(':PayTabs_SDK')
/*----------------payfort sdk------------*/
implementation 'com.victor:lib:1.0.1'
implementation 'com.shamanland:fonticon:0.1.8'
implementation('com.nispok:snackbar:2.11.+') {
// exclusion is not necessary, but generally a good idea.
exclude group: 'com.google.android', module: 'support-v7'
}
implementation 'com.google.guava:guava:18.0'
implementation 'org.bouncycastle:bcprov-jdk16:1.46'
implementation 'commons-codec:commons-codec:1.10'
implementation project(':FORTSDKv1.4.4')
}
It may be due to the implementation of other external dependency. In my case, I try removing the external dependency one by one. Most Probably while adding dependency the same dependency was used on other external dependency. So try removing library dependency one by one and see which was causing problem.
Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
I got the following error
This is my build gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
defaultConfig {
applicationId "com.example.ryan.mychatapp"
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.0"
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
//noinspection GradleCompatible
implementation 'com.google.firebase:firebase-storage:11.2.0'
//noinspection GradleCompatible
compile 'com.google.android.gms:play-services:11.2.0'
compile 'com.android.support:support-v4:26.1.0'
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:26.1.0'
compile 'com.android.support:design:26.1.0'
compile 'com.google.firebase:firebase-database:11.2.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.google.firebase:firebase-auth:11.2.0'
compile 'com.google.firebase:firebase-database:11.2.0'
compile 'com.google.firebase:firebase-messaging:11.2.0'
compile 'com.squareup.picasso:picasso:2.5.2'
testImplementation 'junit:junit:4.12'
compile 'com.android.support:multidex:1.0.1'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
compile 'de.hdodenhof:circleimageview:2.2.0'
compile 'com.theartofdev.edmodo:android-image-cropper:2.6.+'
compile 'com.squareup.okhttp:okhttp:2.5.0'
implementation 'com.firebaseui:firebase-ui-database:2.1.1'
compile 'id.zelory:compressor:2.1.0'
}
This is my another build gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.gms:google-services:3.1.0'
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
I already added multiDexEnabled true, but the error keep popping up. I already tried, clean and rebuild, but none of it is working, what should I do? I not sure what is wrong with my gradle? I pasted my whole gradle in this post.
Let me know which part should I change
You're mixing implementation and compile, use simply implementation for all your dependencies as compile has been deprecated. Also update your gradle plugin.
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.gms:google-services:3.1.0'
}
dependencies {
//noinspection GradleCompatible
implementation 'com.google.firebase:firebase-storage:11.2.0'
//noinspection GradleCompatible
implementation 'com.google.android.gms:play-services:11.2.0'
implementation 'com.android.support:support-v4:26.1.0'
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:design:26.1.0'
implementation 'com.google.firebase:firebase-database:11.2.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.google.firebase:firebase-auth:11.2.0'
implementation 'com.google.firebase:firebase-database:11.2.0'
implementation 'com.google.firebase:firebase-messaging:11.2.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
testImplementation 'junit:junit:4.12'
implementation 'com.android.support:multidex:1.0.1'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.6.+'
implementation 'com.squareup.okhttp:okhttp:2.5.0'
implementation 'com.firebaseui:firebase-ui-database:2.1.1'
implementation 'id.zelory:compressor:2.1.0'
}
when I add 'com.google.firebase:firebase-auth:11.4.2' to my Gradle I receive an Error "Gradle DSL method not found: compile()"
this is my App/Gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
defaultConfig {
applicationId "com.watchmecoding.eazynote"
minSdkVersion 15
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
testCompile 'junit:junit:4.12'
compile 'com.google.code.gson:gson:2.8.2'
compile 'com.google.firebase:firebase-core:11.4.2'
compile 'com.google.firebase:firebase-database:11.4.2'
compile 'com.google.firebase:firebase-crash:11.4.2'
compile 'com.google.firebase:firebase-ads:11.4.2'
compile 'com.google.firebase:firebase-config:11.4.2'
compile 'com.google.firebase:firebase-storage:11.4.2'
compile 'com.google.firebase:firebase-analytics:11.4.2'
comlile 'com.google.firebase:firebase-auth:11.4.2'
}
apply plugin: 'com.google.gms.google-services'
and here is my project/gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.google.gms:google-services:3.1.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
maven {
url "https://maven.google.com"
}
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
my repository is update, and i did everything just like the tutorial, but still have this problem, versions are all the same too.
thanks in advance.
Change your SourceCode
comlile 'com.google.firebase:firebase-auth:11.4.2'
to
compile 'com.google.firebase:firebase-auth:11.4.2'
I have got it.
You only need to change the version like this
compile 'com.google.firebase:firebase-database:10.2.1'
At the end one line is missing refer this doc
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
testCompile 'junit:junit:4.12'
compile 'com.google.code.gson:gson:2.8.2'
compile 'com.google.firebase:firebase-core:11.4.2'
compile 'com.google.firebase:firebase-database:11.4.2'
compile 'com.google.firebase:firebase-crash:11.4.2'
compile 'com.google.firebase:firebase-ads:11.4.2'
compile 'com.google.firebase:firebase-config:11.4.2'
compile 'com.google.firebase:firebase-storage:11.4.2'
compile 'com.google.firebase:firebase-analytics:11.4.2'
comlile 'com.google.firebase:firebase-auth:11.4.2'
}
//add this line to bottom
apply plugin: 'com.google.gms.google-services'
You have to put the plugin ( apply plugin: 'com.google.gms.google-services') on the bottom of the dependencies. I am sure that will help to resolve your problem.
I have imported exoplayer using jcenter but am getting error as :
Error:(46, 13) Failed to resolve: com.google.android.exoplayer:exoplayer:r2.3.0
Following is my code of gradles:
build.gradle(Project)
buildscript{
repositories {
jcenter()
/* mavenCentral()*/
}
dependencies{
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.android.tools.build:gradle:1.0.0-rc1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}}allprojects {
repositories {
jcenter()
mavenCentral()
}
}
task clean(type: Delete)
{
delete rootProject.buildDir
}
build.gradle(Module)
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.example.pash.dr"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}}
repositories {
jcenter()
mavenCentral()
}
dependencies
{
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.0'
compile 'com.android.support:design:25.3.0'
compile 'com.android.support:recyclerview-v7:23.3.+'
compile 'com.android.support:cardview-v7:23.3.+'
testCompile 'junit:junit:4.12'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.squareup.picasso:picasso:2.5.2'
/** *************For player ***************/
compile 'com.android.support:support-v4:21.0.3'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.daimajia.slider:library:1.1.5#aar'
compile 'com.google.android.exoplayer:exoplayer:r2.3.0'
}
Please guide me. Thank you in advance.
Change exo player dependencies to 1.5.2 and then go to File->Invalidate cache /restart
dependencies
{
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.0'
compile 'com.android.support:design:25.3.0'
compile 'com.android.support:recyclerview-v7:23.3.+'
compile 'com.android.support:cardview-v7:23.3.+'
testCompile 'junit:junit:4.12'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.squareup.picasso:picasso:2.5.2'
/** *************For player ***************/
compile 'com.android.support:support-v4:21.0.3'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.daimajia.slider:library:1.1.5#aar'
compile 'com.google.android.exoplayer:exoplayer:r1.5.2'
}
you don't have to go back in versions,
you can use the last release version: as in this link [1]https://github.com/google/ExoPlayer/releases
just try to do invalidate and restart your project