{"action":"opened","issue":{"url":"https://api.github.com/repos/googlesamples/android-Camera2Basic/issues/111","repository_url":"https://api.github.com/repos/googlesamples/android-Camera2Basic","labels_url":"https://api.github.com/repos/googlesamples/android-Camera2Basic/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/googlesamples/android-Camera2Basic/issues/111/comments","events_url":"https://api.github.com/repos/googlesamples/android-Camera2Basic/issues/111/events","html_url":"https://github.com/googlesamples/android-Camera2Basic/issues/111","id":330825508,"node_id":"MDU6SXNzdWUzMzA4MjU1MDg=","number":111,"title":"gradle build for project failing.","user":{"login":"nutsiepully","id":1307460,"node_id":"MDQ6VXNlcjEzMDc0NjA=","avatar_url":"https://avatars3.githubusercontent.com/u/1307460?v=4","gravatar_id":"","url":"https://api.github.com/users/nutsiepully","html_url":"https://github.com/nutsiepully","followers_url":"https://api.github.com/users/nutsiepully/followers","following_url":"https://api.github.com/users/nutsiepully/following{/other_user}","gists_url":"https://api.github.com/users/nutsiepully/gists{/gist_id}","starred_url":"https://api.github.com/users/nutsiepully/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nutsiepully/subscriptions","organizations_url":"https://api.github.com/users/nutsiepully/orgs","repos_url":"https://api.github.com/users/nutsiepully/repos","events_url":"https://api.github.com/users/nutsiepully/events{/privacy}","received_events_url":"https://api.github.com/users/nutsiepully/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-08T22:58:59Z","updated_at":"2018-06-08T22:58:59Z","closed_at":null,"author_association":"NONE","body":"\r\nThe build was failing for me on a simple 'clone + build' on my machine. The build complained it couldn't find 'runtime' and was unable to find android/arch/lifecycle in jcenter.\r\n\r\nAfter messing around with the gradle I was able to fix it by modifying the repositories config to put google() on top of jcenter()\r\n\r\nIt's quite odd that this should fix the problem. I would've expected the ordering of the repos to not matter.\r\n\r\nPatch used\r\n--\r\ndiff --git a/Application/build.gradle b/Application/build.gradle\r\nindex 3cdc07d..fc80b73 100644\r\n--- a/Application/build.gradle\r\n+++ b/Application/build.gradle\r\n@@ -13,8 +13,8 @@ buildscript {\r\n apply plugin: 'com.android.application'\r\n \r\n repositories {\r\n-    jcenter()\r\n     google()\r\n+    jcenter()\r\n }\r\n"}}
{"actor":{"display_login":"nutsiepully"}}