Error in OpenCV Android eclipse setting up sample projects - android

I already watched so many tutorials online but I can't figure out what's wrong with the sample projects given by the openCv.
I also follow the steps given in this link : sample question
The error in 15 puzzle is different from camera-calibration and color-blob-detection.
After I deleted the error lines in JavaCameraView.java file, some of the samples start to works fine.
My ndk version is r10 and OpenCV version is 2.4.9. I hope someone can help me solve my problem. Thanks in advance!

You can look at this sample. Basically you will just need to redirect the library to your folder

After some configurations, I finally figured out how to solve my problem. Here are the steps:
First: Click on every folder->Properties->Android->Delete the unknown reference then add the OpenCV library.
Second: Make sure to link the C/C++ Build by Properties-> C/C++ Build-> Then copy the file path of your ndk folder
Third:copy jni folder present in face detection or other projects then paste it to a project that don't have a jni folder.
Fourth: Change the include declaration to local library of OpenCV.mk in Android.mk file.
Ex. include C:/Dev/OpenCV-2.4.9-android-sdk/OpenCV-2.4.9-android-sdk/sdk/native/jni/OpenCV.mk
Fifth:Make sure to clean and build the project.
Finally run every project on your device. cherio!

Related

Library Reference Issue using opencv in android

I am working on opencv face detection project in android. i have an issue regarding Library reference, i have manually set the reference from project properties--->android but it is not been set. kindly help
There is not issue regarding ndk paths or other path settings
screen shot are shown below
Check Android.mk and path to OpenCV Directory.
Please, put Android.mk there and oath to OpenCV lib. And you mast Add OpenCV library to project
Your library and the project has to be in same directory then it will work..

AndEngine Augmented reality missing .jar file - Android Dependencies error

My team is currently developing a game in Android together with AndEngine GLES2. We are using the extension AndEngine Augmented Reality. My problem is there is this error that I couldn't find any good answers to fix it. So this the error:
The container 'Android Dependencies' references non existing library 'C:\Users\Asdfghjkl\workspace\nicolasgramlich-AndEngineAugmentedRealityExtension-8e9a644\bin\nicolasgramlich-andengineaugmentedrealityextension-8e9a644.jar'
can anyone help me with this? please make it an easy-to-follow fixing guide. THANK YOU!
Actually, I copied the code of the augmented reality and pasted it in my own named class.
P.S I'm using Eclipse IDE here :)
You should add it to the project "internally" instead of a link to a path. Just go to where you have installed the library, then look for the jar. Asuming you're using Eclipse as IDE:
0º Check the folder libs, you should have that jar added there, remove it.
1º Copy the JAR into the folder "libs" inside your Android Project.
2º The android dependencies will be updated, you can check it from "Android Dependencies" in the project tree
Hope it helps

Android - Adding JAR File to eclipse (hotpotato API)

I'm having this problem, and tried googling and doing tutorials in eclipse. But, it wasnt really helpful for me to use this .jar file in my project.
Source: https://github.com/brunodecarvalho/hotpotato
To be specific, I downloaded this jar file , added it to my project successfully by copying the jar file into my source folder , then added it by doing(Properties->Add Jars->And added it). Also i did a Project -> Clean.
Then once I start coding as they have shown in the examples, it gives me errors, which proves that the Adding of Jar file was not successful.
I tried in different eclipse workspaces but still no luck.
If I explain what I'm trying to do here, I'm working on a Android Download Manager Project. What I need to do is to create a pipeling connection to the request URL so that I can download the packets parallel.
Please help me find my mistake. Thanks for your time!
You can try the following:
Remove the jar from the buildpath - and make a folder called libs underneath the root of the project, at the same level as src / bin / etc.
Then put your lib in there, build path issues may then arise if you are in Eclipse but i believe everything should auto resolve from there.
In the past I have put the jar in the libs folder and additionally added it to the build path from there.
Does it error in the IDE, or at runtime?
Not all Java libraries are compatible with Android. Do what RenegadeAndy wrote here, and if that doesn't work, the lib might really be incompatible with Android.
Remember, Android is not a real Java implementation.

Android: Unable to include facebook sdk library project

I am working with Android API 17 on eclipse Indigo. I have cloned the faccebook sdk from github and done the facebook library project set up using the source project provided in the fb sdk.
Now I'm trying to include this library project in my android demo project. I have added it under Project properties->Android->Library section. Im seeing green color tick mark infront of the added library.
Also, i have added the same in the Project properties->Java build path->Projects.
build is successful. but when i try to install on my AVD, im getting the error, E/AndroidRuntime(748): java.lang.NoClassDefFoundError: com.facebook.android.Facebook
Can anybody plz help me how to fix this issue.
---- EDIT ------
One more thing I have observed is, when i opened Project properties->Android window, the green tick mark is not displaying under Library section, instead I'm seeing red cross mark.
Any ideas?
Thanks,
Venkat Papana
Same thing happen for me also.. try below .. it will work..
A Best way to add External Jars to your Android Project or any Java project is:
Create a folder called libs into you project root folder
Copy your Jar files to the libs folder
Now right click on the Jar file and then select Build Path > Add to Build Path, this will create a folder called Refrenced Library into you project, and your are done
By do doing like this, whenever you transfer you project to other Computer, you will not miss your libraries which are being referenced to some space on your Hard drive.
(The facebooksdk.jar can be found at the facebook-sdk directory: <facebook-sdk>\facebook\bin)
i know this question is old But I thought that may be it can help someone.
Move the library project and the application on the same drive. Usually this is a bug in Eclipse.
I solved my problem by moving them in same drive on my computer.
You can Give it a try.
You need to make both project in same dictionary then include it using Project Properties -> Android-> Library.
This works fine.
You do not have to add this to the library project as this is not the library.
https://github.com/facebook/facebook-android-sdk is the help of the project ad the sample code for the including the project in our code. Just you need to create the app ID for the facebook by registering your api with it.
Hope this will help you in your project.
Resolved by copying the com.facebook.android source code to my project source.

Errors with ZXing intergration into Android application

I have read a few tutorials, but I have problem with integration. I do this sequence:
1) downloading sources;
2) generating core.jar
3) adding as new project folder "android" from sources
4) add core.jar into "android" project
Then I will got many errors - R file doesn't generate, and another mistakes. Where could I make mistake?
Perhaps you can solve that with organize Imports - Eclipse.
In fact, this 'problem' is a conflict that happens when you just copy and paste codes..
Try it.
regards
The problem is that you have copied and pasted our app, in android/, into your project. Please do not copy and paste our app. Write your own. You do not need any code from our app as it is not a library. You should use core.jar, and reuse bits of the Android source if you need to make your app.

Categories

Resources