<@U3QUC50GK> project ou module?
# android
t
@bachhuberdesign project ou module?
b
Module
Here's what I use :
Copy code
android {
    packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/rxjava.properties'
    }
}
t
Error:(43, 0) Could not find method packagingOptions() for arguments [build_dfh3g8jxkzn7t1qi0cjy0m4jf$_run_closure3@4242e8a9] on project
b
Paste your build.gradle, sounds like a syntax issue
t
apply plugin: 'com.android.library' apply plugin: 'kotlin-android' apply plugin: 'com.getkeepsafe.dexcount' apply plugin: 'kotlin-kapt' apply plugin: 'kotlin-android-extensions' android { compileSdkVersion 26 defaultConfig { minSdkVersion 21 targetSdkVersion 26 versionCode 1 versionName "1.0" flavorDimensions "default" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } productFlavors { prod { } staging { } } } repositories { mavenCentral() maven { url 'https://github.com/uPhyca/stetho-realm/raw/master/maven-repo' } } packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/NOTICE' exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/NOTICE.txt' exclude 'META-INF/rxjava.properties' } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.supportappcompat v726.1.0' testImplementation 'junitjunit4.12' androidTestImplementation 'com.android.support.test🏃1.0.1' androidTestImplementation 'com.android.support.test.espressoespresso core3.0.1' implementation "org.jetbrains.kotlinkotlin stdlib jre7$kotlin_version" kapt "com.google.daggerdagger compiler$daggerVersion" provided 'org.glassfishjavax.annotation10.0-b28' compile "com.google.daggerdagger$daggerVersion" annotationProcessor "com.google.daggerdagger compiler$daggerVersion" compile "io.reactivexrxandroid$rxAndroidVersion" compile "io.reactivexrxkotlin$rxKotlinVersion" compile "com.squareup.retrofit2retrofit$retrofitVersion" compile "com.squareup.retrofit2adapter rxjava$retrofitVersion" compile "com.squareup.retrofit2converter gson$retrofitVersion" compile "com.squareup.okhttp3logging interceptor$okHttpVersion" kapt "com.github.Raizlabs.DBFlowdbflow processor$dbFlowVersion" compile "com.github.Raizlabs.DBFlowdbflow core$dbFlowVersion" compile "com.github.Raizlabs.DBFlowdbflow$dbFlowVersion" compile "com.github.Raizlabs.DBFlowdbflow kotlinextensions$dbFlowVersion@aar" compile "com.github.Raizlabs.DBFlowdbflow rx$dbFlowVersion" compile "com.github.Raizlabs.DBFlowdbflow rx kotlinextensions$dbFlowVersion" // RXJava 2 support compile "com.github.Raizlabs.DBFlowdbflow rx2$dbFlowVersion" // RXJava 2 Kotlin Extensions Support compile "com.github.Raizlabs.DBFlowdbflow rx2 kotlinextensions$dbFlowVersion" }
b
packagingOptions needs to go under android { }
t
This solution did not solve the problem.
🙁