Android 安卓任务';清洁';在根项目[Jenkins]中找不到

Android 安卓任务';清洁';在根项目[Jenkins]中找不到,android,jenkins,Android,Jenkins,我正在使用詹金斯构建我的android应用程序 但我面临以下错误 失败:生成失败,出现异常 错误:在根项目“ProjectName”中找不到任务“clean” 尝试了此解决方案,但无法解决我的问题 下面是我的身材 apply plugin: 'com.android.application' apply plugin:'base' android { compileSdkVersion 23 buildToolsVersion

我正在使用詹金斯构建我的android应用程序

但我面临以下错误

失败:生成失败,出现异常

  • 错误:在根项目“ProjectName”中找不到任务“clean”
尝试了此解决方案,但无法解决我的问题

下面是我的身材

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'      
    }     

你能把你的gradlew构建命令和目录结构添加到你的代码中吗?你能让我知道我应该如何将命令添加到代码中而不是代码中吗。在你的问题上分开。只想知道您是否在正确的目录中触发命令