I'm trying the object detection API (Git repo) from Tensorflow with android and when I build the project with bazel everything works fine and the libstensorflow_demo.so is there and loads normally. But when I try to to build the project with Gradle only and manually add the library to the JniLibs following this and this Github issue but I get the error mentioned in the title with an other error :
ObjectTracker: Native object tracking support not found. See tensorflow/examples/android/README.md for details.
Anyone encountered this problem?
Related
There is a CMake example given by Google for the android-ndk built, in which a number of different modules are being loaded into the project via CMake. The project can be found here.
On trying to add a new module named varnam into this existing project,
I am getting the following error
Error: exception during working with external system:
The modified project can be found here and the log for the same can be found here.
The Android Studio version used is 2.2 preview 5. Help in any form would be great.
I'm attempting to create an Android app with Android Studio that uses source code from:
https://github.com/mapbox/mapbox-gl-native/
I will need to modify the source code, build and debug the changes, and commit those changes back to the forked repository I've made from mapbox-gl-native.
It appears much of the library code is in C++, while the project that uses the code will be in Java (if that makes a difference).
I've tried a bunch of things (mostly ignorant) and keep getting the following message:
Gradle 'name' project refresh failed
Error: Configuration with name 'default' not found.
Newbie on Android Studio, so please be as descriptive as possible. I'm using Android Studio 1.4.1, as other similar questions seem to have version specific answers.
Is there a description on how to set up an Android Studio project to include source code and how to structure such a project?
or
Can you tell me what the message means and how to fix it?
Thanks.
I've followed this stack overflow answer to try and get OpenCV android working in Android Studio. I have followed the directions with the following caveats:
The build tools version in the opencv build.gradle is 19.1.0 instead of 19.0.1
Instead of looking like the picture provided after a gradle sync, my project structure looks like this:
When I open the module dialog, opencv appears as a model, as well as app
The project builds and autocompletes fine. However, I get the following error when the code that requires OpenCV is called:
java.lang.UnsatisfiedLinkError: Native method not found: org.opencv.core.Mat.n_Mat:()
I have no idea what I am doing wrong. Any help is appreciated.
You have to explicitly load libs with LoadLibrary:
http://developer.android.com/reference/java/lang/System.html
I am developing android application using odatajclient library . App works fine if I build it through maven android plugin . But when I create android project and provide all the dependencies at runtime I am getting following class not found error
05-05 14:40:10.895: E/AndroidRuntime(14596): java.lang.NoClassDefFoundError: org.w3c.dom.bootstrap.DOMImplementationRegistry
Can anyone help me on this please?
I was able to resolve it by using apache olingo and the following sample:
https://github.com/Tirasa/olingoClientOnAndroidSample
When you initially run maven, it produces single jar for android client, which works perfectly fine at least for me.
IF you are using Eclipse (Juno or above) : Right Click->properties->Build path->order export
Here select all the libraries. It will not be sufficient to just add the libraries through libraries.
I am trying to get this example project to work: http://simonmacdonald.blogspot.co.uk/2012/10/barcode-scanner-example-projects.html
I have imported both the projects and made the library project a library etc and i have it running but when i run it and click the scan button i get:
Uncaught TypeError: Object [object Object] has no method 'exec' at file://android_asset/www/cordova.js:863
I have changed the target version to 17 (the latest) which allowed me to run it but i cannot seem to get it to work am i missing something?
I would like to run this on my Google Nexus 4 if this info helps.
Here is a zip of all the code i am using: https://dl.dropboxusercontent.com/u/1099165/bc-code.zip
Also i am using Eclipse to run this (ADT)
Because your barcodescanner.js is using old API call. There is no longer cordova.exec. You need to use the latest barcodescanner.js: https://github.com/phonegap/phonegap-plugins/blob/master/Android/BarcodeScanner/2.2.0/assets/www/barcodescanner.js
After Noogen's answer it got me thinking if Cordova needed to be updated so i grabbed the latest phonegap files and replaced the cordova.js file and the 2.8.1 jar file and then did a clean and build - it worked!