<h3 dir="auto">Environment info</h3>
<p dir="auto">Operating System: Ubuntu 14.04 LTS 64-bit</p>
<p dir="auto">Installed version of CUDA and cuDNN: none (not using GPU)</p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Note: TensorFlow was installed previously.</p>
<ol dir="auto">
<li>Install Bazel as instructed here: <a href="http://www.bazel.io/docs/install.html#install-on-ubuntu" rel="nofollow">http://www.bazel.io/docs/install.html#install-on-ubuntu</a></li>
<li>Install Android Studio (which includes the SDK).</li>
<li>Install Android NDK through the Android Studio SDK Manager.</li>
<li>Download and unzip the TensorFlow graph as instructed here: <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/android/README.md">https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/android/README.md</a></li>
<li>Uncomment the Android entries in the WORKSPACE file and add in paths to the SDK and NDK (in my case, these were <code class="notranslate">/home/me/Android/Sdk</code> and <code class="notranslate">/home/me/android-studio/android-studio/plugins/android-ndk</code>)</li>
<li>Run <code class="notranslate">$ bazel build //tensorflow/examples/android:tensorflow_demo</code></li>
</ol>
<h3 dir="auto">What have you tried?</h3>
<ol dir="auto">
<li>I've looked around, and my understanding is that the RELEASE.TXT file is not included in the most recent version of the Android NDK. Since the NDK installed via Android Studio is a .jar file, I wasn't sure what to do with that, so I went to the path indicated by the terminal log and created a blank RELEASE.TXT file. This made no difference.</li>
<li>According to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="140340471" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/1468" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/1468/hovercard" href="https://github.com/tensorflow/tensorflow/issues/1468">#1468</a>, it can be resolved by downgrading to an earlier version of the NDK which contains RELEASE.TXT. I downloaded the version of Bazel (for Linux) from the links given, but the downloaded file is a .bin, which is unusable to me. As such, I found this solution to be a dead end.</li>
<li>Commenting out the NDK entry is said to resolve the issue, but I haven't tried this yet, since I don't know if it'll cause more complications down the road.</li>
</ol>
<h3 dir="auto">Logs or other output that would be helpful</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: no such package '@androidndk//': Could not read RELEASE.TXT in Android NDK: /home/me/.cache/bazel/_bazel_me/f3471be34d1e62bf21975aa777cedaa3/external/androidndk/ndk/RELEASE.TXT (No such file or directory).
ERROR: no such package '@androidndk//': Could not read RELEASE.TXT in Android NDK: /home/me/.cache/bazel/_bazel_me/f3471be34d1e62bf21975aa777cedaa3/external/androidndk/ndk/RELEASE.TXT (No such file or directory)."><pre class="notranslate"><code class="notranslate">ERROR: no such package '@androidndk//': Could not read RELEASE.TXT in Android NDK: /home/me/.cache/bazel/_bazel_me/f3471be34d1e62bf21975aa777cedaa3/external/androidndk/ndk/RELEASE.TXT (No such file or directory).
ERROR: no such package '@androidndk//': Could not read RELEASE.TXT in Android NDK: /home/me/.cache/bazel/_bazel_me/f3471be34d1e62bf21975aa777cedaa3/external/androidndk/ndk/RELEASE.TXT (No such file or directory).
</code></pre></div>
<p dir="auto">Is there another way to resolve this issue without downgrading or commenting out the NDK entry? If not, how can I install a previous version of Android NDK? Thanks in advance.</p>
<p dir="auto">GitHub issues are for bugs / installation problems / feature requests.<br>
For general support from the community, see <a href="https://stackoverflow.com/questions/tagged/tensorflow" rel="nofollow">StackOverflow</a>.<br>
To make bugs and feature requests more easy to find and organize, we close issues that are deemed<br>
out of scope for GitHub Issues and point people to StackOverflow.</p>
<p dir="auto">For bugs or installation issues, please provide the following information.<br>
The more information you provide, the more easily we will be able to offer<br>
help and advice.</p>
<h3 dir="auto">Environment info</h3>
<p dir="auto">Operating System:<br>
OS X EI Capitan version 10.11.3</p>
<p dir="auto">If installed from sources, provide the commit hash:<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/13ea3ca91ba5aecab6f21acc14b9cb6a9afa8630/hovercard" href="https://github.com/tensorflow/tensorflow/commit/13ea3ca91ba5aecab6f21acc14b9cb6a9afa8630"><tt>13ea3ca</tt></a></p>
<h3 dir="auto">Steps to reproduce</h3>
<ol dir="auto">
<li>Build TensorFlow without uncommenting the Android SDK and NDK parts successfully.</li>
<li>We can</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import tensorflow "><pre class="notranslate"><code class="notranslate">import tensorflow 
</code></pre></div>
<p dir="auto">in python environment after step 1 and following installation steps.<br>
4. Download SDK and NDK from what <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/android/README.md">https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/android/README.md</a> suggested.<br>
3. Uncomment the Android SDK and NDK repository in WORKSPACE and change the path.<br>
4. Rebuild using</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ bazel build -c opt //tensorflow/tools/pip_package:build_pip_package"><pre class="notranslate"><code class="notranslate">$ bazel build -c opt //tensorflow/tools/pip_package:build_pip_package
</code></pre></div>
<p dir="auto">the console returns the error,</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="ERROR: .../tensorflow/WORKSPACE:10:1: no such package '@androidndk//': Could not read RELEASE.TXT in Android NDK: /private/var/tmp/.../49fff0428.../external/androidndk/ndk/RELEASE.TXT (No such file or directory) and referenced by '//external:android/crosstool'."><pre class="notranslate">ERROR: .../tensorflow/WORKSPACE:10:1: no such package <span class="pl-s"><span class="pl-pds">'</span>@androidndk//<span class="pl-pds">'</span></span>: Could not <span class="pl-c1">read</span> RELEASE.TXT <span class="pl-k">in</span> Android NDK: /private/var/tmp/.../49fff0428.../external/androidndk/ndk/RELEASE.TXT (No such file or directory) and referenced by <span class="pl-s"><span class="pl-pds">'</span>//external:android/crosstool<span class="pl-pds">'</span></span>.</pre></div>
<h3 dir="auto">What have you tried?</h3>
<ol dir="auto">
<li>Commenting NDK repository and leave the SDK in TensorFlow WORKSPACE, build using</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ bazel build -c opt //tensorflow/tools/pip_package:build_pip_package"><pre class="notranslate"><code class="notranslate">$ bazel build -c opt //tensorflow/tools/pip_package:build_pip_package
</code></pre></div>
<p dir="auto">passed and without error.</p>
<p dir="auto">2.Finding that Downloaded NDK and NDK in /private/var/tmp/.../49fff0428.../external/androidndk/ndk are the same. And there are no RELEASE.TXT in in directory.</p>
<h3 dir="auto">Logs or other output that would be helpful</h3>
<p dir="auto">(If logs are large, please upload as attachment).</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="ERROR: .../tensorflow/WORKSPACE:10:1: no such package '@androidndk//': Could not read RELEASE.TXT in Android NDK: /private/var/tmp/.../49fff0428.../external/androidndk/ndk/RELEASE.TXT (No such file or directory) and referenced by '//external:android/crosstool'."><pre class="notranslate">ERROR: .../tensorflow/WORKSPACE:10:1: no such package <span class="pl-s"><span class="pl-pds">'</span>@androidndk//<span class="pl-pds">'</span></span>: Could not <span class="pl-c1">read</span> RELEASE.TXT <span class="pl-k">in</span> Android NDK: /private/var/tmp/.../49fff0428.../external/androidndk/ndk/RELEASE.TXT (No such file or directory) and referenced by <span class="pl-s"><span class="pl-pds">'</span>//external:android/crosstool<span class="pl-pds">'</span></span>.</pre></div>
<p dir="auto">Is this error due to the codes or my building processes?</p>