{"action":"created","issue":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/3098","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/3098/labels{/name}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/3098/comments","events_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/3098/events","html_url":"https://github.com/wordpress-mobile/WordPress-Android/pull/3098","id":103144558,"number":3098,"title":"Fixing build for gradle 1.3.1","user":{"login":"kwonye","id":1158819,"avatar_url":"https://avatars.githubusercontent.com/u/1158819?v=3","gravatar_id":"","url":"https://api.github.com/users/kwonye","html_url":"https://github.com/kwonye","followers_url":"https://api.github.com/users/kwonye/followers","following_url":"https://api.github.com/users/kwonye/following{/other_user}","gists_url":"https://api.github.com/users/kwonye/gists{/gist_id}","starred_url":"https://api.github.com/users/kwonye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwonye/subscriptions","organizations_url":"https://api.github.com/users/kwonye/orgs","repos_url":"https://api.github.com/users/kwonye/repos","events_url":"https://api.github.com/users/kwonye/events{/privacy}","received_events_url":"https://api.github.com/users/kwonye/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"maxme","id":40213,"avatar_url":"https://avatars.githubusercontent.com/u/40213?v=3","gravatar_id":"","url":"https://api.github.com/users/maxme","html_url":"https://github.com/maxme","followers_url":"https://api.github.com/users/maxme/followers","following_url":"https://api.github.com/users/maxme/following{/other_user}","gists_url":"https://api.github.com/users/maxme/gists{/gist_id}","starred_url":"https://api.github.com/users/maxme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxme/subscriptions","organizations_url":"https://api.github.com/users/maxme/orgs","repos_url":"https://api.github.com/users/maxme/repos","events_url":"https://api.github.com/users/maxme/events{/privacy}","received_events_url":"https://api.github.com/users/maxme/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/milestones/44","html_url":"https://github.com/wordpress-mobile/WordPress-Android/milestones/4.5","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/milestones/44/labels","id":1208149,"number":44,"title":"4.5","description":"","creator":{"login":"tonyr59h","id":4031052,"avatar_url":"https://avatars.githubusercontent.com/u/4031052?v=3","gravatar_id":"","url":"https://api.github.com/users/tonyr59h","html_url":"https://github.com/tonyr59h","followers_url":"https://api.github.com/users/tonyr59h/followers","following_url":"https://api.github.com/users/tonyr59h/following{/other_user}","gists_url":"https://api.github.com/users/tonyr59h/gists{/gist_id}","starred_url":"https://api.github.com/users/tonyr59h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonyr59h/subscriptions","organizations_url":"https://api.github.com/users/tonyr59h/orgs","repos_url":"https://api.github.com/users/tonyr59h/repos","events_url":"https://api.github.com/users/tonyr59h/events{/privacy}","received_events_url":"https://api.github.com/users/tonyr59h/received_events","type":"User","site_admin":false},"open_issues":29,"closed_issues":53,"state":"open","created_at":"2015-07-14T21:25:52Z","updated_at":"2015-08-26T00:42:28Z","due_on":"2015-09-22T00:00:00Z","closed_at":null},"comments":2,"created_at":"2015-08-26T00:33:22Z","updated_at":"2015-08-26T05:30:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/pulls/3098","html_url":"https://github.com/wordpress-mobile/WordPress-Android/pull/3098","diff_url":"https://github.com/wordpress-mobile/WordPress-Android/pull/3098.diff","patch_url":"https://github.com/wordpress-mobile/WordPress-Android/pull/3098.patch"},"body":"@maxme turns out the lint error wasn't what was stopping the build - it was proguard\r\n\r\n```\r\n:WordPress:proguardVanillaRelease\r\nNote: there were 7 duplicate class definitions.\r\n      (http://proguard.sourceforge.net/manual/troubleshooting.html#duplicateclass)\r\nWarning: com.mixpanel.android.mpmetrics.GCMReceiver: can't find referenced method 'void setLatestEventInfo(android.content.Context,java.lang.CharSequence,java.lang.CharSequence,android.app.PendingIntent)' in library class android.app.Notification\r\nWarning: uk.co.senab.photoview.PhotoViewAttacher: can't find referenced method 'float sqrt(float)' in library class android.util.FloatMath\r\nWarning: uk.co.senab.photoview.gestures.CupcakeGestureDetector: can't find referenced method 'float sqrt(float)' in library class android.util.FloatMath\r\nWarning: there were 3 unresolved references to library class members.\r\n         You probably need to update the library versions.\r\n         (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedlibraryclassmember)\r\nException while processing task \r\njava.io.IOException: Please correct the above warnings first.\r\n\tat proguard.Initializer.execute(Initializer.java:473)\r\n\tat proguard.ProGuard.initialize(ProGuard.java:233)\r\n\tat proguard.ProGuard.execute(ProGuard.java:98)\r\n\tat proguard.gradle.ProGuardTask.proguard(ProGuardTask.java:1074)\r\n\tat com.android.build.gradle.tasks.AndroidProGuardTask.doMinification(AndroidProGuardTask.java:139)\r\n\tat com.android.build.gradle.tasks.AndroidProGuardTask$1.run(AndroidProGuardTask.java:115)\r\n\tat com.android.builder.tasks.Job.runTask(Job.java:48)\r\n\tat com.android.build.gradle.tasks.SimpleWorkQueue$EmptyThreadContext.runTask(SimpleWorkQueue.java:41)\r\n\tat com.android.builder.tasks.WorkQueue.run(WorkQueue.java:227)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n```\r\n\r\nthis just disables proguard (which to my knowledge is safe, just results in a slightly larger apk)\r\n\r\nTo verify it isn't a lint error issue, you can add\r\n\r\n```\r\nlintOptions {\r\n    abortOnError false\r\n}\r\n```\r\n\r\ninto the project and the build will still fail regardless of whether or not there is a lint error.\r\n\r\nAs for the `WordPress-Utils` fixes, I am not sure whether to include them here or change them in the [wordpress-mobile/WordPress-Utils-Android](https://github.com/wordpress-mobile/WordPress-Utils-Android) repo."},"comment":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/comments/134835311","html_url":"https://github.com/wordpress-mobile/WordPress-Android/pull/3098#issuecomment-134835311","issue_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/3098","id":134835311,"user":{"login":"maxme","id":40213,"avatar_url":"https://avatars.githubusercontent.com/u/40213?v=3","gravatar_id":"","url":"https://api.github.com/users/maxme","html_url":"https://github.com/maxme","followers_url":"https://api.github.com/users/maxme/followers","following_url":"https://api.github.com/users/maxme/following{/other_user}","gists_url":"https://api.github.com/users/maxme/gists{/gist_id}","starred_url":"https://api.github.com/users/maxme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxme/subscriptions","organizations_url":"https://api.github.com/users/maxme/orgs","repos_url":"https://api.github.com/users/maxme/repos","events_url":"https://api.github.com/users/maxme/events{/privacy}","received_events_url":"https://api.github.com/users/maxme/received_events","type":"User","site_admin":false},"created_at":"2015-08-26T05:30:08Z","updated_at":"2015-08-26T05:30:08Z","body":"> As for the WordPress-Utils fixes, I am not sure whether to include them here or change them in the wordpress-mobile/WordPress-Utils-Android repo.\r\n\r\nIt's ok to fix it here, we have to push it to the subtree anyway."}}