Note that there are some explanatory texts on larger screens.

plurals
  1. POAdding an Eclipse "Android Library" project and building via Maven
    primarykey
    data
    text
    <p>I am trying to include cocos2d into a preexisting app. I've done things the Eclipse way, such as setting "isLibrary" and adding the library project to the build path in Eclipse, and I have the following dependency in my app's <code>pom.xml</code>:</p> <pre><code>&lt;dependency&gt; &lt;groupId&gt;cocos2d_android&lt;/groupId&gt; &lt;artifactId&gt;cocos2d_android&lt;/artifactId&gt; &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt; &lt;scope&gt;provided&lt;/scope&gt; &lt;/dependency&gt; </code></pre> <p>I thought this would've taken care of the issue, but when I build, the library seems not to be included. I know this because when I start an Activity, <code>SimpleGame</code>, referencing one of the classes in the cocos2d source, the Activity dies and I get this stacktrace in DDMS:</p> <p><code>E/AndroidRuntime(10621): FATAL EXCEPTION: main E/AndroidRuntime(10621): java.lang.NoClassDefFoundError: org.cocos2d.opengl.CCGLSurfaceView E/AndroidRuntime(10621): at com.xyz.game.SimpleGame.onCreate(SimpleGame.java:22) ... </code></p> <p>I'm looking for two things:</p> <p>1) a reliable way to see if a certain class/jar/whatever was packaged up into my apk, as the steps to get to this point in my app are long and complicated right now</p> <p>2) Something in the Manifest or pom.xml for either the main app or the library project seems to be missing - something needed to signal to Maven to pick up this other project - what is it?</p> <p>I'm using Maven 3.0.4 and 3.0.0-alpha-13 of the plugin, building for level 8 and up.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload