I have recently switched from Eclipse to IntelliJ and I have an Android Service I want to export as a JAR, including all dependencies but not with the Service APK itself. This is a trivial task on Eclipse, but I seem unable to do this in IntelliJ despite having (seemingly) tried all possible combinations.
The closest attempt is as follows: Project Structure > Artifacts > Add > From module dependencies (with "extract to target jar"). This generates a JAR that effectively includes all dependencies and linked projects compile successfully, but unfortunately also contains the service APK which is +50% of the total JAR size.
Other JAR generation options produce JARs that don't include the APK but fail to compile correctly (generally it cannot find a class that is in a dependency JAR inside the service JAR, even if this JAR specified in the manifest class-path).
Is there any way to generate the JAR without the APK?
Thanks in advance.
0 comments:
Post a Comment