Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant build .so file #8

Open
mujtaba-faizi opened this issue Jan 7, 2018 · 10 comments
Open

cant build .so file #8

mujtaba-faizi opened this issue Jan 7, 2018 · 10 comments

Comments

@mujtaba-faizi
Copy link

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.

@amitshekhariitbhu
Copy link
Owner

Now, there is no need to build that as it has been published as a library. You can directly compile it from the gradle.

@mujtaba-faizi
Copy link
Author

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.

@mujtaba-faizi
Copy link
Author

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.

@amitshekhariitbhu
Copy link
Owner

Yes, just add the dependency. Do not build the so file.

@mujtaba-faizi
Copy link
Author

Thanks for the quick reply. So i dont need the .so file? All will work fine without it?

@amitshekhariitbhu
Copy link
Owner

Yes

@mujtaba-faizi
Copy link
Author

Now I'm getting the error after building gradle:
Execution failed for task':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.

com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex

@ryan-radloff
Copy link

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 ?

@SLEEP-CO
Copy link

SLEEP-CO commented Jul 20, 2018

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

@SLEEP-CO
Copy link

I hope you can give me your hands .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants