2016-06-23 3 views
0

내 응용 gradle 컴파일되지 않습니다.Android gradle 오류 "원인 : 시작 실패 : 빌드 파일"

그것은 다음 오류 표시 :

Error

그리고 내 전체 Gradle을 코드는 다음과 같습니다

apply plugin: 'com.android.application' 
model { 
    android { 
     compileSdkVersion 21 
     buildToolsVersion '23.0.2' 

     defaultConfig { 
      applicationId "formiik.com.mobiik.www" 
      minSdkVersion 16 
      targetSdkVersion 19 
      versionCode 160 
      versionName "5.3.desa" 
      multiDexEnabled true 
     } 
     compileOptions { 
      sourceCompatibility JavaVersion.VERSION_1_7 
      targetCompatibility JavaVersion.VERSION_1_7 
     } 

     buildTypes { 
      release { 
       minifyEnabled true 
       proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' 
      } 
     } 
     dexOptions { 
      incremental true 
      javaMaxHeapSize "4g" 
     } 
     lintOptions { 
      disable 'MissingTranslation' 
     } 
} 


def openCVAndroidSdkDir = "/Users/jonathan/Development/Formiik/Desarollo/formiik-android-s/Formiik/opencv_sdk/sdk/native" 

android.ndk { 
    moduleName = "native" 
    cppFlags += "-I${file(openCVAndroidSdkDir + "/jni/include")}".toString() 
    cppFlags += "-frtti" 
    cppFlags += "-fexceptions" 
    ldLibs += ["log", "opencv_java3"] 
    stl = "gnustl_static" 
} 

android.productFlavors { 

    create("arm") { 
     ndk.abiFilters += "armeabi" 
     ndk.ldFlags += "-L${file('src/main/jniLibs/armeabi')}".toString() 
    } 
    create("arm7") { 
     ndk.abiFilters += "armeabi-v7a" 
     ndk.ldFlags += "-L${file('src/main/jniLibs/armeabi-v7a')}".toString() 
    } 
    create("arm8") { 
     ndk.abiFilters += "arm64-v8a" 
     ndk.ldFlags += "-L${file('src/main/jniLibs/arm64-v8a')}".toString() 
    } 
} 
} 

repositories { 
    maven { url 'https://zendesk.artifactoryonline.com/zendesk/repo' } 
    maven { url "https://jitpack.io" } 
} 

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    compile project(':volley') 
    compile 'com.android.support:support-v13:23.1.1' 
    compile 'com.android.support:cardview-v7:23.1.1' 
    compile 'com.android.support:recyclerview-v7:23.1.1' 
    compile 'com.google.android.gms:play-services-base:8.4.0' 
    compile 'com.google.android.gms:play-services-gcm:8.4.0' 
    compile 'com.google.android.gms:play-services-maps:8.4.0' 
    compile 'com.google.android.gms:play-services-location:8.4.0' 
    compile 'com.crittercism:crittercism-android-agent:5.+' 
    compile 'com.github.jd-alexander:library:1.0.5' 
    compile 'com.google.code.gson:gson:2.3' 
    compile 'com.zendesk:sdk:1.3.2.2' 
    compile 'com.facebook.stetho:stetho:1.1.1' 
    compile 'com.facebook.stetho:stetho-okhttp:1.1.1' 
    compile 'com.cocosw:undobar:[email protected]' 
    compile 'net.lingala.zip4j:zip4j:1.3.2' 
    compile 'com.ocpsoft:ocpsoft-pretty-time:1.0.7' 
    compile 'in.srain.cube:ultra-ptr:1.0.10' 
    compile 'com.github.PhilJay:MPAndroidChart:v2.1.6' 
    compile 'com.github.ksoichiro:android-observablescrollview:1.+' 
    compile 'com.github.bumptech.glide:glide:3.6.1' 
    compile 'com.google.android.gms:play-services-appindexing:8.4.0' 
} 

나는 같은 Gradle을 구조 다른 프로젝트 (해당 프로젝트 작업을 통합하기 위해 노력하고있어 벌금). 그러나이 새로운 프로젝트에서 나는 그 오류를 얻는다. 당신의 도움을 주셔서 감사합니다.

답변

0

아직 평판이 좋지 않지만 Build > Clean을 사용해 보셨습니까? 그러면 Gradle과 관련된 문제, 특히 생성 된 파일과 관련된 문제를 해결할 수 있습니다.

관련 문제