{"action":"created","issue":{"url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/2306","repository_url":"https://api.github.com/repos/mikepenz/MaterialDrawer","labels_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/2306/labels{/name}","comments_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/2306/comments","events_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/2306/events","html_url":"https://github.com/mikepenz/MaterialDrawer/issues/2306","id":326749364,"node_id":"MDU6SXNzdWUzMjY3NDkzNjQ=","number":2306,"title":"gradle build error : ResultReceiver","user":{"login":"JustinMartinDev","id":36707217,"node_id":"MDQ6VXNlcjM2NzA3MjE3","avatar_url":"https://avatars3.githubusercontent.com/u/36707217?v=4","gravatar_id":"","url":"https://api.github.com/users/JustinMartinDev","html_url":"https://github.com/JustinMartinDev","followers_url":"https://api.github.com/users/JustinMartinDev/followers","following_url":"https://api.github.com/users/JustinMartinDev/following{/other_user}","gists_url":"https://api.github.com/users/JustinMartinDev/gists{/gist_id}","starred_url":"https://api.github.com/users/JustinMartinDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JustinMartinDev/subscriptions","organizations_url":"https://api.github.com/users/JustinMartinDev/orgs","repos_url":"https://api.github.com/users/JustinMartinDev/repos","events_url":"https://api.github.com/users/JustinMartinDev/events{/privacy}","received_events_url":"https://api.github.com/users/JustinMartinDev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-05-26T16:14:19Z","updated_at":"2018-06-18T08:34:15Z","closed_at":"2018-05-28T18:47:46Z","author_association":"NONE","body":"## About this issue\r\n\r\nHello, when i'm trying to build my project, i got this error : \r\n```\r\nProgram type already present: android.support.v4.os.ResultReceiver$1\r\nMessage{kind=ERROR, text=Program type already present: android.support.v4.os.ResultReceiver$1, sources=[Unknown source file], tool name=Optional.of(D8)}\r\n```\r\nmy gradle (yes a use lot of libraries 😞) \r\nbuild.gradle (Porject: PortADIIL) : \r\n\r\n```\r\n// Top-level build file where you can add configuration options common to all sub-projects/modules.\r\n\r\nbuildscript {\r\n    ext {\r\n        setup = [\r\n                compileSdk: 'android-P',\r\n                buildTools: \"27.0.3\",\r\n                minSdk    : 21,\r\n                targetSdk : 27\r\n        ]\r\n\r\n        versions = [\r\n                supportLib: \"28.0.0-alpha1\",\r\n                googleLib: \"15.0.0\"\r\n        ]\r\n    }\r\n\r\n    repositories {\r\n        google()\r\n        mavenCentral()\r\n        jcenter()\r\n        maven {url \"https://jitpack.io\"}\r\n        maven {url 'https://maven.fabric.io/public'}\r\n    }\r\n    dependencies {\r\n        classpath 'com.android.tools.build:gradle:3.1.2'\r\n        classpath 'io.fabric.tools:gradle:1.25.1'\r\n        // NOTE: Do not place your application dependencies here; they belong\r\n        // in the individual module build.gradle files\r\n        classpath 'com.google.gms:google-services:3.3.1'\r\n    }\r\n}\r\n\r\nallprojects {\r\n    repositories {\r\n        jcenter()\r\n        google()\r\n        maven { url 'https://maven.google.com/' }\r\n        maven { url \"https://oss.sonatype.org/content/repositories/snapshots/\" }\r\n        maven { url 'http://github.com/wada811/Android-Material-Design-Colors/raw/master/repository/' }\r\n    }\r\n}\r\n\r\ntask clean(type: Delete) {\r\n    delete rootProject.buildDir\r\n}\r\n```\r\nbuild.gradle (Module: app) :\r\n```\r\napply plugin: 'com.android.application'\r\napply plugin: 'io.fabric'\r\n\r\nandroid {\r\n    compileSdkVersion setup.compileSdk\r\n    buildToolsVersion  setup.buildTools\r\n    defaultConfig {\r\n        applicationId \"justin_martin.portadiil\"\r\n        multiDexEnabled true\r\n        minSdkVersion setup.minSdk\r\n        targetSdkVersion setup.minSdk\r\n        versionCode 5\r\n        versionName \"Alpha 0.3.0\"\r\n        testInstrumentationRunner \"android.support.test.runner.AndroidJUnitRunner\"\r\n        vectorDrawables.useSupportLibrary = true\r\n    }\r\n    buildTypes {\r\n        release {\r\n            minifyEnabled false\r\n            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'\r\n        }\r\n    }\r\n    productFlavors {\r\n    }\r\n}\r\n\r\ndependencies {\r\n    implementation fileTree(include: ['*.jar'], dir: 'libs')\r\n\r\n    api 'androidx.appcompat:appcompat:1.0.0-alpha1'\r\n\r\n    implementation(\"com.mikepenz:materialdrawer:6.0.7@aar\") {\r\n        transitive = true\r\n    }\r\n\r\n    implementation('com.crashlytics.sdk.android:crashlytics:2.9.0@aar') {\r\n        transitive = true\r\n    }\r\n\r\n    implementation 'de.hdodenhof:circleimageview:2.2.0'\r\n    implementation 'com.google.zxing:core:3.3.0'\r\n    implementation 'net.sf.biweekly:biweekly:0.6.1'\r\n    implementation 'com.afollestad.material-dialogs:core:0.9.6.0'\r\n    implementation 'net.fredericosilva:showTipsView:1.0.4'\r\n    implementation 'com.thebluealliance:spectrum:0.7.1'\r\n    implementation 'com.github.dmytrodanylyk.android-process-button:library:1.0.4'\r\n    implementation 'com.sackcentury:shinebutton:0.2.0'\r\n    implementation 'com.journeyapps:zxing-android-embedded:3.5.0'\r\n    implementation 'com.roger.catloadinglibrary:catloadinglibrary:1.0.1'\r\n    implementation 'com.github.rey5137:material:1.2.4'\r\n    implementation 'com.getbase:floatingactionbutton:1.10.1'\r\n    implementation 'nl.dionsegijn:konfetti:1.1.0'\r\n    implementation 'com.borax12.materialdaterangepicker:library:1.9'\r\n    implementation 'com.eftimoff:android-pathview:1.0.8@aar'\r\n    implementation \"com.google.android.gms:play-services-maps:15.0.1\"\r\n\r\n    implementation \"com.google.firebase:firebase-config:16.0.0\"\r\n    implementation \"com.google.firebase:firebase-core:16.0.0\"\r\n    implementation \"com.google.firebase:firebase-database:16.0.1\"\r\n    implementation \"com.google.firebase:firebase-auth:16.0.1\"\r\n    implementation \"com.google.firebase:firebase-messaging:17.0.0\"\r\n\r\n    implementation 'com.google.code.gson:gson:2.8.2'\r\n    implementation 'com.firebaseui:firebase-ui-database:3.3.1'\r\n    implementation 'com.android.volley:volley:1.1.0'\r\n\r\n    implementation 'com.mikepenz:google-material-typeface:3.0.1.2.original@aar'\r\n    implementation 'com.mikepenz:fontawesome-typeface:5.0.6.0@aar'\r\n    implementation \"com.mikepenz:iconics-core:3.0.3@aar\"\r\n    implementation 'com.google.android.material:material:1.0.0-alpha1'\r\n    implementation 'com.mikepenz:crossfader:1.5.2@aar'\r\n\r\n    androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0-alpha1', {\r\n        exclude group: 'com.android.support', module: 'support-annotations'\r\n    })\r\n    testImplementation 'junit:junit:4.12'\r\n}\r\n\r\nsubprojects {\r\n    gradle.projectsEvaluated {\r\n        tasks.withType(Compile) {\r\n            options.compilerArgs << \"-Xlint:deprecation\"\r\n        }\r\n    }\r\n}\r\n\r\n\r\napply plugin: 'com.google.gms.google-services'\r\n```\r\nmy gradle-wrapper.properties :\r\n```\r\ndistributionBase=GRADLE_USER_HOME\r\ndistributionPath=wrapper/dists\r\nzipStoreBase=GRADLE_USER_HOME\r\nzipStorePath=wrapper/dists\r\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-4.4-all.zip\r\n```\r\nmy gradle.properties :\r\n```\r\nandroid.useAndroidX = true\r\nandroid.enableJetifier = true\r\n```\r\n\r\nI find this on Stackoverflow.com [issue](https://stackoverflow.com/questions/50387207/error-while-merging-dex-program-type-already-present-android-support-v4-os-resu) but I don't know how to solve my issue with it.\r\n\r\nIf anyone can save me (i'm on this issue since one week)"},"comment":{"url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/comments/397981135","html_url":"https://github.com/mikepenz/MaterialDrawer/issues/2306#issuecomment-397981135","issue_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/2306","id":397981135,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Nzk4MTEzNQ==","user":{"login":"chlegou","id":26279667,"node_id":"MDQ6VXNlcjI2Mjc5NjY3","avatar_url":"https://avatars0.githubusercontent.com/u/26279667?v=4","gravatar_id":"","url":"https://api.github.com/users/chlegou","html_url":"https://github.com/chlegou","followers_url":"https://api.github.com/users/chlegou/followers","following_url":"https://api.github.com/users/chlegou/following{/other_user}","gists_url":"https://api.github.com/users/chlegou/gists{/gist_id}","starred_url":"https://api.github.com/users/chlegou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chlegou/subscriptions","organizations_url":"https://api.github.com/users/chlegou/orgs","repos_url":"https://api.github.com/users/chlegou/repos","events_url":"https://api.github.com/users/chlegou/events{/privacy}","received_events_url":"https://api.github.com/users/chlegou/received_events","type":"User","site_admin":false},"created_at":"2018-06-18T08:34:15Z","updated_at":"2018-06-18T08:34:15Z","author_association":"NONE","body":"@mikepenz but i think this is the only solution for using the material components for now. so we have to adapt or exclude."}}
{"actor":{"display_login":"chlegou"}}