{"action":"created","issue":{"url":"https://api.github.com/repos/firebase/quickstart-android/issues/75","repository_url":"https://api.github.com/repos/firebase/quickstart-android","labels_url":"https://api.github.com/repos/firebase/quickstart-android/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/firebase/quickstart-android/issues/75/comments","events_url":"https://api.github.com/repos/firebase/quickstart-android/issues/75/events","html_url":"https://github.com/firebase/quickstart-android/issues/75","id":164135150,"number":75,"title":"Gradle build process failed with \"minifyEnabled\" - Proguard","user":{"login":"dsdebastiani","id":5443979,"avatar_url":"https://avatars.githubusercontent.com/u/5443979?v=3","gravatar_id":"","url":"https://api.github.com/users/dsdebastiani","html_url":"https://github.com/dsdebastiani","followers_url":"https://api.github.com/users/dsdebastiani/followers","following_url":"https://api.github.com/users/dsdebastiani/following{/other_user}","gists_url":"https://api.github.com/users/dsdebastiani/gists{/gist_id}","starred_url":"https://api.github.com/users/dsdebastiani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsdebastiani/subscriptions","organizations_url":"https://api.github.com/users/dsdebastiani/orgs","repos_url":"https://api.github.com/users/dsdebastiani/repos","events_url":"https://api.github.com/users/dsdebastiani/events{/privacy}","received_events_url":"https://api.github.com/users/dsdebastiani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-06T17:50:26Z","updated_at":"2016-07-06T17:56:06Z","closed_at":null,"body":"I've got received this error when ```minifyEnabled``` is ```true```:\r\n```\r\nError:Execution failed for task ':app:transformClassesWithNewClassShrinkerForDebug'.\r\n> [PROJECT_PATH]/app/build/intermediates/exploded-aar/com.google.firebase/firebase-common/9.2.0/proguard.txt line 37:14 no viable alternative at input 'com.google.android.gms.common.util.DynamiteApi'\r\n```\r\n\r\nproject build.gradle:\r\n```\r\nbuildscript {\r\n    repositories {\r\n        jcenter()\r\n    }\r\n    dependencies {\r\n        classpath 'com.android.tools.build:gradle:2.1.2'\r\n        classpath \"com.google.gms:google-services:3.0.0\"\r\n\r\n        // NOTE: Do not place your application dependencies here; they belong\r\n        // in the individual module build.gradle files\r\n    }\r\n}\r\n\r\nallprojects {\r\n    repositories {\r\n        jcenter()\r\n    }\r\n}\r\n\r\ntask clean(type: Delete) {\r\n    delete rootProject.buildDir\r\n}\r\n```\r\n\r\nApp build.gradle:\r\n```\r\nbuildscript {\r\n    repositories {\r\n        jcenter()\r\n    }\r\n}\r\n\r\napply plugin: 'com.android.application'\r\n\r\nandroid {\r\n    compileSdkVersion 24\r\n    buildToolsVersion '24.0.0'\r\n\r\n    defaultConfig {\r\n        applicationId \"MY_APP_ID\"\r\n        minSdkVersion 21\r\n        targetSdkVersion 24\r\n        versionCode 1\r\n        versionName \"1.0.0\"\r\n        vectorDrawables.useSupportLibrary = true\r\n    }\r\n    aaptOptions {\r\n        additionalParameters \"--no-version-vectors\"\r\n    }\r\n    buildTypes {\r\n        debug {\r\n            minifyEnabled true\r\n            useProguard false\r\n            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'\r\n        }\r\n        release {\r\n            minifyEnabled true\r\n            useProguard true\r\n            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'\r\n\r\n        }\r\n    }\r\n}\r\n\r\ndependencies {\r\n    compile \"com.android.support:support-v4:24.0.0\"\r\n    compile \"com.android.support:appcompat-v7:24.0.0\"\r\n    compile \"com.android.support:recyclerview-v7:24.0.0\"\r\n    compile \"com.android.support:cardview-v7:24.0.0\"\r\n    compile \"com.android.support:design:24.0.0\"\r\n    compile \"com.android.support:support-annotations:24.0.0\"\r\n // ... others libs\r\n    compile \"com.google.firebase:firebase-messaging:9.2.0\"\r\n}\r\n\r\napply plugin: 'com.google.gms.google-services'\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/firebase/quickstart-android/issues/comments/230852996","html_url":"https://github.com/firebase/quickstart-android/issues/75#issuecomment-230852996","issue_url":"https://api.github.com/repos/firebase/quickstart-android/issues/75","id":230852996,"user":{"login":"samtstern","id":8466666,"avatar_url":"https://avatars.githubusercontent.com/u/8466666?v=3","gravatar_id":"","url":"https://api.github.com/users/samtstern","html_url":"https://github.com/samtstern","followers_url":"https://api.github.com/users/samtstern/followers","following_url":"https://api.github.com/users/samtstern/following{/other_user}","gists_url":"https://api.github.com/users/samtstern/gists{/gist_id}","starred_url":"https://api.github.com/users/samtstern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samtstern/subscriptions","organizations_url":"https://api.github.com/users/samtstern/orgs","repos_url":"https://api.github.com/users/samtstern/repos","events_url":"https://api.github.com/users/samtstern/events{/privacy}","received_events_url":"https://api.github.com/users/samtstern/received_events","type":"User","site_admin":false},"created_at":"2016-07-06T17:56:06Z","updated_at":"2016-07-06T17:56:06Z","body":"@dsdebastiani this is a known issue (recently discovered) that the `9.2.0` client libraries do not work with the Jack compiler or the new Android class shrinker.  While we work on a fix, you have the following options:\r\n\r\n  * Go back to the 'stable' android compiler\r\n  * Use the `9.0.2` libraries which are nearly identical to `9.2.0` minus a few small fixes"}}
{"actor":{"display_login":"samtstern"}}