Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modules cannot be loaded #16

Open
giovankabisano opened this issue Jul 26, 2018 · 5 comments
Open

Modules cannot be loaded #16

giovankabisano opened this issue Jul 26, 2018 · 5 comments

Comments

@giovankabisano
Copy link

giovankabisano commented Jul 26, 2018

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

@giovankabisano
Copy link
Author

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

@giovankabisano
Copy link
Author

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
Copy link

  • You can try to remark this :
    //compile project(':chat')

  • And this is my dependencies :
    dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'

    compile 'org.chat21.android:chat21:1.0.10'
    compile 'com.vanniktech:emoji-ios:0.5.1'

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

    compile 'com.android.support:appcompat-v7:27.+'
    compile 'com.android.support:design:27.+'
    compile 'com.android.support:cardview-v7:27.+'
    compile "com.google.android.gms:play-services:11.8.0"

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

    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

}

It's worked on me.

@giovankabisano
Copy link
Author

Thanks, that solve my problem

@sharjeel-ayubi
Copy link

@dikixeranta The solution worked for me, Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants