BigKarel / maven-android-plugin

Automatically exported from code.google.com/p/maven-android-plugin
0 stars 0 forks source link

NativeLibsAsDependencies does not work in 3.6.0 #404

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Add native library as described in 
https://code.google.com/p/maven-android-plugin/wiki/NativeLibsAsDependencies
2. mvn clean install
3. libs folder is empty in the generated apk

What is the expected output?
libs folder with armeabi

What do you see instead?
empty libs folder

What version of maven-android-plugin are you using?
3.6.0 

What are the complete output lines of "mvn -version" on your machine?
Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500)
Maven home: /usr/share/maven
Java version: 1.6.0_29, vendor: Apple Inc.
Java home: /Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.8.4", arch: "x86_64", family: "mac"

Please provide any additional information below.

Note: change the plugin version back to 3.5.0, everything works as expected

Original issue reported on code.google.com by yonyf...@gmail.com on 11 Jul 2013 at 9:25

GoogleCodeExporter commented 9 years ago
This issue is a duplicate of #372 - 
https://code.google.com/p/maven-android-plugin/issues/detail?id=372

Original comment by charles....@gmail.com on 12 Jul 2013 at 11:33

GoogleCodeExporter commented 9 years ago
I just moved from 3.5.1 to 3.6.0 and getting the above mentioned behavior.

"libs folder is empty in the generated apk"

Original comment by p.puska...@gmail.com on 8 Nov 2013 at 6:10

GoogleCodeExporter commented 9 years ago
I got it working by specifying a classifier field. e.g. 

  <dependency>
    <groupId>com.acme.android</groupId>
    <artifactId>libsample_jni</artifactId>
    <version>0.1</version>
    <scope>runtime</scope>
    <classifier>armeabi-v7a</classifier>
    <type>so</type>
  </dependency>

Just have to make sure you update the repository with a classifier also

Original comment by yonyf...@gmail.com on 8 Nov 2013 at 6:17

GoogleCodeExporter commented 9 years ago
We are no longer using the issue tracking system on Google Code. Please refile 
this issue on https://github.com/jayway/maven-android-plugin/issues if you 
still have this problem with the latest release of the Android Maven Plugin

Original comment by mosa...@gmail.com on 19 May 2014 at 4:20