Closed Monyancha closed 3 years ago
This is not a relinker problem; please try stackoverflow.
This is not a relinker problem; please try stackoverflow.
okay....what's your suggestion in this case.... I will appreciate your input....thanks
I would suggest that you a) google the error message and learn what it means, and b) ask on stackoverflow.com if you get stuck. I'm sorry to say, I don't have the time to debug your build.
I am facing this problem Multiple dex files define Lcom/getkeepsafe/relinker/SystemLibraryLoader;
Here is my build.gradle:moduleapp
apply plugin: 'com.android.application' apply plugin: 'realm-android'
android { compileSdkVersion 26 buildToolsVersion '26.0.3' defaultConfig { applicationId 'com.taxiapp.passenger' minSdkVersion 17 targetSdkVersion 26 versionCode 13 versionName '1.0.3' vectorDrawables.useSupportLibrary = true testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" multiDexEnabled true dexOptions { javaMaxHeapSize '4g' } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } productFlavors { } }
allprojects { repositories { mavenCentral() } } /* IMPORTANT :
Be careful when update dependencies, different version library may caused error / dependencies { compile 'pl.droidsonroids.gif:android-gif-drawable:1.2.+' } 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' exclude group: 'com.google.code.findbugs' }) compile('com.mikepenz:fastadapter:2.0.0@aar') { transitive = true } compile 'com.afollestad.material-dialogs:core:0.9.0.0' compile 'com.mikepenz:iconics-core:2.8.1@aar' compile 'com.mikepenz:fontawesome-typeface:4.6.0.2@aar'
compile('cn.trinea.android.view.autoscrollviewpager:android-auto-scroll-view-pager:1.1.2') { exclude module: 'support-v4' }
// compile('pl.droidsonroids.relinker:1.2.2'){ // exclude module: 'pl.droidsonroids.relinker:1.2.2' // }
} dependencies { compile 'com.android.support.constraint:constraint-layout:1.0.2' } apply plugin: 'com.google.gms.google-services'
And here is my build.gradle:projectmodule // Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript { repositories { jcenter() google() } dependencies { classpath 'com.android.tools.build:gradle:3.0.1' classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' classpath 'com.google.gms:google-services:3.0.0' classpath 'io.realm:realm-gradle-plugin:4.1.0'
}
allprojects { repositories { jcenter() google() // maven { // url 'https://maven.google.com/' // name 'Google' // } } }
task clean(type: Delete) { delete rootProject.buildDir }
Please advice what i can do to solve this proplem