{"action":"closed","issue":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/2709","repository_url":"https://api.github.com/repos/bazelbuild/bazel","labels_url":"https://api.github.com/repos/bazelbuild/bazel/issues/2709/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/bazel/issues/2709/comments","events_url":"https://api.github.com/repos/bazelbuild/bazel/issues/2709/events","html_url":"https://github.com/bazelbuild/bazel/issues/2709","id":215452057,"number":2709,"title":"Android malformed resources crashes with NoSuchMethodError","user":{"login":"aj-michael","id":7756476,"avatar_url":"https://avatars1.githubusercontent.com/u/7756476?v=3","gravatar_id":"","url":"https://api.github.com/users/aj-michael","html_url":"https://github.com/aj-michael","followers_url":"https://api.github.com/users/aj-michael/followers","following_url":"https://api.github.com/users/aj-michael/following{/other_user}","gists_url":"https://api.github.com/users/aj-michael/gists{/gist_id}","starred_url":"https://api.github.com/users/aj-michael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aj-michael/subscriptions","organizations_url":"https://api.github.com/users/aj-michael/orgs","repos_url":"https://api.github.com/users/aj-michael/repos","events_url":"https://api.github.com/users/aj-michael/events{/privacy}","received_events_url":"https://api.github.com/users/aj-michael/received_events","type":"User","site_admin":false},"labels":[{"id":287826491,"url":"https://api.github.com/repos/bazelbuild/bazel/labels/category:%20rules%20%3E%20android","name":"category: rules > android","color":"d4c5f9","default":false},{"id":192364170,"url":"https://api.github.com/repos/bazelbuild/bazel/labels/P2","name":"P2","color":"e99695","default":false},{"id":106503259,"url":"https://api.github.com/repos/bazelbuild/bazel/labels/type:%20bug","name":"type: bug","color":"0052cc","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-20T15:12:57Z","updated_at":"2017-05-04T21:07:02Z","closed_at":"2017-05-04T21:07:02Z","body":"Please provide the following information. The more we know about your system and use case, the more easily and likely we can help.\r\n\r\n### Description of the problem / feature request / question:\r\nThe Android rules' tools depend on `//third_party:android_common_25_0_0` which contains jars that were built against Guava 17.0 (http://mvnrepository.com/artifact/com.android.tools/common/25.0.0). However, these tools depend on `//third_party:guava` which is Guava 21.0. This results in failures in the Android commons code at runtime.\r\n\r\n### If possible, provide a minimal example to reproduce the problem:\r\n```\r\n$ cat WORKSPACE\r\nandroid_sdk_repository(name = \"androidsdk\")\r\n\r\n$ cat BUILD\r\nandroid_binary(\r\n    name = \"bin\",\r\n    custom_package = \"foo\",\r\n    manifest = \"AndroidManifest.xml\",\r\n    resource_files = [\"res/values/strings.xml\"],\r\n)\r\n\r\n$ cat AndroidManifest.xml \r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\" package=\"foo\" />\r\n\r\n$ cat res/values/strings.xml\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<resources>\r\n  <not_string name=\"invalid_string\">Unrecognized tag</not_string>\r\n</resources>\r\n\r\n$ bazel build //:bin\r\nINFO: Found 1 target...\r\nERROR: /usr/local/google/home/ajmichael/playgrounds/resources-crash/BUILD:1:1: Processing Android resources for //:bin failed: Process exited with status 1 [sandboxed].\r\nException in thread \"main\" java.lang.NoSuchMethodError: com.google.common.base.Objects.firstNonNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;\r\n        at com.android.ide.common.res2.MergingException$Builder.build(MergingException.java:129)\r\n        at com.google.devtools.build.android.ParsedAndroidData$Builder.checkForErrors(ParsedAndroidData.java:89)\r\n        at com.google.devtools.build.android.ParsedAndroidData$Builder.build(ParsedAndroidData.java:98)\r\n        at com.google.devtools.build.android.ParsedAndroidData$ParsedAndroidDataBuildingPathWalker.createParsedAndroidData(ParsedAndroidData.java:218)\r\n        at com.google.devtools.build.android.ParsedAndroidData.from(ParsedAndroidData.java:354)\r\n        at com.google.devtools.build.android.AndroidResourceProcessor.mergeData(AndroidResourceProcessor.java:1131)\r\n        at com.google.devtools.build.android.AndroidResourceProcessingAction.main(AndroidResourceProcessingAction.java:248)\r\n        at com.google.devtools.build.android.ResourceProcessorBusyBox$Tool$1.call(ResourceProcessorBusyBox.java:53)\r\n        at com.google.devtools.build.android.ResourceProcessorBusyBox.main(ResourceProcessorBusyBox.java:137)\r\nUse --strategy=AndroidAapt=standalone to disable sandboxing for the failing actions.\r\nTarget //:bin failed to build\r\nUse --verbose_failures to see the command lines of failed build steps.\r\nINFO: Elapsed time: 0.622s, Critical Path: 0.43s\r\n```\r\n\r\n\r\n### Environment info\r\n* Operating System:\r\nUbuntu 14.04\r\n\r\n* Bazel version (output of `bazel info release`):\r\nrelease 0.4.5\r\n\r\n###  Have you found anything relevant by searching the web? (e.g. GitHub issues, email threads in the [bazel-discuss@googlegroups.com](https://groups.google.com/forum/#!forum/bazel-discuss) archive)\r\n\r\nNo"}}
{"actor":{"display_login":"bazel-io"}}