为什么这些依赖项会在build.gradle中重新排列? :Android Studio

时间:2017-05-17 16:58:07

标签: android android-studio build.gradle

我正在使用Android Studio 2.3。在我的应用级别构建gradle中,我有这些依赖项。

    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.android.support:design:25.3.1'
    compile 'com.github.bumptech.glide:glide:3.6.1'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.google.firebase:firebase-core:10.2.4'
    compile 'com.google.firebase:firebase-database:10.2.4'
    compile 'com.google.firebase:firebase-storage:10.2.4'
    compile 'com.google.firebase:firebase-auth:10.2.4'
    compile 'com.firebaseui:firebase-ui-auth:1.2.0'
    compile 'com.google.firebase:firebase-messaging:10.2.4'
    compile 'com.google.android.gms:play-services-auth:10.2.4'
    testCompile 'junit:junit:4.12'

并非所有时间,但有时我在源代码中进行少量修改后运行我的应用程序(基本上是活动)。它重新排列了如下所示的顺序,并在LogCat中给出了构建错误。为什么?

compile
    'com.android.support:appcompat-v7:25.3.1'compile
    'com.android.support:design:25.3.1'compile
    'com.github.bumptech.glide:glide:3.6.1'compile
    'com.android.support.constraint:constraint-layout:1.0.2'compile
    'com.google.firebase:firebase-core:10.2.4'compile 'com.google.firebase:firebase-database:10.2.4'
    compile 'com.google.firebase:firebase-storage:10.2.4'
    compile 'com.google.firebase:firebase-auth:10.2.4'
    compile 'com.firebaseui:firebase-ui-auth:1.2.0'
    compile 'com.google.firebase:firebase-messaging:10.2.4'
    compile 'com.google.android.gms:play-services-auth:10.2.4'
    testCompile 'junit:junit:4.12'

1 个答案:

答案 0 :(得分:-3)

你试过用过吗?     编译('com.frebase ..')

代替?