Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unknown packaging type aar

Tags:

android

maven

I am converting android library project into maven project. I have given packaging type as "aar".

The android-maven-plugin version I am using is 4.1.0.

I am getting error as "unknown packaging type aar"

I am getting the similar error for packaging type 'apklib'

How to resolve the issue?

like image 700
Rikesh Subedi Avatar asked Aug 30 '25 16:08

Rikesh Subedi


1 Answers

According to the documentation and this blog, you have to include the android-maven-plugin in your pom.xml:

<plugin>
    <groupId>com.simpligility.maven.plugins</groupId>
    <artifactId>android-maven-plugin</artifactId>
    <version>4.1.0</version>

    <extensions>true</extensions>         
    <configuration>
        <sign>
            <debug>false</debug>
        </sign>
    </configuration>
</plugin>

If it's not recognized, I think you should try to download it manually. Btw, 'apklib' is deprecated, you should always use .aar instead.

like image 167
Sierra Avatar answered Sep 02 '25 16:09

Sierra