{"action":"created","issue":{"url":"https://api.github.com/repos/OneBusAway/onebusaway-android/issues/849","repository_url":"https://api.github.com/repos/OneBusAway/onebusaway-android","labels_url":"https://api.github.com/repos/OneBusAway/onebusaway-android/issues/849/labels{/name}","comments_url":"https://api.github.com/repos/OneBusAway/onebusaway-android/issues/849/comments","events_url":"https://api.github.com/repos/OneBusAway/onebusaway-android/issues/849/events","html_url":"https://github.com/OneBusAway/onebusaway-android/issues/849","id":293615478,"number":849,"title":"Release builds are failing due to DuplicatePlatformClasses","user":{"login":"barbeau","id":928045,"avatar_url":"https://avatars0.githubusercontent.com/u/928045?v=4","gravatar_id":"","url":"https://api.github.com/users/barbeau","html_url":"https://github.com/barbeau","followers_url":"https://api.github.com/users/barbeau/followers","following_url":"https://api.github.com/users/barbeau/following{/other_user}","gists_url":"https://api.github.com/users/barbeau/gists{/gist_id}","starred_url":"https://api.github.com/users/barbeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barbeau/subscriptions","organizations_url":"https://api.github.com/users/barbeau/orgs","repos_url":"https://api.github.com/users/barbeau/repos","events_url":"https://api.github.com/users/barbeau/events{/privacy}","received_events_url":"https://api.github.com/users/barbeau/received_events","type":"User","site_admin":false},"labels":[{"id":42089238,"url":"https://api.github.com/repos/OneBusAway/onebusaway-android/labels/bug","name":"bug","color":"e11d21","default":true}],"state":"open","locked":false,"assignee":{"login":"barbeau","id":928045,"avatar_url":"https://avatars0.githubusercontent.com/u/928045?v=4","gravatar_id":"","url":"https://api.github.com/users/barbeau","html_url":"https://github.com/barbeau","followers_url":"https://api.github.com/users/barbeau/followers","following_url":"https://api.github.com/users/barbeau/following{/other_user}","gists_url":"https://api.github.com/users/barbeau/gists{/gist_id}","starred_url":"https://api.github.com/users/barbeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barbeau/subscriptions","organizations_url":"https://api.github.com/users/barbeau/orgs","repos_url":"https://api.github.com/users/barbeau/repos","events_url":"https://api.github.com/users/barbeau/events{/privacy}","received_events_url":"https://api.github.com/users/barbeau/received_events","type":"User","site_admin":false},"assignees":[{"login":"barbeau","id":928045,"avatar_url":"https://avatars0.githubusercontent.com/u/928045?v=4","gravatar_id":"","url":"https://api.github.com/users/barbeau","html_url":"https://github.com/barbeau","followers_url":"https://api.github.com/users/barbeau/followers","following_url":"https://api.github.com/users/barbeau/following{/other_user}","gists_url":"https://api.github.com/users/barbeau/gists{/gist_id}","starred_url":"https://api.github.com/users/barbeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barbeau/subscriptions","organizations_url":"https://api.github.com/users/barbeau/orgs","repos_url":"https://api.github.com/users/barbeau/repos","events_url":"https://api.github.com/users/barbeau/events{/privacy}","received_events_url":"https://api.github.com/users/barbeau/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/OneBusAway/onebusaway-android/milestones/6","html_url":"https://github.com/OneBusAway/onebusaway-android/milestone/6","labels_url":"https://api.github.com/repos/OneBusAway/onebusaway-android/milestones/6/labels","id":2366497,"number":6,"title":"v2.3.x","description":"Microsoft Embedded Social integration","creator":{"login":"barbeau","id":928045,"avatar_url":"https://avatars0.githubusercontent.com/u/928045?v=4","gravatar_id":"","url":"https://api.github.com/users/barbeau","html_url":"https://github.com/barbeau","followers_url":"https://api.github.com/users/barbeau/followers","following_url":"https://api.github.com/users/barbeau/following{/other_user}","gists_url":"https://api.github.com/users/barbeau/gists{/gist_id}","starred_url":"https://api.github.com/users/barbeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barbeau/subscriptions","organizations_url":"https://api.github.com/users/barbeau/orgs","repos_url":"https://api.github.com/users/barbeau/repos","events_url":"https://api.github.com/users/barbeau/events{/privacy}","received_events_url":"https://api.github.com/users/barbeau/received_events","type":"User","site_admin":false},"open_issues":41,"closed_issues":15,"state":"open","created_at":"2017-03-06T16:08:36Z","updated_at":"2018-02-01T22:43:16Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2018-02-01T17:21:44Z","updated_at":"2018-02-01T22:44:26Z","closed_at":null,"author_association":"OWNER","body":"**Summary:** \r\n\r\nWhen I run `gradlew assembleObaGoogleRelease`, I get the following:\r\n\r\n~~~\r\nE:\\Android_Studio\\onebusaway-android>gradlew clean assembleObaGoogleRelease\r\n\r\n> Configure project :onebusaway-android\r\nThe Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.\r\n        at build_efsagzar1z063af95y1c43hip.run(E:\\Android_Studio\\onebusaway-android\\onebusaway-android\\build.gradle:321)\r\n\r\n> Task :onebusaway-android:compileObaGoogleReleaseJavaWithJavac\r\nNote: Some input files use or override a deprecated API.\r\nNote: Recompile with -Xlint:deprecation for details.\r\nNote: Some input files use unchecked or unsafe operations.\r\nNote: Recompile with -Xlint:unchecked for details.\r\n\r\n> Task :onebusaway-android:lintVitalObaGoogleRelease\r\nE:\\Android_Studio\\onebusaway-android\\onebusaway-android\\build.gradle: Error: json defines classes that conflict with classes now provided by Android.\r\nSolutions include finding newer versions or alternative libraries that don't have the same problem (for example, for httpclient use HttpUrlConnection\r\nor okhttp instead), or repackaging the library using something like jarjar. [DuplicatePlatformClasses]\r\n\r\n   Explanation for issues of type \"DuplicatePlatformClasses\":\r\n   There are a number of libraries that duplicate not just functionality of\r\n   the Android platform but using the exact same class names as the ones\r\n   provided in Android -- for example the apache http classes. This can lead\r\n   to unexpected crashes.\r\n\r\n   To solve this, you need to either find a newer version of the library which\r\n   no longer has this problem, or to repackage the library (and all of its\r\n   dependencies) using something like the jarjar tool, or finally, rewriting\r\n   the code to use different APIs (for example, for http code, consider using\r\n   HttpUrlConnection or a library like okhttp.)\r\n\r\n1 errors, 0 warnings\r\n\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nExecution failed for task ':onebusaway-android:lintVitalObaGoogleRelease'.\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\n* Get more help at https://help.gradle.org\r\n\r\nBUILD FAILED in 1m 39s\r\n18 actionable tasks: 16 executed, 2 up-to-date\r\n\r\nE:\\Android_Studio\\onebusaway-android>\r\n~~~\r\n\r\nI'm guessing this is now being flagged as an error instead of a warning in v3 of the plugin.\r\n\r\n**Steps to reproduce:** \r\n\r\nRun `gradlew assembleObaGoogleRelease`\r\n\r\n**Expected behavior:** \r\n\r\nRelease build should execute, prompt you for a key password, and finish the release build\r\n\r\n**Observed behavior:** \r\n\r\nIt fails before getting to the key password with the above error message\r\n\r\n**Device and Android version:** \r\n\r\nN/A\r\n\r\n**Screenshots:** \r\n\r\nN/A"},"comment":{"url":"https://api.github.com/repos/OneBusAway/onebusaway-android/issues/comments/362427241","html_url":"https://github.com/OneBusAway/onebusaway-android/issues/849#issuecomment-362427241","issue_url":"https://api.github.com/repos/OneBusAway/onebusaway-android/issues/849","id":362427241,"user":{"login":"barbeau","id":928045,"avatar_url":"https://avatars0.githubusercontent.com/u/928045?v=4","gravatar_id":"","url":"https://api.github.com/users/barbeau","html_url":"https://github.com/barbeau","followers_url":"https://api.github.com/users/barbeau/followers","following_url":"https://api.github.com/users/barbeau/following{/other_user}","gists_url":"https://api.github.com/users/barbeau/gists{/gist_id}","starred_url":"https://api.github.com/users/barbeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barbeau/subscriptions","organizations_url":"https://api.github.com/users/barbeau/orgs","repos_url":"https://api.github.com/users/barbeau/repos","events_url":"https://api.github.com/users/barbeau/events{/privacy}","received_events_url":"https://api.github.com/users/barbeau/received_events","type":"User","site_admin":false},"created_at":"2018-02-01T22:44:26Z","updated_at":"2018-02-01T22:44:26Z","author_association":"OWNER","body":"I'm moving the `java.awt.HeadlessException` issues to https://github.com/OneBusAway/onebusaway-android/issues/850 so I can close out the `DuplicatePlatformClasses` issue in the master branch."}}
{"actor":{"display_login":"barbeau"}}