Slick Forums

Discuss the Slick 2D Library
It is currently Sat Feb 29, 2020 12:36 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Integration with Android
PostPosted: Sat May 11, 2013 2:44 am 
Offline

Joined: Sat May 11, 2013 2:42 am
Posts: 2
Hello youse!

I'm trying to implement Artemis in my Desktop + Android project. So far desktop is doing fine, but Android throws

05-10 21:35:34.050: E/AndroidRuntime(30935): java.lang.NoClassDefFoundError: com.artemis.World

I have linked the library to the main project in the libs folder, plus added the sources. Given that there are several more libraries there, like LuaJava, I don't think it's an issue with linking. As far as I know Artemis should be platform-independent, and I have read from other devs who were able to implement it successfully.

Thanks!


Top
 Profile  
 
PostPosted: Sat May 11, 2013 11:58 am 
Offline

Joined: Sun Aug 05, 2012 3:37 pm
Posts: 24
Assuming you are running Eclipse:

Right-click on the android project > Properties > Java Build Path > Order and Export tab > Ensure that the related Artemis project is checked.

--tim


Top
 Profile  
 
PostPosted: Sat May 11, 2013 2:00 pm 
Offline

Joined: Sat May 11, 2013 2:42 am
Posts: 2
I already had that configured. I found the solution in a genious google strike last night.

http://android.foxykeep.com/dev/how-to- ... ith-adt-17

You have to copy the library to libs/ in the -android project, not only on the main one (libgdx). Linking it is not enough.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group