android - Bug:Task "not found in project ':app'"
大家讲道理
大家讲道理 2017-04-17 13:18:47
0
2
417

when i build android code,

occur problem:

Error:FAILURE: Build failed with an exception.

  • What went wrong:
    Task '' not found in project ':app'.
  • Try:
    Run gradle tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

apply plugin: 'com.android.application'

buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:1.0.0"
}
}

android {
compileSdkVersion 19
buildToolsVersion '20.0.0'
defaultConfig {
applicationId 'com.jhp.sida'
minSdkVersion 14
targetSdkVersion 19
versionCode 1
versionName '1.0.0'
}
buildTypes {
release {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}

lintOptions {
disable 'InvalidPackage'
}

packagingOptions {
exclude 'META-INF/services/javax.annotation.processing.Processor'
}
sourceSets {
main {
jniLibs.srcDirs = ['src/main/jniLibs']
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
}

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
小葫芦

Resolved
http://stackoverflow.com/questions/25172006/android-studio-build-fails...

巴扎黑

please show your project struct and 'build.gradle' file

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!