Skip to content Skip to sidebar Skip to footer

Created Jar With Gradle, When Imported A Class Cannot See The Others In Same Package

I've been trying to use gradle to create a jar of my library module (an SDK that I'm building) with this task. task sourcesJar(type: Jar) { archiveName='here.jar' from andr

Solution 1:

Use this (See change in from )

task sourcesJar(type: Jar) {
    archiveName='here.jar'from android.sourceSets.main.output
}

This should create the jar with classes. Refer section 27.7.3 in Gradle User Guide for example Gradle User Guide is good source to start with.

Post a Comment for "Created Jar With Gradle, When Imported A Class Cannot See The Others In Same Package"