2015-04-23 79 views
1

我想我的工程中的使用特拉維斯特拉維斯生成錯誤

這裏結合我travis.yml

language: android 
android: 
    components: 
    # The BuildTools version used by your project 
    - build-tools-22.0.1 
    # The SDK version used to compile your project 
    - android-22 
    # - extra 
    # - tools 
    # - platform-tools 

    # Specify at least one system image, 
    # if you need to run emulator(s) during your tests 
    - sys-img-armeabi-v7a-android-19 
    - sys-img-x86-android-17 

before_install: cd MyProject 
install: ./gradlew clean build 
script: ./gradlew check 

notifications: 
    email: 
    - [email protected] 

我的項目結構是這樣的:

Git Repo-> 
- MyProject -> app, gradlew, and all android files are here 
- .travis.yml 

現在我越來越此錯誤

> Configuring > 2/2 projectsBuild failed with an exception. 
> Configuring > 2/2 projects> Configuring > 2/2 projects> Configuring > 2/2 projects> Configuring > 2/2 projects occurred configuring project ':app'. 
> Configuring > 2/2 projects> 
> Configuring > 2/2 projectspile'. 
> Configuring > 2/2 projects> Configuring > 2/2 projects> 
> Configuring > 2/2 projects.android.support:appcompat-v7:22.0.0. 
> Configuring > 2/2 projects> Configuring > 2/2 projects/com/android/support/appcompat-v7/22.0.0/appcompat-v7-22.0.0.pom 
> Configuring > 2/2 projects/com/android/support/appcompat-v7/22.0.0/appcompat-v7-22.0.0.jar 
> Configuring > 2/2 projects2repository/com/android/support/appcompat-v7/22.0.0/appcompat-v7-22.0.0.pom 
> Configuring > 2/2 projects2repository/com/android/support/appcompat-v7/22.0.0/appcompat-v7-22.0.0.jar 
> Configuring > 2/2 projects2repository/com/android/support/appcompat-v7/22.0.0/appcompat-v7-22.0.0.pom 
> Configuring > 2/2 projects2repository/com/android/support/appcompat-v7/22.0.0/appcompat-v7-22.0.0.jar 
> Configuring > 2/2 projects> Configuring > 2/2 projectsbaJuice:app:unspecified 
> Configuring > 2/2 projects> Configuring > 2/2 projects> Configuring > 2/2 projects> Configuring > 2/2 projects--stacktrace 
> Configuring > 2/2 projects> Configuring > 2/2 projects--info 
> Configuring > 2/2 projects> Configuring > 2/2 projects--debug 
> Configuring > 2/2 projectsore log output. 
> Configuring > 2/2 projects> Configuring > 2/2 projectsBUILD FAILED 
> Configuring > 2/2 projects> Configuring > 2/2 projects> Configuring > 2/2 projectse: 19.193 secs 
> Configuring > 2/2 projects 
The command "./gradlew clean build" failed and exited with 1 during . 

回答

0

配置> 2/2的項目>配置> 2/2 projectsBUILD失敗

你可以建立本地使用gradlew乾淨的構建?

+0

非常感謝@AlJacinto的回覆。它在當地完美建造。我已經將MyProject文件夾中的所有內容都移出了,現在Travis文件與build.gradle並行,並且一切正常。 –