sktverma / maven-android-plugin

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

AAR doesn't include generated android annotation classes #436

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

We are using version 3.8.1 for packaging APKLIB for our library code. The 
APKLIB generated is working properly. Then we tried packaging the same library 
code to AAR. The AAR package is generated but when used in an app, the 
annotation classes in the library AAR seems to be missing.

We are getting this when tested:
E/AndroidRuntime(17227): java.lang.RuntimeException: Unable to resume activity 
{com.test/com.test.activity.SomeActivity_}: java.lang.IllegalArgumentException: 
Target must not be null. 

Here's a snippet of our plugin configuration in pom.xml:
                <plugin>
                    <groupId>com.jayway.maven.plugins.android.generation2</groupId>
                    <artifactId>android-maven-plugin</artifactId>
                    <version>3.8.1</version>
                    <configuration>
                        <sdk>
                            <platform>17</platform>
                        </sdk>
                        <undeployBeforeDeploy>true</undeployBeforeDeploy>
                    </configuration>
                    <extensions>true</extensions>
                </plugin>

Do we need to update the configuration to support annotations?

Thanks!

Maven version: Apache Maven 3.1.1

Original issue reported on code.google.com by donzym...@gmail.com on 12 Dec 2013 at 10:33

GoogleCodeExporter commented 9 years ago
Please check with the new 3.8.2-SNAPSHOT version from 2013-12-17

Original comment by mosa...@gmail.com on 18 Dec 2013 at 7:00

GoogleCodeExporter commented 9 years ago
Should be fixed with 3.8.2

Original comment by mosa...@gmail.com on 31 Dec 2013 at 6:58