Java – import swagger into an existing project in Android studio

Hello, I want to add the zip generated by swagger to the gradle driven Android project of Android studio. Whenever the swagger file changes, which method is the best for continuous import?

Now I'm doing it

mvn package

In the unpacked directory of the swagger UI generator, then I copied the jar generated by MVN to LIBS in the Android project. I also copied the dependencies from the generated gradle file

I'm sure someone knows how to handle the swagger in Android studio in a more elegant way

Thanks for your help.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>