FlatDir configuration does not work in the centos

I have a problem when using gradle, the flatDir configuration does not work.

It is work well in windows, but i get the error in the centos, help me please .

The error info :

Resource missing. [HTTP GET: https://jcenter.bintray.com//DownloadModule//DownloadModule-.pom]
Resource missing. [HTTP HEAD: https://jcenter.bintray.com//DownloadModule//DownloadModule-.aar]

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ‘:OTT_LIB_HARDWARE_FITNESS’.

Could not resolve all dependencies for configuration ‘:OTT_LIB_HARDWARE_FITNESS:_debugPublishCopy’.
Could not find :DownloadModule:.
Required by:

  • Try:
    Run with --debug option to get more log output.

My build.gradle file :

flatDir{dirs ‘libs’}

dependencies {
compile fileTree(dir: ‘libs’, include: [‘*.jar’])
androidTestCompile(‘com.android.support.test.espresso:espresso-core:2.2.2’, {
exclude group: ‘com.android.support’, module: ‘support-annotations’
compile rootProject.ext.dependencies.appcompatv7
compile project(‘:OTT_LIB_LOG_LUTONG’)
testCompile ‘junit:junit:4.12’
compile rootProject.ext.dependencies.eventbus
compile rootProject.ext.dependencies.okhttp
compile(name: ‘DownloadModule’, ext: ‘aar’)
compile(name: ‘FitnessSDK’, ext: ‘aar’)

My centos enviroment :

OS : Linux 3.10.0-514.26.2.el7.x86_64 amd64
Jdk : 1.8.0_144
Gradle : 4.0.2
Groovy : 2.4.11
Android SDK : android-sdk_r24.4.1-linux