{"action":"created","issue":{"url":"https://api.github.com/repos/JakeWharton/u2020/issues/216","labels_url":"https://api.github.com/repos/JakeWharton/u2020/issues/216/labels{/name}","comments_url":"https://api.github.com/repos/JakeWharton/u2020/issues/216/comments","events_url":"https://api.github.com/repos/JakeWharton/u2020/issues/216/events","html_url":"https://github.com/JakeWharton/u2020/issues/216","id":111918576,"number":216,"title":"Unable to build productionRelease","user":{"login":"matthewmichihara","id":79073,"avatar_url":"https://avatars.githubusercontent.com/u/79073?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewmichihara","html_url":"https://github.com/matthewmichihara","followers_url":"https://api.github.com/users/matthewmichihara/followers","following_url":"https://api.github.com/users/matthewmichihara/following{/other_user}","gists_url":"https://api.github.com/users/matthewmichihara/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewmichihara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewmichihara/subscriptions","organizations_url":"https://api.github.com/users/matthewmichihara/orgs","repos_url":"https://api.github.com/users/matthewmichihara/repos","events_url":"https://api.github.com/users/matthewmichihara/events{/privacy}","received_events_url":"https://api.github.com/users/matthewmichihara/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-16T21:59:35Z","updated_at":"2015-10-17T00:03:23Z","closed_at":null,"body":"It looks like lint isn't happy with passing a raw number to `res.getColor/getDimension`\r\n```\r\n› ./gradlew assembleProductionRelease\r\n:preBuild UP-TO-DATE\r\n:preProductionReleaseBuild UP-TO-DATE\r\n:checkProductionReleaseManifest\r\n:preInternalDebugBuild UP-TO-DATE\r\n:preInternalReleaseBuild UP-TO-DATE\r\n:preProductionDebugBuild UP-TO-DATE\r\n:prepareComAndroidSupportAppcompatV72301Library UP-TO-DATE\r\n:prepareComAndroidSupportDesign2301Library UP-TO-DATE\r\n:prepareComAndroidSupportRecyclerviewV72301Library UP-TO-DATE\r\n:prepareComAndroidSupportSupportV42301Library UP-TO-DATE\r\n:prepareComF2prateekRxPreferencesRxPreferences100Library UP-TO-DATE\r\n:prepareComJakewhartonRxbindingRxbinding020Library UP-TO-DATE\r\n:prepareComJakewhartonThreetenabpThreetenabp102Library UP-TO-DATE\r\n:prepareComJakewhartonTimberTimber401Library UP-TO-DATE\r\n:prepareComSquareupLeakcanaryLeakcanaryAndroidNoOp131Library UP-TO-DATE\r\n:prepareIoReactivexRxandroid101Library UP-TO-DATE\r\n:prepareProductionReleaseDependencies\r\n:compileProductionReleaseAidl UP-TO-DATE\r\n:compileProductionReleaseRenderscript UP-TO-DATE\r\n:generateProductionReleaseBuildConfig\r\n:generateProductionReleaseAssets UP-TO-DATE\r\n:mergeProductionReleaseAssets UP-TO-DATE\r\n:generateProductionReleaseResValues UP-TO-DATE\r\n:generateProductionReleaseResources UP-TO-DATE\r\n:mergeProductionReleaseResources UP-TO-DATE\r\n:processProductionReleaseManifest UP-TO-DATE\r\n:processProductionReleaseResources UP-TO-DATE\r\n:generateProductionReleaseSources\r\n:processProductionReleaseJavaRes UP-TO-DATE\r\n:compileProductionReleaseJavaWithJavac\r\nNote: Some input files use or override a deprecated API.\r\nNote: Recompile with -Xlint:deprecation for details.\r\n:compileRetrolambdaProductionRelease\r\n:compileProductionReleaseNdk UP-TO-DATE\r\n:compileProductionReleaseSources\r\n:lintVitalProductionRelease\r\n/Users/mattm/Code/u2020/build/generated/source/apt/production/release/com/jakewharton/u2020/ui/MainActivity$$ViewBinder.java:19: Error: Expected resource of type color [ResourceType]\r\n    target.statusBarColor = res.getColor(2131361859);\r\n                                         ~~~~~~~~~~\r\n/Users/mattm/Code/u2020/build/generated/source/apt/production/release/com/jakewharton/u2020/ui/trending/TrendingView$$ViewBinder.java:41: Error: Expected resource of type dimen [ResourceType]\r\n    target.dividerPaddingStart = res.getDimension(2131099747);\r\n                                                  ~~~~~~~~~~\r\n\r\n   Explanation for issues of type \"ResourceType\":\r\n   Ensures that resource id's passed to APIs are of the right type; for\r\n   example, calling Resources.getColor(R.string.name) is wrong.\r\n\r\n2 errors, 0 warnings\r\n:lintVitalProductionRelease FAILED\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nExecution failed for task ':lintVitalProductionRelease'.\r\n> Lint found fatal errors while assembling a release target.\r\n\r\n  To proceed, either fix the issues identified by lint, or modify your build script as follows:\r\n  ...\r\n  android {\r\n      lintOptions {\r\n          checkReleaseBuilds false\r\n          // Or, if you prefer, you can continue to check for errors in release builds,\r\n          // but continue the build even when errors are found:\r\n          abortOnError false\r\n      }\r\n  }\r\n  ...\r\n\r\n* Try:\r\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.\r\n\r\nBUILD FAILED\r\n\r\nTotal time: 15.452 secs\r\n```"},"comment":{"url":"https://api.github.com/repos/JakeWharton/u2020/issues/comments/148868206","html_url":"https://github.com/JakeWharton/u2020/issues/216#issuecomment-148868206","issue_url":"https://api.github.com/repos/JakeWharton/u2020/issues/216","id":148868206,"user":{"login":"JakeWharton","id":66577,"avatar_url":"https://avatars.githubusercontent.com/u/66577?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeWharton","html_url":"https://github.com/JakeWharton","followers_url":"https://api.github.com/users/JakeWharton/followers","following_url":"https://api.github.com/users/JakeWharton/following{/other_user}","gists_url":"https://api.github.com/users/JakeWharton/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeWharton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeWharton/subscriptions","organizations_url":"https://api.github.com/users/JakeWharton/orgs","repos_url":"https://api.github.com/users/JakeWharton/repos","events_url":"https://api.github.com/users/JakeWharton/events{/privacy}","received_events_url":"https://api.github.com/users/JakeWharton/received_events","type":"User","site_admin":false},"created_at":"2015-10-17T00:03:23Z","updated_at":"2015-10-17T00:03:23Z","body":"Does a clean build fix it?"}}