AndroidTensorFlowMachineLearningExample
AndroidTensorFlowMachineLearningExample copied to clipboard
cant build .so file
I followed the steps to your blog but I get an error about c/c++ files in the cpp folder(created by itself). I dont know how you built the .so file. I have built the jar file fine.
Now, there is no need to build that as it has been published as a library. You can directly compile it from the gradle.
I get this error "Your project contains C++ files but it is not using a supported native build system". I just build the gradle, i dont know why i had to change the workspace of tensorflow.
If i just add the dependency compile 'org.tensorflow:tensorflow-android:+' in build.gradle, what files do i have to remove from my project which you mentioned in the blog? Also, will i need to add something else to the activity code? Thanks on advance.
Yes, just add the dependency. Do not build the so file.
Thanks for the quick reply. So i dont need the .so file? All will work fine without it?
Yes
Now I'm getting the error after building gradle: Execution failed for task':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
I am having the same issue with the DexMergerForDebug error, and have not been able to fix for weeks. Did you find a fix @mujtaba-faizi ?
Does it have any problems in different versions of tensorflow?I have build my own model on android by this way , but i get the error that failed to open my moudel.pb
I hope you can give me your hands .