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

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

大家讲道理
大家讲道理

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

全部回复(2)
小葫芦

已经解决
http://stackoverflow.com/questions/25172006/android-studio-build-fails...

巴扎黑

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

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!