{"action":"created","issue":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/1036","repository_url":"https://api.github.com/repos/bazelbuild/bazel","labels_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1036/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1036/comments","events_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1036/events","html_url":"https://github.com/bazelbuild/bazel/issues/1036","id":140339623,"number":1036,"title":"Trying to build the Android Demo","user":{"login":"islamoc","id":4500138,"avatar_url":"https://avatars.githubusercontent.com/u/4500138?v=3","gravatar_id":"","url":"https://api.github.com/users/islamoc","html_url":"https://github.com/islamoc","followers_url":"https://api.github.com/users/islamoc/followers","following_url":"https://api.github.com/users/islamoc/following{/other_user}","gists_url":"https://api.github.com/users/islamoc/gists{/gist_id}","starred_url":"https://api.github.com/users/islamoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/islamoc/subscriptions","organizations_url":"https://api.github.com/users/islamoc/orgs","repos_url":"https://api.github.com/users/islamoc/repos","events_url":"https://api.github.com/users/islamoc/events{/privacy}","received_events_url":"https://api.github.com/users/islamoc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bazelbuild/bazel/labels/Mobile","name":"Mobile","color":"bfd4f2"},{"url":"https://api.github.com/repos/bazelbuild/bazel/labels/P2","name":"P2","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-03-12T02:53:15Z","updated_at":"2016-03-16T19:55:48Z","closed_at":null,"body":"Hello I'm trying to build the Android Demo but I'm getting this error\r\n\r\nERROR: /home/islamoc/tensorflow/tensorflow/examples/android/BUILD:65:1: Processing resources failed: resources_processor failed: error executing command bazel-out/host/bin/external/bazel_tools/tools/android/resources_processor --buildToolsVersion 23.0.1 --aapt bazel-out/host/bin/external/androidsdk/aapt_binary --annotationJar ... (remaining 14 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.\r\nError: bazel-out/host/bin/external/androidsdk/aapt_binary: line 3: /root/.cache/bazel/_bazel_root/a492118e4b53c9510c58595e273faae6/tensorflow/bazel-out/host/bin/external/androidsdk/aapt_binary.runfiles/external/androidsdk/build-tools/23.0.1/aapt: No such file or directory\r\nError: bazel-out/host/bin/external/androidsdk/aapt_binary: line 3: /root/.cache/bazel/_bazel_root/a492118e4b53c9510c58595e273faae6/tensorflow/bazel-out/host/bin/external/androidsdk/aapt_binary.runfiles/external/androidsdk/build-tools/23.0.1/aapt: No such file or directory\r\nError: bazel-out/host/bin/external/androidsdk/aapt_binary: line 3: /root/.cache/bazel/_bazel_root/a492118e4b53c9510c58595e273faae6/tensorflow/bazel-out/host/bin/external/androidsdk/aapt_binary.runfiles/external/androidsdk/build-tools/23.0.1/aapt: No such file or directory\r\nError: bazel-out/host/bin/external/androidsdk/aapt_binary: line 3: /root/.cache/bazel/_bazel_root/a492118e4b53c9510c58595e273faae6/tensorflow/bazel-out/host/bin/external/androidsdk/aapt_binary.runfiles/external/androidsdk/build-tools/23.0.1/aapt: No such file or directory\r\nMar 12, 2016 2:48:29 AM com.google.devtools.build.android.AndroidResourceProcessingAction main\r\nSEVERE: Error during merging resources\r\nError: Failed to run command:\r\n        bazel-out/host/bin/external/androidsdk/aapt_binary s -i /tmp/android_resources_tmp3833908848337265106/tmp-deduplicated/tensorflow/examples/android/res/drawable-mdpi/ic_launcher.png -o /tmp/android_resources_tmp3833908848337265106/merged_resources/drawable-mdpi-v4/ic_launcher.png\r\nError Code:\r\n        1\r\nOutput:\r\n        bazel-out/host/bin/external/androidsdk/aapt_binary: line 3: /root/.cache/bazel/_bazel_root/a492118e4b53c9510c58595e273faae6/tensorflow/bazel-out/host/bin/external/androidsdk/aapt_binary.runfiles/external/androidsdk/build-tools/23.0.1/aapt: No such file or directory\r\n\r\n        at com.android.ide.common.res2.MergeWriter.end(MergeWriter.java:54)\r\n        at com.android.ide.common.res2.MergedResourceWriter.end(MergedResourceWriter.java:113)\r\n        at com.android.ide.common.res2.DataMerger.mergeData(DataMerger.java:291)\r\n        at com.android.ide.common.res2.ResourceMerger.mergeData(ResourceMerger.java:48)\r\n        at com.google.devtools.build.android.AndroidResourceProcessor.mergeData(AndroidResourceProcessor.java:390)\r\n        at com.google.devtools.build.android.AndroidResourceProcessingAction.main(AndroidResourceProcessingAction.java:321)\r\nCaused by: com.android.ide.common.internal.LoggedErrorException: Failed to run command:\r\n        bazel-out/host/bin/external/androidsdk/aapt_binary s -i /tmp/android_resources_tmp3833908848337265106/tmp-deduplicated/tensorflow/examples/android/res/drawable-mdpi/ic_launcher.png -o /tmp/android_resources_tmp3833908848337265106/merged_resources/drawable-mdpi-v4/ic_launcher.png\r\nError Code:\r\n        1\r\nOutput:\r\n        bazel-out/host/bin/external/androidsdk/aapt_binary: line 3: /root/.cache/bazel/_bazel_root/a492118e4b53c9510c58595e273faae6/tensorflow/bazel-out/host/bin/external/androidsdk/aapt_binary.runfiles/external/androidsdk/build-tools/23.0.1/aapt: No such file or directory\r\n\r\n        at com.android.ide.common.internal.CommandLineRunner.runCmdLine(CommandLineRunner.java:123)\r\n        at com.android.ide.common.internal.CommandLineRunner.runCmdLine(CommandLineRunner.java:96)\r\n        at com.android.ide.common.internal.AaptCruncher.crunchPng(AaptCruncher.java:58)\r\n        at com.android.ide.common.res2.MergedResourceWriter$1.call(MergedResourceWriter.java:188)\r\n        at com.android.ide.common.res2.MergedResourceWriter$1.call(MergedResourceWriter.java:139)\r\n        at java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\r\n        at java.util.concurrent.FutureTask.run(FutureTask.java:266)\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\nTarget //tensorflow/examples/android:tensorflow_demo failed to build\r\nUse --verbose_failures to see the command lines of failed build steps.\r\nINFO: Elapsed time: 18.913s, Critical Path: 13.51s"},"comment":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/comments/197517714","html_url":"https://github.com/bazelbuild/bazel/issues/1036#issuecomment-197517714","issue_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1036","id":197517714,"user":{"login":"ahumesky","id":8110723,"avatar_url":"https://avatars.githubusercontent.com/u/8110723?v=3","gravatar_id":"","url":"https://api.github.com/users/ahumesky","html_url":"https://github.com/ahumesky","followers_url":"https://api.github.com/users/ahumesky/followers","following_url":"https://api.github.com/users/ahumesky/following{/other_user}","gists_url":"https://api.github.com/users/ahumesky/gists{/gist_id}","starred_url":"https://api.github.com/users/ahumesky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahumesky/subscriptions","organizations_url":"https://api.github.com/users/ahumesky/orgs","repos_url":"https://api.github.com/users/ahumesky/repos","events_url":"https://api.github.com/users/ahumesky/events{/privacy}","received_events_url":"https://api.github.com/users/ahumesky/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T19:55:48Z","updated_at":"2016-03-16T19:55:48Z","body":"Hmm, well, I cloned tensorflow and bazel from head, build bazel, ran tensorflow's configure script, set the android_sdk_repository and android_ndk_repository rules to the appropriate paths, and did `bazel build tensorflow/examples/android:tensorflow_demo` and it seems to build...\r\n\r\nCan you try running aapt directly? Do you have a 64 bit machine? As a wild guess, it might have to do with running a 32 bit binary on a 64 bit machine. Try running `ldd` on aapt, e.g.:\r\nhttp://stackoverflow.com/questions/3949161/no-such-file-or-directory-but-it-exists"}}