So I am trying to use Tensorflow-lite version 0.1.1.
But when I add the library in the gradle dependencies I get:
Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define LR;
I am using AGP 3.1.0-alpha5, but I also get errors (different ones) in alpha06, alpha07...I am using multidex, but it is correctly set and works without tensorflow.
I tried to remove D8 (this thing here) and change the gradle wrapper version... but still no luck.
I don't really understand what this error means, so could someone explain what Multiple dex files define LR means? Or give some solution?
Edit 1:
I am more interested about what is the class/file LR. I do understand that a class is defined twice in my dex files, but I don't understand what this class is about. So it get a lot harder to solve the problem.
Any help is appreciated!