To build a TF Lite demo on Android, follow these steps:
- Install Android Studio. We installed Android Studio on Ubuntu 16.04 from the instructions at the following link: https://developer.android.com/studio/install.html
- Check out the TensorFlow repository, and apply the patch mentioned in the previous tip. Let's assume you checked out the code in the tensorflow folder in your home directory.
- Using Android Studio, open the Android project from the path ~/tensorflow/tensorflow/contrib/lite/java/demo. If it complains about a missing SDK or Gradle components, please install those components and sync Gradle.
- Build the project and run it on a virtual device with API > 21.
We received the following warnings, but the build succeeded. You may want to resolve the warnings if the build fails:
Warning:The Jack toolchain is deprecated and will not run. To...
Warning:The Jack toolchain is deprecated and will not run. To...