2016-09-20 4 views
4

을 그래서, 지금 안드로이드 스튜디오 2.2 안정 버전을 사용하여, 나는 2.2 버전으로 업데이트 스튜디오 후 응용 프로그램을 실행에 오류가 다음 얻을 :이 내 애플안드로이드 스튜디오 : 실행 태스크 앱 실패 transformClassesWithPreJackPackagedLibrariesForDebug

Error:Execution failed for task ':app:transformClassesWithPreJackPackagedLibrariesForDebug'. 
> java.lang.Boolean cannot be cast to java.lang.String 
be corrupt (this sometimes occurs after a network connection timeout.) 
<a href="syncProject">Re-download dependencies and sync project (requires network)</a></li><li>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. 
<a href="stopGradleDaemons">Stop Gradle build processes (requires restart)</a></li><li>Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes. 

입니다 - > build.gradle 파일 :

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 24 
    buildToolsVersion '24.0.2' 

    defaultConfig { 
     applicationId "com.example.proba" 
     minSdkVersion 15 
     targetSdkVersion 24 
     versionCode 1 
     versionName "1.0" 
     vectorDrawables.useSupportLibrary = true 
     jackOptions { 
      additionalParameters("jack.incremental": true) 
      enabled true 
     } 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 

    compileOptions { 
     incremental true 
     sourceCompatibility JavaVersion.VERSION_1_8 
     targetCompatibility JavaVersion.VERSION_1_8 
    } 

    packagingOptions { 
     exclude 'META-INF/DEPENDENCIES.txt' 
     exclude 'META-INF/DEPENDENCIES' 
     exclude 'META-INF/dependencies.txt' 
     exclude 'META-INF/LICENSE.txt' 
     exclude 'META-INF/LICENSE' 
     exclude 'META-INF/license.txt' 
     exclude 'META-INF/LGPL2.1' 
     exclude 'META-INF/NOTICE.txt' 
     exclude 'META-INF/NOTICE' 
     exclude 'META-INF/notice.txt' 
    } 
} 

repositories { 
    maven { 
     url "https://mint.splunk.com/gradle/" 
    } 
} 

dependencies { 
    compile fileTree(include: ['*.jar'], dir: 'libs') 
    compile 'com.android.support:appcompat-v7:24.2.1' 
    compile 'com.android.support:percent:24.2.1' 
    compile 'com.android.support:support-v4:24.2.1' 
    compile 'com.android.support:design:24.2.1' 
    compile 'com.jakewharton:butterknife:8.4.0' 
    compile 'com.jakewharton.timber:timber:4.3.1' 
    compile 'com.squareup.picasso:picasso:2.5.2' 
    compile 'com.splunk.mint:mint:5.0.0' 
    compile 'com.squareup.retrofit2:retrofit:2.1.0' 
    compile 'com.squareup.retrofit2:converter-gson:2.1.0' 
    compile 'com.squareup.okhttp3:logging-interceptor:3.3.1' 
    compile 'com.github.florent37:viewanimator:1.0.4' 
    compile 'de.hdodenhof:circleimageview:2.1.0' 
    compile 'net.danlew:android.joda:2.9.4.1' 
    testCompile 'junit:junit:4.12' 
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0' 
    compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha8' 
} 
+0

additionalParameters ("jack.incremental": true)를 제거하면 문제가 해결됩니다. 나는 여기에 버그 보고서를 제출했다. https://code.google.com/p/android/issues/detail?id=223658 – mystilleef

+0

감사합니다. @mystilleef 증분 플래그를 제거하고 v4를 지원했습니다. 24.2.1이 작동하면 잘 작동합니다. –

답변

3

"true"로 대신 true로합니다.

additionalParameters("jack.incremental": "true") 

이 기능이 작동되기를 바랍니다.

+0

감사합니다. "JackCompiler"를 사용하여 지금 –

+0

@ mr.boyfox 어떻게이 문제를 해결 했습니까? – siva