1. 安装Android studio3
2.确保Android SDK 版本是26以上,NDK版本是14以上
3.下栽lite源码(https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite),导入tensorflow/contrib/lite/java/demo
4.下载tf lite对应的mobileNet版本(https://storage.googleapis.com/download.tensorflow.org/models/tflite/mobilenet_v1_224_android_quant_2017_11_08.zip)
解压缩并拷贝mobilenet_quant_v1_224.tflite 到 assets 目录:tensorflow/contrib/lite/java/demo/app/src/main/assets/
build the app and run
5.Android studio demo 见如下链接
https://github.com/ouclbc/AndroidTensorlfowLiteDemo
参考 https://tensorflow.google.cn/versions/r1.5/mobile/tflite/demo_android