小编Fin*_*pul的帖子

错误: - android studio中的任务':app:dexDebug'执行失败

我新推出的Android项目启动了一个新的默认项目.每次我尝试启动应用程序时都会出现此错误:

的build.gradle(模块:APP)

apply plugin: 'com.android.application'

android {
    compileSdkVersion 21
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "com.example.jdevani.validationdemo"
        minSdkVersion 8
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:21.0.3'
}
Run Code Online (Sandbox Code Playgroud)

的build.gradle(项目:EmerGencyHelp)

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.1.0'

        // NOTE: Do not place your application dependencies here; …
Run Code Online (Sandbox Code Playgroud)

java android build.gradle

10
推荐指数
1
解决办法
8295
查看次数

标签 统计

android ×1

build.gradle ×1

java ×1