문제

I am developing an Android class library that compiles to an apklib using Maven. However, when I build the library project (mvn clean install), my dependent JARs (of which there are about 12) are not included in the apklib. I know that the Assembly plugin can be used to accomplish this but am not sure what the appropriate steps are to be able to package an apklib with dependent JARs.

도움이 되었습니까?

해결책

The apklib format should NOT include the dependencies. They are just declared in its pom.

When you then use the apklib in an actual application and add a dependency to it in your pom, the Android Maven Plugin will include the apklib as well as all its dependencies into your application.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top