{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/buck/issues/372","labels_url":"https://api.github.com/repos/facebook/buck/issues/372/labels{/name}","comments_url":"https://api.github.com/repos/facebook/buck/issues/372/comments","events_url":"https://api.github.com/repos/facebook/buck/issues/372/events","html_url":"https://github.com/facebook/buck/issues/372","id":93477259,"number":372,"title":"Invalid resource type '<public>' in '/res/values/public.xml'","user":{"login":"youyuo","id":13216283,"avatar_url":"https://avatars.githubusercontent.com/u/13216283?v=3","gravatar_id":"","url":"https://api.github.com/users/youyuo","html_url":"https://github.com/youyuo","followers_url":"https://api.github.com/users/youyuo/followers","following_url":"https://api.github.com/users/youyuo/following{/other_user}","gists_url":"https://api.github.com/users/youyuo/gists{/gist_id}","starred_url":"https://api.github.com/users/youyuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youyuo/subscriptions","organizations_url":"https://api.github.com/users/youyuo/orgs","repos_url":"https://api.github.com/users/youyuo/repos","events_url":"https://api.github.com/users/youyuo/events{/privacy}","received_events_url":"https://api.github.com/users/youyuo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-07T08:56:45Z","updated_at":"2015-07-07T09:04:38Z","closed_at":null,"body":"I have run into problem when I use buck compile my project,\r\nand below is the 'public.xml' file contents,the command I have run,the error informatiom.\r\nthank you~\r\n\r\n'public.xml' file contents:\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<resources>\r\n    <public id=\"0x7f080023\" name=\"string1\" type=\"id\"/>\r\n    <public id=\"0x7f080024\" name=\"string2\" type=\"id\"/>\r\n    <public id=\"0x7f080025\" name=\"string3\" type=\"id\" />\r\n</resources>\r\n\r\ncommand: buck build app\r\n\r\nerror:\r\ncom.facebook.buck.android.aapt.MiniAapt$ResourceParseException: Invalid resource type '<public>' in '/res/values/public.xml'.\r\n\tat com.facebook.buck.android.aapt.MiniAapt.processValuesFile(MiniAapt.java:320)\r\n\tat com.facebook.buck.android.aapt.MiniAapt.processValues(MiniAapt.java:264)\r\n\tat com.facebook.buck.android.aapt.MiniAapt.collectResources(MiniAapt.java:219)\r\n\tat com.facebook.buck.android.aapt.MiniAapt.execute(MiniAapt.java:140)\r\n\tat com.facebook.buck.step.DefaultStepRunner.runStepForBuildTarget(DefaultStepRunner.java:62)\r\n\tat com.facebook.buck.rules.CachingBuildEngine.executeCommandsNowThatDepsAreBuilt(CachingBuildEngine.java:616)\r\n\tat com.facebook.buck.rules.CachingBuildEngine.buildOnceDepsAreBuilt(CachingBuildEngine.java:431)\r\n\tat com.facebook.buck.rules.CachingBuildEngine.access$3(CachingBuildEngine.java:349)\r\n\tat com.facebook.buck.rules.CachingBuildEngine$1.onSuccess(CachingBuildEngine.java:202)\r\n\tat com.facebook.buck.rules.CachingBuildEngine$1.onSuccess(CachingBuildEngine.java:1)\r\n\tat com.facebook.buck.util.concurrent.MoreFutures$1.onSuccess(MoreFutures.java:130)\r\n\tat com.google.common.util.concurrent.Futures$6.run(Futures.java:1319)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nBUILD FAILED: //app:res failed with exit code 1:\r\ngenerate_resource_ids\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/buck/issues/comments/119131879","html_url":"https://github.com/facebook/buck/issues/372#issuecomment-119131879","issue_url":"https://api.github.com/repos/facebook/buck/issues/372","id":119131879,"user":{"login":"youyuo","id":13216283,"avatar_url":"https://avatars.githubusercontent.com/u/13216283?v=3","gravatar_id":"","url":"https://api.github.com/users/youyuo","html_url":"https://github.com/youyuo","followers_url":"https://api.github.com/users/youyuo/followers","following_url":"https://api.github.com/users/youyuo/following{/other_user}","gists_url":"https://api.github.com/users/youyuo/gists{/gist_id}","starred_url":"https://api.github.com/users/youyuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youyuo/subscriptions","organizations_url":"https://api.github.com/users/youyuo/orgs","repos_url":"https://api.github.com/users/youyuo/repos","events_url":"https://api.github.com/users/youyuo/events{/privacy}","received_events_url":"https://api.github.com/users/youyuo/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T09:04:38Z","updated_at":"2015-07-07T09:04:38Z","body":"I found this code in file 'MiniAapt.java'\r\nif (!RESOURCE_TYPES.containsKey(resourceType)) {\r\n          throw new ResourceParseException(\r\n              \"Invalid resource type '<%s>' in '%s'.\",\r\n              resourceType,\r\n              valuesFile);\r\n        }"}}