score:0
Accepted answer
the android for maven eclipse project doesn't yet support native libraries. if you'd like to see this supported please send a pull request.
score:1
here is how to include native libraries in your apk:
<build>
<finalname>${project.artifactid}</finalname>
<plugins>
<plugin>
<groupid>com.simpligility.maven.plugins</groupid>
<artifactid>android-maven-plugin</artifactid>
<extensions>true</extensions>
<configuration>
<manifest>
<debuggable>true</debuggable>
</manifest>
<!-- where the native files are located; in the future we should use src/main/libs -->
<nativelibrariesdirectory>${project.basedir}/libs</nativelibrariesdirectory>
</configuration>
<executions>
<execution>
<id>manifestupdate</id>
<phase>process-resources</phase>
<goals>
<goal>manifest-update</goal>
</goals>
</execution>
<execution>
<id>alignapk</id>
<phase>package</phase>
<goals>
<goal>zipalign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Source: stackoverflow.com
Related Query
- Android project build with native libraries inside using maven
- Eclipse: Why and when to add libraries to build path when using Maven project to not have defective Eclipse project?
- Unable to build android project with maven (android-maven-plugin)
- Error importing Maven Android Android project to Eclipse with ADT 20
- How do I use android libraries (apklibs) with maven and eclipse?
- Using maven android archetype with eclipse
- How to add Android libraries with resources without using Eclipse
- How to use android native libraries in Java using eclipse?
- How to build a Maven Android project in eclipse
- Error building Android project with Maven
- Inside Eclipse Android project run Java classes with main(String[] args) as Java Application causes "Invalid layout of java.lang.String at value"
- Issue with build Android NDK project
- How to include http library in Android Project using M preview in Eclipse ant build
- Maven 2.2.1 fails to build EAR project with m2eclipse
- How to build Android project with Ant that depends on Java project?
- Using Android project with Team Foundation Server 2010 and branching. Is there a simpler way?
- Using third party libraries in android project
- How to include the jars referenced in "Java Build Path" section of an Eclipse project in a jar file generated with Ant using a build.xml file
- Java Project with native libraries for different platforms
- Creating a new project in Eclipse using Maven as build tool for Google App Engine project
- Android is it safe to use github libraries with maven
- Importing Eclipse project with 2 libraries to Android Studio
- Android Eclipse test projects cannot be used with a project being built in an Android build tree
- Build Failure in the First Maven Project using Eclipse
- Compilation error when trying to build a maven project with JAVA custom annotation which has ENUM variables defined in it
- failed to build project in eclipse with android after add blackberry
- How to debug an OSGi Bundle inside eclipse using maven structured project
- Android library project with native code packages library twice in the APK
- Creating a war file of the whole project and a jar file for a class with main method (along with the dependent classes and jar files) using maven
- Add external jar to the project and build process using maven
More Query from same tag
- Keep Variable Value while recreating Activity
- 'HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted. | When I copy-of result of set:distinct
- how do I remotely call a function of an applet that is just being debugged in Eclipse?
- Connect to MySQL in eclipse java ee
- UIMA for structured data
- Changing between the generated diagrams txtUML
- J2ME emulator does not appear to open in Eclipse
- Quickblox Q-municate in eclipse ide
- Best program for syncing between Windows 7 Client and Linux Server
- Eclipse doesn't do any hyperlinks or at least highlight the syntax of some of the *.h files and *.S
- Working with Java; HashMaps and ArrayLists not compiling in Eclipse or BlueJay
- Eclipse - [file name] cannot be resolved
- Problem with Webview app
- Appium error : A new session could not be created. (Original error: 'java -version' failed. Error: spawn ENOENT)
- how to get full path of the current file including the src file in java
- How to move "WEB-INF/lib" folder to a sub folder in a Java Dynamic Web App?
- How to programmatically/ automatically run OSGi applications
- Android and java
- How to obtain Play! framework's Javadocs?
- Stanford Eclipse not building applications properly
- Eclipse with m2e not building tests
- Why do existing imported projects not run in my Eclipse?
- How to get eclipse Helios to recognise HTML5 elements
- Getting error in eclipse for spock's @Shared annotation
- When I sign Android Project, it is doesnt work
- Compile dependent module in Intellij project
- How to develop Eclipse plugins in clojure?
- How to stop Eclipse from trying to run XML files?
- How to use Java API?
- PyDev can't find machine learning data