when I import the cocos2dx android project in my eclipse I get this warning on my header files
Unresolved inclusion: "cocos2d.h"
Why is this? Its actually bugging me. The project compiles and runs correctly but I want that to go away. Can someone tell me how to remove that warning and also I want the intellisense feature for my c++ projects in eclipse. I have that feature for my android stuff but not for c++.
Please guide me. Thanks in advance :)
Add cocos2d-x resource to your Eclipse
Right click your project and choose Properties
Find Java Build Path
Find Link Source Browse under Source Tab
Add $COCOS2DX-HOME/cocos2dx/platform/android/java/src/ and fill cocos2dx src in Folder name
Reference:
http://www.raywenderlich.com/33750/cocos2d-x-tutorial-for-ios-and-android-getting-started
If it's Cocos2dx v3.0, the answer above is not correct. Please check my answer at this: Many Errors with cocos2d-x-3.0 project creation
Related
I am using android studio to import this project called https://github.com/Pixate/pixate-freestyle-android. However when I import it into android studio the folder under samples, freestyleshowcase doesnt seem to build. The other 2 samples buld correctly. There is a red circle around the java file with a J (error) but there is no error in the file itself. COuld someone please help me out?
You are obviously missing some libraries but it is going to be hard for anyone to tell you which since we do not know the libraries the project needs.You can try Build-->Rebuild Project or Build-->Clean Peoject if it still doesn't work, close and open Android Studio.
If that doesn't work also then you have to go the hard way of identifying the libraries need by the project samples you imported and see if you have them.
When in doubt, you can try the Library Dependency option (using Maven) as demonstrated here:
https://www.youtube.com/watch?v=6BUcx9gGQ3o
That way, you won't have to manually edit the build.gradle file.
I want to use Paralloid on my eclipse project, but Eclipse doesnt recognize Paralloid as a library.
this is the library i want to use
https://github.com/chrisjenx/Paralloid
I have tried to google it but couldnt find any help.
After importing Paralloid on Eclipse the properties >> android >> add(under library section) is empty.
i tried to add in build path but still no help...
The sample project is also not working; it crashes before showing anything on screen.
Any help would be appreciated.
Ok, So I built the library in Eclipse.
https://dl.dropboxusercontent.com/u/25650355/Library-Paralloid.zip
Usage is the same like the main library.
Enjoy ;)
I am new in Android NDK running the first hello JNI example. I added the jni folder and added the c file in which I'm getting error that some are not resolved.
I convert project to the C/C++ also and Add the NDK in the eclipse like below
But still have red error line in cpp file which shows some could not be resolved.
Guys help me!
I solved this issue to add the project to Native Support.
Follow this approach:-
Android Right Click on project then Android Tools then Add Native Support.
It's a typo, it should be JNIEnv instead of JNIENV. If that doesn't fix it, then there is some configuration problem in your project.
i downloaded the smspopup app for android from android-smspopup using svn, now i opened the project in eclipse. i did the following:
1) Build Project;
2) Android Tools -> Fix Project Properties;
3) Project -> Clean.
Now, for the following java classes:
1) SmsPopupActivity;
2) SmsPopupPager.
It says that it cannot resolve the following:
import com.jakewharton.android.viewpagerindicator.CirclePageIndicator;
I downloaded the Android-ViewPagerIndicator. Now, i try to add it using the Properties -> Android -> Add Library. But it does not let me add anything. Please can you help me to resolve this problem... I would really appreciate if someone could explain how to solve this problem step-by-step. Thanks a lot in advance!!!
I encountered the same problem with you,and i finally found the solution on the site of https://github.com/JakeWharton/Android-ViewPagerIndicator.
Android-ViewPagerIndicator is presented as an Android library project. A standalone JAR is not possible due to the theming capabilities offered by the indicator widgets.
You can include this project by referencing it as a library project in Eclipse or ant.
I am using the apdfview project which is on this site
http://code.google.com/p/apdfviewer
but I cant build the source project because it tells me it can't find a library libpoppler_jni.so and I cant find it, and although I have the source code in C, I don't know how to build it and generate it.
Can anyone please help me?
You need to install the NDK and run ndk-build on the project to generate that .so file, from what I can tell.