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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With