{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/buck/issues/326","labels_url":"https://api.github.com/repos/facebook/buck/issues/326/labels{/name}","comments_url":"https://api.github.com/repos/facebook/buck/issues/326/comments","events_url":"https://api.github.com/repos/facebook/buck/issues/326/events","html_url":"https://github.com/facebook/buck/issues/326","id":82578230,"number":326,"title":"New android tools: parsing version string \"23.0.0_rc1\"","user":{"login":"zserge","id":1911760,"avatar_url":"https://avatars.githubusercontent.com/u/1911760?v=3","gravatar_id":"","url":"https://api.github.com/users/zserge","html_url":"https://github.com/zserge","followers_url":"https://api.github.com/users/zserge/followers","following_url":"https://api.github.com/users/zserge/following{/other_user}","gists_url":"https://api.github.com/users/zserge/gists{/gist_id}","starred_url":"https://api.github.com/users/zserge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zserge/subscriptions","organizations_url":"https://api.github.com/users/zserge/orgs","repos_url":"https://api.github.com/users/zserge/repos","events_url":"https://api.github.com/users/zserge/events{/privacy}","received_events_url":"https://api.github.com/users/zserge/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/buck/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"sdwilsh","id":656602,"avatar_url":"https://avatars.githubusercontent.com/u/656602?v=3","gravatar_id":"","url":"https://api.github.com/users/sdwilsh","html_url":"https://github.com/sdwilsh","followers_url":"https://api.github.com/users/sdwilsh/followers","following_url":"https://api.github.com/users/sdwilsh/following{/other_user}","gists_url":"https://api.github.com/users/sdwilsh/gists{/gist_id}","starred_url":"https://api.github.com/users/sdwilsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdwilsh/subscriptions","organizations_url":"https://api.github.com/users/sdwilsh/orgs","repos_url":"https://api.github.com/users/sdwilsh/repos","events_url":"https://api.github.com/users/sdwilsh/events{/privacy}","received_events_url":"https://api.github.com/users/sdwilsh/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-05-29T20:38:31Z","updated_at":"2015-06-03T23:05:07Z","closed_at":"2015-06-03T23:03:38Z","body":"I've updated all android tools today and now when trying to build the project with Buck I get the following exception:\r\n\r\n```\r\njava.util.concurrent.ExecutionException: java.lang.RuntimeException: Invalid version string: 23.0.0_rc1\r\n        at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299)\r\n        at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:286)\r\n        at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116)\r\n        at com.facebook.buck.command.Build.executeBuild(Build.java:239)\r\n        at com.facebook.buck.command.Build.executeAndPrintFailuresToConsole(Build.java:270)\r\n        at com.facebook.buck.cli.BuildCommand.runWithoutHelp(BuildCommand.java:329)\r\n        at com.facebook.buck.cli.InstallCommand.runWithoutHelp(InstallCommand.java:127)\r\n        at com.facebook.buck.cli.AbstractCommand.run(AbstractCommand.java:133)\r\n        at com.facebook.buck.cli.BuckCommand.run(BuckCommand.java:80)\r\n        at com.facebook.buck.cli.Main.runMainWithExitCode(Main.java:652)\r\n        at com.facebook.buck.cli.Main.tryRunMainWithExitCode(Main.java:985)\r\n        at com.facebook.buck.cli.Main.runMainThenExit(Main.java:1042)\r\n        at com.facebook.buck.cli.Main.nailMain(Main.java:1071)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:497)\r\n        at com.martiansoftware.nailgun.NGSession.run(NGSession.java:338)\r\nCaused by: java.lang.RuntimeException: Invalid version string: 23.0.0_rc1\r\n        at com.facebook.buck.util.VersionStringComparator.compare(VersionStringComparator.java:36)\r\n        at com.facebook.buck.android.AndroidPlatformTarget$3.compare(AndroidPlatformTarget.java:334)\r\n        at com.facebook.buck.android.AndroidPlatformTarget$3.compare(AndroidPlatformTarget.java:1)\r\n        at java.util.TimSort.binarySort(TimSort.java:292)\r\n        at java.util.TimSort.sort(TimSort.java:217)\r\n        at java.util.Arrays.sort(Arrays.java:1512)\r\n        at java.util.ArrayList.sort(ArrayList.java:1454)\r\n        at java.util.Collections.sort(Collections.java:175)\r\n        at com.facebook.buck.android.AndroidPlatformTarget.pickNewestBuildToolsDir(AndroidPlatformTarget.java:329)\r\n        at com.facebook.buck.android.AndroidPlatformTarget.createFromDefaultDirectoryStructure(AndroidPlatformTarget.java:271)\r\n        at com.facebook.buck.android.AndroidPlatformTarget$AndroidWithGoogleApisFactory.newInstance(AndroidPlatformTarget.java:408)\r\n        at com.facebook.buck.android.AndroidPlatformTarget.getTargetForId(AndroidPlatformTarget.java:196)\r\n        at com.facebook.buck.cli.Main$1.get(Main.java:749)\r\n        at com.facebook.buck.cli.Main$1.get(Main.java:1)\r\n        at com.facebook.buck.step.ExecutionContext.getAndroidPlatformTarget(ExecutionContext.java:170)\r\n        at com.facebook.buck.android.AaptStep.getShellCommandInternal(AaptStep.java:94)\r\n        at com.facebook.buck.shell.ShellStep.getShellCommand(ShellStep.java:202)\r\n        at com.facebook.buck.shell.ShellStep.getDescription(ShellStep.java:233)\r\n        at com.facebook.buck.step.DefaultStepRunner.runStepForBuildTarget(DefaultStepRunner.java:56)\r\n        at com.facebook.buck.rules.CachingBuildEngine.executeCommandsNowThatDepsAreBuilt(CachingBuildEngine.java:616)\r\n        at com.facebook.buck.rules.CachingBuildEngine.buildOnceDepsAreBuilt(CachingBuildEngine.java:431)\r\n        at com.facebook.buck.rules.CachingBuildEngine.access$3(CachingBuildEngine.java:349)\r\n        at com.facebook.buck.rules.CachingBuildEngine$1.onSuccess(CachingBuildEngine.java:202)\r\n        at com.facebook.buck.rules.CachingBuildEngine$1.onSuccess(CachingBuildEngine.java:1)\r\n        at com.facebook.buck.util.concurrent.MoreFutures$1.onSuccess(MoreFutures.java:130)\r\n        at com.google.common.util.concurrent.Futures$6.run(Futures.java:1319)\r\n        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n        at java.lang.Thread.run(Thread.java:745)\r\n```\r\n\r\nLooks like the regexp used in VersionStringComparator doesn't fit for the new versioning format."},"comment":{"url":"https://api.github.com/repos/facebook/buck/issues/comments/108639984","html_url":"https://github.com/facebook/buck/issues/326#issuecomment-108639984","issue_url":"https://api.github.com/repos/facebook/buck/issues/326","id":108639984,"user":{"login":"sdwilsh","id":656602,"avatar_url":"https://avatars.githubusercontent.com/u/656602?v=3","gravatar_id":"","url":"https://api.github.com/users/sdwilsh","html_url":"https://github.com/sdwilsh","followers_url":"https://api.github.com/users/sdwilsh/followers","following_url":"https://api.github.com/users/sdwilsh/following{/other_user}","gists_url":"https://api.github.com/users/sdwilsh/gists{/gist_id}","starred_url":"https://api.github.com/users/sdwilsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdwilsh/subscriptions","organizations_url":"https://api.github.com/users/sdwilsh/orgs","repos_url":"https://api.github.com/users/sdwilsh/repos","events_url":"https://api.github.com/users/sdwilsh/events{/privacy}","received_events_url":"https://api.github.com/users/sdwilsh/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T23:05:07Z","updated_at":"2015-06-03T23:05:07Z","body":"Thanks for the report.  Let me know if you are having trouble with it still."}}