杰克和吉尔和destinationDir

mrr*_*aat 18 android-jack-and-jill

谷歌正式发布了他们的博客上提到的杰克和吉尔http://android-developers.blogspot.fr/2014/12/hello-world-meet-our-new-experimental.html

但是,如果我使用以下属性:

defaultConfig {
    applicationId 'xxx'
    minSdkVersion 10
    targetSdkVersion 19
    versionCode 162
    versionName 'xxx'
    // Enabling multidex support.
    multiDexEnabled true
    testInstrumentationRunner "android.support.multidex.MultiDexTestRunner"
    manifestPlaceholders = [ cappId:"xxx",cappLog:"false" ]
    useJack = true
}
Run Code Online (Sandbox Code Playgroud)

我收到以下错误

Error:Cannot get property 'destinationDir' on null object
Run Code Online (Sandbox Code Playgroud)

如果我评论使用Jack属性我没有问题

我知道这是一个实验工具,但你知道我该如何解决这个问题?

c0n*_*t0r -3

您使用的是 Retro-lambda、dagger2 或任何其他注释处理库吗?在这种情况下,您需要手动指定处理器。

请参阅此线程:https ://github.com/evant/gradle-retrolambda/issues/71