2016-07-05 38 views
2

嗨,大家好,我希望你能幫助我,執行失敗的任務「應用程序:transformClassesWithInstantRunForDebug

如果我想運行我的申請,我得到這個錯誤

Error:Execution failed for task ':app:transformClassesWithInstantRunForDebug'. java.lang.NullPointerException (no error message)

我的搖籃看起來像這樣

pply plugin: 'com.android.application' 

android { 
    compileSdkVersion 24 
    buildToolsVersion "24.0.0" 

    defaultConfig { 
     applicationId "com.example.herold.datenaufnahme" 
     minSdkVersion 16 
     targetSdkVersion 24 
     versionCode 1 
     versionName "1.0" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 

dependencies { 
    compile fileTree(include: ['*.jar'], dir: 'libs') 
    testCompile 'junit:junit:4.12' 
    compile 'com.android.support:appcompat-v7:24.0.0' 
    compile project(':EMDK') 
} 

回答

3

這事與我,當我試圖在我的項目級別升級gradle這個插件版本,這是

classpath'com.android.tools.build:gradle:2.1.3'

然後我升級到2.2-beta,然後我得到了同樣的錯誤。

將其設回'2.1.3'爲我修好了

相關問題