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

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...

巴扎黑

請顯示您的專案結構和「build.gradle」檔案

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!