Open mkosik opened 6 years ago
I don't know it anymore 100%, but initially we used API version 16. Then, when we tried to run TensorFlow on a device with Android version 4.4.2, the app crashed. We searched for solutions and found out the following:
Probably now everything is fixed and you could try to decrease the minVersions. We don't build TensorFlow by ourselves anymore, but include it as an aar library. I don't know with which NDK version this library has been build, but it seems r12b is used now (https://github.com/tensorflow/tensorflow/blob/master/WORKSPACE)
Why is minSdkVersion 21 (Android 5.0 Lollipop) please?
I checked what changed in API 21 and obvious suspects for me were:
When it comes to NDK Native APIs, I also checked what LOCAL_LDLIBS you utilize, but I haven't found any so recent that it would require API level 21.
I also checked dependencies and OpenCV should run on far lower APIs (however your linked OpenCV port has also minSdkVersion 21) and when it comes to Tensorflow, it's native libraries can run on API >= 14 device (only their demo that utilized camera2 API requires API >=21, as mentioned here https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android).
So why is the API >=21 required please?