2017-04-10 178 views
1

money_of_my是我的模塊。當我運行Gradle Task :money_of_my:dependencies時,會發生一些錯誤。Android Gradle錯誤

搖籃Bulid消息稱:

Information:Gradle tasks[:money_of_my:dependencies] 
Error:\--- org.hamcrest:hamcrest-core:1.3 
Error:\--- org.hamcrest:hamcrest-core:1.3 
Error:+--- com.android.support:support-compat:25.0.0 
Error:| \--- com.android.support:support-annotations:25.0.0 
Error:+--- com.android.support:support-media-compat:25.0.0 
Error:| \--- com.android.support:support-compat:25.0.0 (*) 
Error:+--- com.android.support:support-core-utils:25.0.0 
Error:| \--- com.android.support:support-compat:25.0.0 (*) 
Error:+--- com.android.support:support-core-ui:25.0.0 
Error:| \--- com.android.support:support-compat:25.0.0 (*) 
Error:\--- com.android.support:support-fragment:25.0.0 
Error:+--- com.android.support:support-compat:25.0.0 (*) 
Error:+--- com.android.support:support-media-compat:25.0.0 (*) 
Error:+--- com.android.support:support-core-ui:25.0.0 (*) 
Error:\--- com.android.support:support-core-utils:25.0.0 (*) 
Error:\--- com.android.support:support-compat:25.0.0 (*) 
Error:+--- com.android.support:support-compat:25.0.0 
Error:| \--- com.android.support:support-annotations:25.0.0 
Error:+--- com.android.support:support-media-compat:25.0.0 
Error:| \--- com.android.support:support-compat:25.0.0 (*) 
Error:+--- com.android.support:support-core-utils:25.0.0 
Error:| \--- com.android.support:support-compat:25.0.0 (*) 
Error:+--- com.android.support:support-core-ui:25.0.0 
Error:| \--- com.android.support:support-compat:25.0.0 (*) 
Error:\--- com.android.support:support-fragment:25.0.0 
Error:+--- com.android.support:support-compat:25.0.0 (*) 
Error:+--- com.android.support:support-media-compat:25.0.0 (*) 
Error:+--- com.android.support:support-core-ui:25.0.0 (*) 
Error:\--- com.android.support:support-core-utils:25.0.0 (*) 
Error:\--- com.android.support:support-compat:25.0.0 (*) 
Error:+--- com.android.support:support-compat:25.0.0 
Error:| \--- com.android.support:support-annotations:25.0.0 
Error:+--- com.android.support:support-media-compat:25.0.0 
Error:| \--- com.android.support:support-compat:25.0.0 (*) 
Error:+--- com.android.support:support-core-utils:25.0.0 
Error:| \--- com.android.support:support-compat:25.0.0 (*) 
Error:+--- com.android.support:support-core-ui:25.0.0 
Error:| \--- com.android.support:support-compat:25.0.0 (*) 
Error:\--- com.android.support:support-fragment:25.0.0 
Error:+--- com.android.support:support-compat:25.0.0 (*) 
Error:+--- com.android.support:support-media-compat:25.0.0 (*) 
Error:+--- com.android.support:support-core-ui:25.0.0 (*) 
Error:\--- com.android.support:support-core-utils:25.0.0 (*) 
Error:\--- com.android.support:support-compat:25.0.0 (*) 
Error:+--- com.android.support:support-compat:25.0.0 
Error:| \--- com.android.support:support-annotations:25.0.0 
Error:+--- com.android.support:support-media-compat:25.0.0 
Error:| \--- com.android.support:support-compat:25.0.0 (*) 
Error:+--- com.android.support:support-core-utils:25.0.0 
Error:| \--- com.android.support:support-compat:25.0.0 (*) 
Error:+--- com.android.support:support-core-ui:25.0.0 
Error:| \--- com.android.support:support-compat:25.0.0 (*) 
Error:\--- com.android.support:support-fragment:25.0.0 
Error:+--- com.android.support:support-compat:25.0.0 (*) 
Error:+--- com.android.support:support-media-compat:25.0.0 (*) 
Error:+--- com.android.support:support-core-ui:25.0.0 (*) 
Error:\--- com.android.support:support-core-utils:25.0.0 (*) 
Error:\--- com.android.support:support-compat:25.0.0 (*) 
Error:\--- org.hamcrest:hamcrest-core:1.3 
Error:+--- com.android.support:support-compat:25.0.0 
Error:| \--- com.android.support:support-annotations:25.0.0 
Error:+--- com.android.support:support-media-compat:25.0.0 
Error:| \--- com.android.support:support-compat:25.0.0 (*) 
Error:+--- com.android.support:support-core-utils:25.0.0 
Error:| \--- com.android.support:support-compat:25.0.0 (*) 
Error:+--- com.android.support:support-core-ui:25.0.0 
Error:| \--- com.android.support:support-compat:25.0.0 (*) 
Error:\--- com.android.support:support-fragment:25.0.0 
Error:+--- com.android.support:support-compat:25.0.0 (*) 
Error:+--- com.android.support:support-media-compat:25.0.0 (*) 
Error:+--- com.android.support:support-core-ui:25.0.0 (*) 
Error:\--- com.android.support:support-core-utils:25.0.0 (*) 
Error:\--- com.android.support:support-compat:25.0.0 (*) 
Information:BUILD SUCCESSFUL 
Information:Total time: 1.766 secs 
Information:73 errors 
Information:0 warnings 
Information:See complete output in console 

爲圖片:

as picture

我不知道這件事,我的應用程序可以在我的Genymotion運行。我想問問爲什麼發生這些錯誤,如果我忽略它們,會出現什麼問題?

bulid.gradle如下:

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 25 
    buildToolsVersion '25.0.0' 

    defaultConfig { 
     applicationId "com.chase.cn.money_of_my" 
     minSdkVersion 17 
     targetSdkVersion 24 
     versionCode 1 
     versionName "1.0.0" 

     testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
     renderscriptTargetApi 24 
     renderscriptSupportModeEnabled true 

    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 

dependencies { 
    compile fileTree(include: ['*.jar'], dir: 'libs') 
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 
     exclude group: 'com.android.support', module: 'support-annotations' 
    }) 
    compile 'com.android.support:appcompat-v7:25.0.0' 
    testCompile 'junit:junit:4.12' 
    compile 'com.github.SwiftyWang:TopToastBar:1.1.4' 
    compile files('libs/libammsdk.jar') 
    compile files('libs/nineoldandroids-2.4.0.jar') 
    compile files('libs/xUtils-2.6.14.jar') 
    compile files('libs/mpandroidchartlibrary-2-2-4.jar') 
    compile 'com.kyleduo.switchbutton:library:1.4.4' 
    compile 'me.shaohui:bottomdialog:1.1.9' 
    compile 'com.wonderkiln:blurkit:1.0.0' 
    compile 'com.android.support:recyclerview-v7:25.0.0' 
} 
+1

請發佈您的build.gradle文件。 –

+0

我已經發布了。 –

回答

0

嘗試下面這種解決方案。這可能對您有所幫助。 Android Studio: Where is the Compiler Error Output Window? 對於你的問題'爲什麼會發生這些錯誤,如果我忽略它們,會出現什麼問題?',我認爲下面的解釋會有幫助。 Android Studio and Gradle build errorGradle Goodness: Continue Build Even with Failed Tasks

+0

我讀過這些,我的應用程序可以成功構建,但是當我運行':money_of_my:dependencies'時仍然出錯。 –