tacos_tacos_tacos
tacos_tacos_tacos

Reputation: 10585

Create an Android library project in NetBeans

How can I create an Android library project in NetBeans IDE? The build target would be a JAR for use in another Android project. I've seen the documentation at http://developer.android.com/guide/developing/projects/projects-eclipse.html for creating a library project in Eclipse, but I'm using NetBeans. I do not see an isLibrary property available in the properties for the Android project. If there is not a built-in way to accomplish this, how might I go about manually setting up an Android library project? Forgive me if this is a thick question.

Upvotes: 0

Views: 2931

Answers (1)

Stefan Hanke
Stefan Hanke

Reputation: 3518

Netbeans is using the standard android project layout (see the features site) and the standard ant-based build. This means that there is a project.properties file in the project's root. A library project has android.library=true in it, along with the android target version (and eventually other android library references). This file can be viewed and opened under Important Files. When cleaning and rebuilding, Netbeans behaves as if this is a lib project (does not create apk etc.)

Otherwise, you could use the SDK android tool (located in $SDK/tools) to generate the lib project on the cmdline and then try to import it into Netbeans somehow.

Upvotes: 2

Related Questions