I try to add the kryonet library with jar file, but I don't know how it must be added correctly in android-studio, libgdx project. https://github.com/EsotericSoftware/kryonet
I just added compile files('path/to/library.jar')
in dependencies in each module and all worked.