AndEngine Augmented reality missing .jar file - Android Dependencies error - android

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

Related

importing card.io SDK into my existing android app

How can I add card.io Library to my Android project?. I tried to researched but it didn't helped me. I extracted and Imported the SDK to my Eclipse(Luna), but then when I try to add the card.io library into my project, it doesn't show up on the project selection. I don't know what am I missing. Also, I want to know what is the difference of the card.io-Android-source to card.io-Android-sdk , because I'm confuse of which is the right one to be imported into the Eclipse.
Kind regards.
using card.io-Android-sdk
unzip card.io-5.0.1.aar file
copy classes.jar And paste into libs folder in your eclipse
project
and copy all folders from jni folder(contains .so file) And
paste into libs folder in your eclipse project
I'll answer your second question first with a third question: why not use Android Studio and Gradle to import card.io into your project? If you follow the sample app example, the integration steps are very straightforward.
If you insist on Eclipse, here's a suggestion you could follow given the card.io .aar file.

Error in OpenCV Android eclipse setting up sample projects

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!

Is there a way to reference an android library that is not in the same workspace as the project?

My question is simply whether i can reference an android library in eclipse and have that library in a different place than the workspace where my project is ?
Is that possible, because the link always seems to be broken if the project isn't copied in the same workspace as the project.
You can refer the library from anywhere other than same workspace.It is posiible and it should work for all the workspaces.
It should work from anywhere from your system drive .You can import that library project into the same workspace as library project.

Cocos2dX specific Libraries cannot be resolved after creating Android Project from existing cocos2dx project file

I have configured the setup for cocos2dx by using Eclipse, android and windows.
The following link is the resource I follow to configure.
http://www.multigesture.net/articles/how-to-setup-cocos2d-x-windows-and-android/#comment-77433
But, after I have done everything that tutorial and creating the Android Project from existing Cocos2dx codes (HelloCpp, HelloLua and HelloJavaScript), I have got the error that Eclipse can not resolve the Cocos2dx specific classes such as Cocos2dxActivity.
My Question is do I have to import Cocos2dx Libraries (Jar) files into the Eclipse ? or Did I do something wrong in the set up process ?
You use 2.0.* version of cocos2d-x? Something has changed in that release.
Make sure that you have linked source which point to cocos2dx/platform/android/java/src_common
Check Project Properties->Java Build Path->Source dialog

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.

Categories

Resources