Add in Gradle:
Task clearJar (type: Delete) {
Delete 'build/outputs/yourname. Jar'
}
Task makeJar (type: Copy) {
The from (' build/intermediates/bundles/release/')
Into (' build outputs/')
Include (' classes. The jar)
Rename (' classes. The jar ', 'yourname. Jar)
}
MakeJar. DependsOn (clearJar, build)
Then run:
Gradlew makejar
Command,
This will generate the jar package they want,
Is obtained using generated and has built a jar packages, returns NoClassDefFoundError error;
CodePudding user response:
Someone, pleaseCodePudding user response:
To solve, I also met the problem