[TUTORIAL] To Everyone Looking For .jar Files

  ... tutorials on how to use AndEngine.

Re: [TUTORIAL] To Everyone Looking For .jar Files

Postby HowBigStudios » Thu Aug 25, 2011 5:56 am

I'm getting the exact same error. I cloned the andengine repo using hg in eclipse. I opened the Java build path for my project, clicked link source, browsed to the andengine project directory I just cloned and chose the src folder.


Click here to see it say that src is already a source folder
HowBigStudios
 
Posts: 22
Joined: Thu Feb 17, 2011 8:22 am

Re: [TUTORIAL] To Everyone Looking For .jar Files

Postby HowBigStudios » Thu Aug 25, 2011 5:58 am

FIXED

Turns out you need to rename the folder to something other than src and then it works perfectly.
HowBigStudios
 
Posts: 22
Joined: Thu Feb 17, 2011 8:22 am

Re: [TUTORIAL] To Everyone Looking For .jar Files

Postby Skripi » Thu Aug 25, 2011 6:00 am

OH!! Yeah, you need to rename it. Since it's importing a src folder from another project, it would think to just name that imported folder the same name that it is in the other project, (being "src"). Since your project already has a folder named "src", it won't let you name your imported folder "src" because you already have a folder named "src"

See in my example tutorial, I've renamed it "AndEngine_src" to distinguish between the two. So where it says "src" just rename it to "AndEngine_src"

Hope that works !
Please rush me my portable walrus cleaning kit. Yes I am over 18 but my IQ isn't.
Skripi
 
Posts: 61
Joined: Wed Aug 11, 2010 5:35 pm

Re: [TUTORIAL] To Everyone Looking For .jar Files

Postby Skripi » Thu Aug 25, 2011 6:11 am

I'm still unsure about what needs to be done about the .SO files though. So if anyone knows how I'd love to know :)
Please rush me my portable walrus cleaning kit. Yes I am over 18 but my IQ isn't.
Skripi
 
Posts: 61
Joined: Wed Aug 11, 2010 5:35 pm

Re: [TUTORIAL] To Everyone Looking For .jar Files

Postby TommyAngelo » Thu Aug 25, 2011 10:11 am

Hey guys. Cant make it run. Getting those for each project:

AndEngineAugmentedRealityExtension] Android requires compiler compliance level 5.0 or 6.0. Found '1.4' instead. Please use Android Tools > Fix Project Properties.

Android Tools->Fix Project Properties doesnt help.

And this one:

AndEngineTexturePackerExtension] ERROR: resource directory 'C:\Users\mafioso\eclipse_workspace\AndEngineTexturePackerExtension\res' does not exist

i added in each project the res folder manually, this error doesnt occure anymore, but the other does. Help me this is really annoying.
TommyAngelo
 
Posts: 5
Joined: Tue Apr 19, 2011 5:50 pm

Re: [TUTORIAL] To Everyone Looking For .jar Files

Postby RBG » Thu Aug 25, 2011 10:18 am

What a mess. It's probably better to just point new people to an older branch. .299 is good for sure.

In eclipse,

new project -> mercurial
clone mercurial
https://andengineexamples.googlecode.com/hg
on the next dialog, click on the "revisions" tab
scroll down to "299"

select, download. everything will work.

wait for entire site's worth of tutorials to be rewritten. :)
RBG
 
Posts: 8
Joined: Thu Aug 11, 2011 9:32 am

Re: [TUTORIAL] To Everyone Looking For .jar Files

Postby TommyAngelo » Thu Aug 25, 2011 10:33 am

Thanks RBG, 299 works perfect. Still so angry about this, was sitting till midnight. Deleted eclipse, configured everything new to figure out it still doesnt work. I should just switch to iphone mby its worth the money.
TommyAngelo
 
Posts: 5
Joined: Tue Apr 19, 2011 5:50 pm

Re: [TUTORIAL] To Everyone Looking For .jar Files

Postby Skripi » Thu Aug 25, 2011 10:36 am

Yeah that's a great idea. I wonder why the tutorials weren't updated when the code was
Please rush me my portable walrus cleaning kit. Yes I am over 18 but my IQ isn't.
Skripi
 
Posts: 61
Joined: Wed Aug 11, 2010 5:35 pm

Re: [TUTORIAL] To Everyone Looking For .jar Files

Postby lin33274 » Thu Aug 25, 2011 4:01 pm

Thanks it really works!

**HOWEVER**, when I tried to do this with the box2d project it didn't work as this won't include the lib into the apk.

Then I find "Now using related projects as Android library projects." actually means it literally, as shown in the attachment.
Attachments
addit.png
addit.png (83.25 KiB) Viewed 2745 times
lin33274
 
Posts: 4
Joined: Tue Aug 23, 2011 3:50 pm

Re: [TUTORIAL] To Everyone Looking For .jar Files

Postby kblood » Thu Aug 25, 2011 8:36 pm

Version 30x. I think it is 303.

http://dionysus.dk/devstuff/downloads/a ... mples5.rar

Just in case you get really tired of trying to find the newest version that actually works just be downloading the Mercury rep. Instead of having to fix the source stuff in what seems to be rather complicated ways.

But thanks for this tutorials. Gives me a chance to figure out how to make the new method work one day.
kblood
 
Posts: 333
Joined: Wed May 25, 2011 10:13 pm

PreviousNext

Return to Tutorials

Who is online

Users browsing this forum: Google [Bot] and 14 guests