Take the 2-minute tour ×

This is my first time using Unity, and I want to integrate it into an already existing Android app.

From what I've read, you need to package your Android project into a jar file. Since you can't include the resource folder in the jar, how do I handle all of the resources for my app? The app also uses the ActionBarSherlock and ViewPagerIndicator libraries which have resources of their own as well.

I basically just need a way to click a button on Android and pop up an Activity containing the Unity stuff. I want the rest of the app to be native Android code. Thanks for the help!

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

I figured it out. I was following these directions but kept getting various error messages including ClassNotFound exceptions.

It turns out the way that ADT 17 handles .jar files broke this method of integrating Unity into Eclipse. After hours of searching, here's the fix I came up with:

Instead of adding classes.jar to your build path, you should just copy the classes.jar file into the /lib directory of your project, and everything should work properly.

share|improve this answer
it helps to do both, one is for android runtime one is for eclipse during compilation. –  edthethird Oct 5 '12 at 20:16
Thanks, I that makes sense –  blacksh33p Oct 6 '12 at 21:16
I haven't tried it out yet, but from what I've read, Unity 4 makes this question a nonissue –  blacksh33p Jan 14 '13 at 14:18
add comment

Your Answer


