2017-10-07 211 views
2

我正在設置Jenkins以使用我們的Android應用程序。 我得到源代碼並嘗試構建它。Jenkins構建失敗 - Android應用程序

構建失敗,出現以下消息:

10:43:35.419 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
10:43:35.419 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception. 
10:43:35.420 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
10:43:35.420 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong: 
10:43:35.420 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] A problem occurred configuring project ':mobile'. 
10:43:35.420 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Failed to notify project evaluation listener. 
10:43:35.420 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not initialize class com.android.sdklib.repository.AndroidSdkHandler 
10:43:35.421 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
10:43:35.421 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Exception is: 
10:43:35.421 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':mobile'. 

A problem occurred configuring project ':mobile'. 
> Failed to notify project evaluation listener. 
    > Could not initialize class com.android.sdklib.repository.AndroidSdkHandler 

一個解決方案的任何想法?找不到任何有用的東西

回答