Issue 1:
Environment info

Operating System: Ubuntu 14.04 LTS 64-bit

Installed version of CUDA and cuDNN: none (not using GPU)

Steps to reproduce

Note: TensorFlow was installed previously.

Install Bazel as instructed here: http://www.bazel.io/docs/install.html#install-on-ubuntu

Install Android Studio (which includes the SDK).

Install Android NDK through the Android Studio SDK Manager.

Download and unzip the TensorFlow graph as instructed here: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/android/README.md

Uncomment the Android entries in the WORKSPACE file and add in paths to the SDK and NDK (in my case, these were /home/me/Android/Sdk and /home/me/android-studio/android-studio/plugins/android-ndk)

Run $ bazel build //tensorflow/examples/android:tensorflow_demo

What have you tried?

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.

According to #1468, 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.

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.

Logs or other output that would be helpful

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).

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.

Issue 2:
GitHub issues are for bugs / installation problems / feature requests.

For general support from the community, see StackOverflow.

To make bugs and feature requests more easy to find and organize, we close issues that are deemed

out of scope for GitHub Issues and point people to StackOverflow.

For bugs or installation issues, please provide the following information.

The more information you provide, the more easily we will be able to offer

help and advice.

Environment info

Operating System:

OS X EI Capitan version 10.11.3

If installed from sources, provide the commit hash:

13ea3ca

Steps to reproduce

Build TensorFlow without uncommenting the Android SDK and NDK parts successfully.

We can

import tensorflow

in python environment after step 1 and following installation steps.

4. Download SDK and NDK from what https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/android/README.md suggested.

3. Uncomment the Android SDK and NDK repository in WORKSPACE and change the path.

4. Rebuild using

$ bazel build -c opt //tensorflow/tools/pip_package:build_pip_package

the console returns the error,

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'.

What have you tried?

Commenting NDK repository and leave the SDK in TensorFlow WORKSPACE, build using

$ bazel build -c opt //tensorflow/tools/pip_package:build_pip_package

passed and without error.

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.

Logs or other output that would be helpful

(If logs are large, please upload as attachment).

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'.

Is this error due to the codes or my building processes?