chat21 / chat21-android-demo

Android chat demo app with Chat21 SDK for Firebase
http://www.chat21.org
MIT License
62 stars 58 forks source link

Modules cannot be loaded #16

Open giovankabisano opened 6 years ago

giovankabisano commented 6 years ago

When i clone this application from my Android Studio program, some errors occur. image

giovankabisano commented 6 years ago

image I get so many error. Can you help me?

giovankabisano commented 6 years ago

Here is my Gradle(Module:app)

apply plugin: 'com.android.application'

android { compileSdkVersion 27 buildToolsVersion "27.0.3"

defaultConfig {
    applicationId "tiledesk.android"
    minSdkVersion 19
    targetSdkVersion 22
    versionCode 16
    versionName "1.0.10"
    multiDexEnabled true
}

dexOptions {
    javaMaxHeapSize "4g"
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

packagingOptions {
    exclude 'META-INF/LICENSE'
    exclude 'META-INF/NOTICE'
    exclude 'META-INF/license.txt'
    exclude 'META-INF/notice.txt'
    exclude 'META-INF/DEPENDENCIES'
}

}

dependencies { compile fileTree(dir: 'libs', include: ['*.jar'])

compile 'com.android.support:multidex:1.0.1'

compile 'com.android.support:appcompat-v7:27.0.2'
compile 'com.android.support:design:27.0.2'
compile 'com.android.support:cardview-v7:27.0.2'

compile "com.google.android.gms:play-services:11.8.0"

compile 'com.github.bumptech.glide:glide:3.8.0' // image loading

compile project(':chat')

}

configurations.all { resolutionStrategy.eachDependency { DependencyResolveDetails details -> def requested = details.requested if (requested.group == 'com.android.support') { if (!requested.name.startsWith("multidex")) { details.useVersion '26.1.0' } } } }

apply plugin: 'com.google.gms.google-services'

dikixeranta commented 6 years ago

}

It's worked on me.

giovankabisano commented 6 years ago

Thanks, that solve my problem

sharjeel-ayubi commented 6 years ago

@dikixeranta The solution worked for me, Thanks.