https://docs.gradle.org/current/userguide/dependency_management.html#sec:flat_dir_resolver repositories { flatDir { dirs 'lib' } flatDir { dirs 'lib1', 'lib2' } } 转载于:https://www.cnblogs.com/lfzxs/p/5311674.html