Home > Mobile >  When using AndroidStudio create Android Library Module export jar packages, use the jar times NoClas
When using AndroidStudio create Android Library Module export jar packages, use the jar times NoClas

Time:10-01

When using AndroidStudio create Android Library Module export jars, export method is as follows:
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, please

CodePudding user response:

To solve, I also met the problem
  • Related