Andriod Task' clean'在根项目中找不到[Jenkins]

时间:2018-05-09 08:31:50

标签: android jenkins

我使用Jenkins构建我的Android应用程序。

但我面临以下错误

  

失败:构建因异常而失败。

     
      
  • 出了什么问题:任务'清洁'在根项目' ProjectName'。
  • 中找不到   

试过这个解决方案,但无法解决我的问题 Stackoverflow Solution

以下是我的build.gradle

apply plugin: 'com.android.application'     
apply plugin:'base'

android {    
        compileSdkVersion 23      
        buildToolsVersion '23.0.2'      
        useLibrary 'org.apache.http.legacy'     
        defaultConfig {      
            applicationId "com.xyz.xxx"     
            minSdkVersion 15     
            targetSdkVersion 23    
            versionCode 12     
            versionName "1.0.2"     
            multiDexEnabled true     
        }     
        buildTypes {     
            release {     
                minifyEnabled false    
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 
               'proguard-rules.pro'     
            }     
        }     
        dexOptions {     
            jumboMode true      
        }     

    }     

    dependencies {     
        compile fileTree(dir: 'libs', include: ['*.jar'])      
        compile 'com.android.support:appcompat-v7:23.0.1'      
        compile 'com.android.support:design:23.3.0'         
        compile files('libs/guava-r09.jar')        
        compile 'com.android.support:multidex:1.0.0'      
        compile 'com.android.support:recyclerview-v7:23.1.1'      
        compile project(':library')      
        compile 'com.google.android.gms:play-services-appindexing:8.1.0'      
    }     

0 个答案:

没有答案