realm / realm-java

Realm is a mobile database: a replacement for SQLite & ORMs
http://realm.io
Apache License 2.0
11.46k stars 1.75k forks source link

Support Jack compiler #3038

Closed CaptnBlubber closed 7 years ago

CaptnBlubber commented 8 years ago

Goal

Enable Jack Compilation + Java 1.8 Compatibility.

Expected Results

Successful Builds

Actual Results

10:07:33.331 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.DefaultArtifactDependencyResolver] Resolving configuration ':app:_releaseCompile'
10:07:33.331 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.memcache.InMemoryCachedRepositoryFactory] Reusing in-memory cache for repo 'BintrayJCenter' [22da77b0d76ea8df17298218f3ec1f87].
10:07:33.332 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.memcache.InMemoryCachedRepositoryFactory] Reusing in-memory cache for repo 'BintrayJCenter2' [22da77b0d76ea8df17298218f3ec1f87].
10:07:33.332 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.memcache.InMemoryCachedRepositoryFactory] Reusing in-memory cache for repo '/Users/xxx/Library/Android/sdk/extras/android/m2repository' [38e4395b9d0d4cb93d221f0833724ae7].
10:07:33.333 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.memcache.InMemoryCachedRepositoryFactory] Reusing in-memory cache for repo '/Users/xxx/Library/Android/sdk/extras/google/m2repository' [37bcecab1e1add582fa34ca0a02abbac].
10:07:33.333 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.memcache.InMemoryCachedRepositoryFactory] Reusing in-memory cache for repo '/Users/xxx/Library/Android/sdk/extras/m2repository' [b9f28a2eb17383789ece090b424c293f].
10:07:33.334 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting configuration realmsample:app:unspecified(_releaseCompile).
10:07:33.334 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting dependency realmsample:app:unspecified(_releaseCompile) -> io.realm:realm-android-library:1.0.1(compile)
10:07:33.334 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Selecting new module version io.realm:realm-android-library:1.0.1
10:07:33.334 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver] Attempting to resolve component for io.realm:realm-android-library:1.0.1 using repositories [BintrayJCenter, BintrayJCenter2, /Users/xxx/Library/Android/sdk/extras/android/m2repository, /Users/xxx/Library/Android/sdk/extras/google/m2repository, /Users/xxx/Library/Android/sdk/extras/m2repository]
10:07:33.334 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver] Using io.realm:realm-android-library:1.0.1 from Maven repository 'BintrayJCenter'
10:07:33.334 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting dependency realmsample:app:unspecified(_releaseCompile) -> io.realm:realm-annotations:1.0.1(compile)
10:07:33.335 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Selecting new module version io.realm:realm-annotations:1.0.1
10:07:33.335 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver] Attempting to resolve component for io.realm:realm-annotations:1.0.1 using repositories [BintrayJCenter, BintrayJCenter2, /Users/xxx/Library/Android/sdk/extras/android/m2repository, /Users/xxx/Library/Android/sdk/extras/google/m2repository, /Users/xxx/Library/Android/sdk/extras/m2repository]
10:07:33.335 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver] Using io.realm:realm-annotations:1.0.1 from Maven repository 'BintrayJCenter'
10:07:33.335 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting configuration io.realm:realm-android-library:1.0.1(default).
10:07:33.335 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting dependency io.realm:realm-android-library:1.0.1(default) -> io.realm:realm-annotations:1.0.1(compile,runtime)
10:07:33.336 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting dependency io.realm:realm-android-library:1.0.1(default) -> com.getkeepsafe.relinker:relinker:1.2.1(compile,runtime)
10:07:33.336 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Selecting new module version com.getkeepsafe.relinker:relinker:1.2.1
10:07:33.336 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver] Attempting to resolve component for com.getkeepsafe.relinker:relinker:1.2.1 using repositories [BintrayJCenter, BintrayJCenter2, /Users/xxx/Library/Android/sdk/extras/android/m2repository, /Users/xxx/Library/Android/sdk/extras/google/m2repository, /Users/xxx/Library/Android/sdk/extras/m2repository]
10:07:33.336 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver] Using com.getkeepsafe.relinker:relinker:1.2.1 from Maven repository 'BintrayJCenter'
10:07:33.336 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting configuration io.realm:realm-annotations:1.0.1(default).
10:07:33.336 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting configuration io.realm:realm-annotations:1.0.1(compile).
10:07:33.336 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting configuration io.realm:realm-annotations:1.0.1(master).
10:07:33.336 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting configuration io.realm:realm-annotations:1.0.1(runtime).
10:07:33.337 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting configuration com.getkeepsafe.relinker:relinker:1.2.1(compile).
10:07:33.337 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting configuration com.getkeepsafe.relinker:relinker:1.2.1(master).
10:07:33.337 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting configuration com.getkeepsafe.relinker:relinker:1.2.1(runtime).
10:07:33.338 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.oldresult.TransientConfigurationResultsBuilder] Flushing resolved configuration data in Binary store in /private/var/folders/y1/xbrqg2bd421d9_n4fbqj2rbdr7ng2x/T/gradle4913487509014313876.bin. Wrote root realmsample:app:unspecified:_releaseCompile.
10:07:33.339 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.result.StreamingResolutionResultBuilder$RootFactory] Loaded resolution results (0.001 secs) from Binary store in /private/var/folders/y1/xbrqg2bd421d9_n4fbqj2rbdr7ng2x/T/gradle1191215567936447150.bin (exist: true)
10:07:33.470 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager] ADDED TRANSFORM(debug):
10:07:33.470 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Name: mergeJavaRes
10:07:33.470 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Task: transformResourcesWithMergeJavaResForDebug
10:07:33.471 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[PROJECT_LOCAL_DEPS], contentTypes=[RESOURCES], dependencies=[]}
10:07:33.479 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[/Users/xxx/.gradle/caches/modules-2/files-2.1/io.realm/realm-annotations/1.0.1/5908fb2bfce2ca505bb6b46204fbf7840d80b50e/realm-annotations-1.0.1.jar], folders=[], scopes=[EXTERNAL_LIBRARIES], contentTypes=[RESOURCES], dependencies=[prepareDebugDependencies, build dependencies configuration ':app:_debugApk' all dependencies]}
10:07:33.480 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[SUB_PROJECTS], contentTypes=[RESOURCES], dependencies=[prepareDebugDependencies, build dependencies configuration ':app:_debugApk' all dependencies]}
10:07:33.480 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[/Users/xxx/develop/realmsample/app/build/intermediates/sourceFolderJavaResources/debug], scopes=[PROJECT], contentTypes=[RESOURCES], dependencies=[processDebugJavaRes]}
10:07:33.480 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  OutputStream: IntermediateStream{rootLocation=/Users/xxx/develop/realmsample/app/build/intermediates/transforms/mergeJavaRes/debug, scopes=[PROJECT, PROJECT_LOCAL_DEPS, SUB_PROJECTS, SUB_PROJECTS_LOCAL_DEPS, EXTERNAL_LIBRARIES], contentTypes=[RESOURCES], dependencies=[transformResourcesWithMergeJavaResForDebug]}
10:07:33.517 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager] ADDED TRANSFORM(debug):
10:07:33.517 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Name: mergeJniLibs
10:07:33.517 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Task: transformNative_libsWithMergeJniLibsForDebug
10:07:33.517 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[PROJECT_LOCAL_DEPS], contentTypes=[NATIVE_LIBS], dependencies=[]}
10:07:33.517 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[/Users/xxx/.gradle/caches/modules-2/files-2.1/io.realm/realm-annotations/1.0.1/5908fb2bfce2ca505bb6b46204fbf7840d80b50e/realm-annotations-1.0.1.jar], folders=[], scopes=[EXTERNAL_LIBRARIES], contentTypes=[NATIVE_LIBS], dependencies=[prepareDebugDependencies, build dependencies configuration ':app:_debugApk' all dependencies]}
10:07:33.518 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[SUB_PROJECTS], contentTypes=[NATIVE_LIBS], dependencies=[prepareDebugDependencies, build dependencies configuration ':app:_debugApk' all dependencies]}
10:07:33.518 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[/Users/xxx/develop/realmsample/app/build/intermediates/jniLibs/debug], scopes=[PROJECT], contentTypes=[NATIVE_LIBS], dependencies=[mergeDebugJniLibFolders]}
10:07:33.518 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[/Users/xxx/develop/realmsample/app/build/intermediates/ndk/debug/lib], scopes=[PROJECT], contentTypes=[NATIVE_LIBS], dependencies=[[task ':app:compileDebugNdk']]}
10:07:33.518 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  OutputStream: IntermediateStream{rootLocation=/Users/xxx/develop/realmsample/app/build/intermediates/transforms/mergeJniLibs/debug, scopes=[PROJECT, PROJECT_LOCAL_DEPS, SUB_PROJECTS, SUB_PROJECTS_LOCAL_DEPS, EXTERNAL_LIBRARIES], contentTypes=[NATIVE_LIBS], dependencies=[transformNative_libsWithMergeJniLibsForDebug]}
10:07:33.546 [INFO] [com.android.build.gradle.tasks.factory.JavaCompileConfigAction] Incremental Java compilation disabled in variant debug as you are using an incompatible plugin
10:07:33.546 [INFO] [com.android.build.gradle.tasks.factory.JavaCompileConfigAction] Not using incremental javac compilation.
10:07:33.547 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager] ADDED TRANSFORM(debug):
10:07:33.547 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Name: preJackPackagedLibraries
10:07:33.547 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Task: transformClassesWithPreJackPackagedLibrariesForDebug
10:07:33.547 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[PROJECT_LOCAL_DEPS], contentTypes=[CLASSES], dependencies=[]}
10:07:33.548 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[/Users/xxx/.gradle/caches/modules-2/files-2.1/io.realm/realm-annotations/1.0.1/5908fb2bfce2ca505bb6b46204fbf7840d80b50e/realm-annotations-1.0.1.jar], folders=[], scopes=[EXTERNAL_LIBRARIES], contentTypes=[CLASSES], dependencies=[prepareDebugDependencies, build dependencies configuration ':app:_debugApk' all dependencies]}
10:07:33.548 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[SUB_PROJECTS], contentTypes=[CLASSES], dependencies=[prepareDebugDependencies, build dependencies configuration ':app:_debugApk' all dependencies]}
10:07:33.548 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[SUB_PROJECTS_LOCAL_DEPS], contentTypes=[CLASSES], dependencies=[prepareDebugDependencies, build dependencies configuration ':app:_debugApk' all dependencies]}
10:07:33.548 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  OutputStream: IntermediateStream{rootLocation=/Users/xxx/develop/realmsample/app/build/intermediates/transforms/preJackPackagedLibraries/debug, scopes=[PROJECT, PROJECT_LOCAL_DEPS, SUB_PROJECTS, SUB_PROJECTS_LOCAL_DEPS, EXTERNAL_LIBRARIES], contentTypes=[JACK], dependencies=[transformClassesWithPreJackPackagedLibrariesForDebug]}
10:07:33.553 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager] ADDED TRANSFORM(debug):
10:07:33.553 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Name: preJackRuntimeLibraries
10:07:33.553 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Task: transformClassesWithPreJackRuntimeLibrariesForDebug
10:07:33.554 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[PROVIDED_ONLY], contentTypes=[CLASSES], dependencies=[]}
10:07:33.554 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  OutputStream: IntermediateStream{rootLocation=/Users/xxx/develop/realmsample/app/build/intermediates/transforms/preJackRuntimeLibraries/debug, scopes=[PROVIDED_ONLY], contentTypes=[JACK], dependencies=[transformClassesWithPreJackRuntimeLibrariesForDebug]}
10:07:33.557 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager] ADDED TRANSFORM(debug):
10:07:33.557 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Name: jack
10:07:33.557 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Task: transformJackWithJackForDebug
10:07:33.557 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: IntermediateStream{rootLocation=/Users/xxx/develop/realmsample/app/build/intermediates/transforms/preJackPackagedLibraries/debug, scopes=[PROJECT, PROJECT_LOCAL_DEPS, SUB_PROJECTS, SUB_PROJECTS_LOCAL_DEPS, EXTERNAL_LIBRARIES], contentTypes=[JACK], dependencies=[transformClassesWithPreJackPackagedLibrariesForDebug]}
10:07:33.557 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Ref'edStream: IntermediateStream{rootLocation=/Users/xxx/develop/realmsample/app/build/intermediates/transforms/preJackRuntimeLibraries/debug, scopes=[PROVIDED_ONLY], contentTypes=[JACK], dependencies=[transformClassesWithPreJackRuntimeLibrariesForDebug]}
10:07:33.558 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  OutputStream: IntermediateStream{rootLocation=/Users/xxx/develop/realmsample/app/build/intermediates/transforms/jack/debug, scopes=[PROJECT, PROJECT_LOCAL_DEPS, SUB_PROJECTS, SUB_PROJECTS_LOCAL_DEPS, EXTERNAL_LIBRARIES], contentTypes=[DEX], dependencies=[transformJackWithJackForDebug]}
10:07:33.610 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager] ADDED TRANSFORM(debugUnitTest):
10:07:33.610 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Name: mergeJavaRes
10:07:33.611 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Task: transformResourcesWithMergeJavaResForDebugUnitTest
10:07:33.611 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[PROJECT_LOCAL_DEPS], contentTypes=[RESOURCES], dependencies=[]}
10:07:33.611 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[EXTERNAL_LIBRARIES], contentTypes=[RESOURCES], dependencies=[prepareDebugUnitTestDependencies, build dependencies configuration ':app:_debugUnitTestApk' all dependencies]}
10:07:33.611 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[SUB_PROJECTS], contentTypes=[RESOURCES], dependencies=[prepareDebugUnitTestDependencies, build dependencies configuration ':app:_debugUnitTestApk' all dependencies]}
10:07:33.611 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[/Users/xxx/develop/realmsample/app/build/intermediates/sourceFolderJavaResources/test/debug], scopes=[PROJECT], contentTypes=[RESOURCES], dependencies=[processDebugUnitTestJavaRes]}
10:07:33.611 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  OutputStream: IntermediateStream{rootLocation=/Users/xxx/develop/realmsample/app/build/intermediates/transforms/mergeJavaRes/test/debug, scopes=[PROJECT, PROJECT_LOCAL_DEPS, SUB_PROJECTS, SUB_PROJECTS_LOCAL_DEPS, EXTERNAL_LIBRARIES], contentTypes=[RESOURCES], dependencies=[transformResourcesWithMergeJavaResForDebugUnitTest]}
10:07:33.613 [INFO] [com.android.build.gradle.tasks.factory.JavaCompileConfigAction] Incremental Java compilation disabled in variant debugUnitTest as you are using an incompatible plugin
10:07:33.613 [INFO] [com.android.build.gradle.tasks.factory.JavaCompileConfigAction] Not using incremental javac compilation.
10:07:33.685 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager] ADDED TRANSFORM(release):
10:07:33.686 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Name: mergeJavaRes
10:07:33.686 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Task: transformResourcesWithMergeJavaResForRelease
10:07:33.686 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[PROJECT_LOCAL_DEPS], contentTypes=[RESOURCES], dependencies=[]}
10:07:33.686 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[/Users/xxx/.gradle/caches/modules-2/files-2.1/io.realm/realm-annotations/1.0.1/5908fb2bfce2ca505bb6b46204fbf7840d80b50e/realm-annotations-1.0.1.jar], folders=[], scopes=[EXTERNAL_LIBRARIES], contentTypes=[RESOURCES], dependencies=[prepareReleaseDependencies, build dependencies configuration ':app:_releaseApk' all dependencies]}
10:07:33.686 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[SUB_PROJECTS], contentTypes=[RESOURCES], dependencies=[prepareReleaseDependencies, build dependencies configuration ':app:_releaseApk' all dependencies]}
10:07:33.686 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[/Users/xxx/develop/realmsample/app/build/intermediates/sourceFolderJavaResources/release], scopes=[PROJECT], contentTypes=[RESOURCES], dependencies=[processReleaseJavaRes]}
10:07:33.686 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  OutputStream: IntermediateStream{rootLocation=/Users/xxx/develop/realmsample/app/build/intermediates/transforms/mergeJavaRes/release, scopes=[PROJECT, PROJECT_LOCAL_DEPS, SUB_PROJECTS, SUB_PROJECTS_LOCAL_DEPS, EXTERNAL_LIBRARIES], contentTypes=[RESOURCES], dependencies=[transformResourcesWithMergeJavaResForRelease]}
10:07:33.689 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager] ADDED TRANSFORM(release):
10:07:33.689 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Name: mergeJniLibs
10:07:33.689 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Task: transformNative_libsWithMergeJniLibsForRelease
10:07:33.689 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[PROJECT_LOCAL_DEPS], contentTypes=[NATIVE_LIBS], dependencies=[]}
10:07:33.689 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[/Users/xxx/.gradle/caches/modules-2/files-2.1/io.realm/realm-annotations/1.0.1/5908fb2bfce2ca505bb6b46204fbf7840d80b50e/realm-annotations-1.0.1.jar], folders=[], scopes=[EXTERNAL_LIBRARIES], contentTypes=[NATIVE_LIBS], dependencies=[prepareReleaseDependencies, build dependencies configuration ':app:_releaseApk' all dependencies]}
10:07:33.690 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[SUB_PROJECTS], contentTypes=[NATIVE_LIBS], dependencies=[prepareReleaseDependencies, build dependencies configuration ':app:_releaseApk' all dependencies]}
10:07:33.690 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[/Users/xxx/develop/realmsample/app/build/intermediates/jniLibs/release], scopes=[PROJECT], contentTypes=[NATIVE_LIBS], dependencies=[mergeReleaseJniLibFolders]}
10:07:33.690 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[/Users/xxx/develop/realmsample/app/build/intermediates/ndk/release/lib], scopes=[PROJECT], contentTypes=[NATIVE_LIBS], dependencies=[[task ':app:compileReleaseNdk']]}
10:07:33.690 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  OutputStream: IntermediateStream{rootLocation=/Users/xxx/develop/realmsample/app/build/intermediates/transforms/mergeJniLibs/release, scopes=[PROJECT, PROJECT_LOCAL_DEPS, SUB_PROJECTS, SUB_PROJECTS_LOCAL_DEPS, EXTERNAL_LIBRARIES], contentTypes=[NATIVE_LIBS], dependencies=[transformNative_libsWithMergeJniLibsForRelease]}
10:07:33.692 [INFO] [com.android.build.gradle.tasks.factory.JavaCompileConfigAction] Incremental Java compilation disabled in variant release as you are using an incompatible plugin
10:07:33.692 [INFO] [com.android.build.gradle.tasks.factory.JavaCompileConfigAction] Not using incremental javac compilation.
10:07:33.693 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager] ADDED TRANSFORM(release):
10:07:33.693 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Name: preJackPackagedLibraries
10:07:33.693 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Task: transformClassesWithPreJackPackagedLibrariesForRelease
10:07:33.693 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[PROJECT_LOCAL_DEPS], contentTypes=[CLASSES], dependencies=[]}
10:07:33.693 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[/Users/xxx/.gradle/caches/modules-2/files-2.1/io.realm/realm-annotations/1.0.1/5908fb2bfce2ca505bb6b46204fbf7840d80b50e/realm-annotations-1.0.1.jar], folders=[], scopes=[EXTERNAL_LIBRARIES], contentTypes=[CLASSES], dependencies=[prepareReleaseDependencies, build dependencies configuration ':app:_releaseApk' all dependencies]}
10:07:33.693 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[SUB_PROJECTS], contentTypes=[CLASSES], dependencies=[prepareReleaseDependencies, build dependencies configuration ':app:_releaseApk' all dependencies]}
10:07:33.693 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[SUB_PROJECTS_LOCAL_DEPS], contentTypes=[CLASSES], dependencies=[prepareReleaseDependencies, build dependencies configuration ':app:_releaseApk' all dependencies]}
10:07:33.693 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  OutputStream: IntermediateStream{rootLocation=/Users/xxx/develop/realmsample/app/build/intermediates/transforms/preJackPackagedLibraries/release, scopes=[PROJECT, PROJECT_LOCAL_DEPS, SUB_PROJECTS, SUB_PROJECTS_LOCAL_DEPS, EXTERNAL_LIBRARIES], contentTypes=[JACK], dependencies=[transformClassesWithPreJackPackagedLibrariesForRelease]}
10:07:33.694 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager] ADDED TRANSFORM(release):
10:07:33.694 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Name: preJackRuntimeLibraries
10:07:33.694 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Task: transformClassesWithPreJackRuntimeLibrariesForRelease
10:07:33.695 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[PROVIDED_ONLY], contentTypes=[CLASSES], dependencies=[]}
10:07:33.695 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  OutputStream: IntermediateStream{rootLocation=/Users/xxx/develop/realmsample/app/build/intermediates/transforms/preJackRuntimeLibraries/release, scopes=[PROVIDED_ONLY], contentTypes=[JACK], dependencies=[transformClassesWithPreJackRuntimeLibrariesForRelease]}
10:07:33.695 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager] ADDED TRANSFORM(release):
10:07:33.696 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Name: jack
10:07:33.696 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Task: transformJackWithJackForRelease
10:07:33.696 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: IntermediateStream{rootLocation=/Users/xxx/develop/realmsample/app/build/intermediates/transforms/preJackPackagedLibraries/release, scopes=[PROJECT, PROJECT_LOCAL_DEPS, SUB_PROJECTS, SUB_PROJECTS_LOCAL_DEPS, EXTERNAL_LIBRARIES], contentTypes=[JACK], dependencies=[transformClassesWithPreJackPackagedLibrariesForRelease]}
10:07:33.696 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Ref'edStream: IntermediateStream{rootLocation=/Users/xxx/develop/realmsample/app/build/intermediates/transforms/preJackRuntimeLibraries/release, scopes=[PROVIDED_ONLY], contentTypes=[JACK], dependencies=[transformClassesWithPreJackRuntimeLibrariesForRelease]}
10:07:33.696 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  OutputStream: IntermediateStream{rootLocation=/Users/xxx/develop/realmsample/app/build/intermediates/transforms/jack/release, scopes=[PROJECT, PROJECT_LOCAL_DEPS, SUB_PROJECTS, SUB_PROJECTS_LOCAL_DEPS, EXTERNAL_LIBRARIES], contentTypes=[DEX], dependencies=[transformJackWithJackForRelease]}
10:07:33.706 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager] ADDED TRANSFORM(releaseUnitTest):
10:07:33.706 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Name: mergeJavaRes
10:07:33.706 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Task: transformResourcesWithMergeJavaResForReleaseUnitTest
10:07:33.707 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[PROJECT_LOCAL_DEPS], contentTypes=[RESOURCES], dependencies=[]}
10:07:33.707 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[EXTERNAL_LIBRARIES], contentTypes=[RESOURCES], dependencies=[prepareReleaseUnitTestDependencies, build dependencies configuration ':app:_releaseUnitTestApk' all dependencies]}
10:07:33.707 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[SUB_PROJECTS], contentTypes=[RESOURCES], dependencies=[prepareReleaseUnitTestDependencies, build dependencies configuration ':app:_releaseUnitTestApk' all dependencies]}
10:07:33.707 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[/Users/xxx/develop/realmsample/app/build/intermediates/sourceFolderJavaResources/test/release], scopes=[PROJECT], contentTypes=[RESOURCES], dependencies=[processReleaseUnitTestJavaRes]}
10:07:33.707 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  OutputStream: IntermediateStream{rootLocation=/Users/xxx/develop/realmsample/app/build/intermediates/transforms/mergeJavaRes/test/release, scopes=[PROJECT, PROJECT_LOCAL_DEPS, SUB_PROJECTS, SUB_PROJECTS_LOCAL_DEPS, EXTERNAL_LIBRARIES], contentTypes=[RESOURCES], dependencies=[transformResourcesWithMergeJavaResForReleaseUnitTest]}
10:07:33.709 [INFO] [com.android.build.gradle.tasks.factory.JavaCompileConfigAction] Incremental Java compilation disabled in variant releaseUnitTest as you are using an incompatible plugin
10:07:33.709 [INFO] [com.android.build.gradle.tasks.factory.JavaCompileConfigAction] Not using incremental javac compilation.
10:07:33.732 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager] ADDED TRANSFORM(debugAndroidTest):
10:07:33.732 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Name: mergeJavaRes
10:07:33.732 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Task: transformResourcesWithMergeJavaResForDebugAndroidTest
10:07:33.732 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[PROJECT_LOCAL_DEPS], contentTypes=[RESOURCES], dependencies=[]}
10:07:33.732 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[EXTERNAL_LIBRARIES], contentTypes=[RESOURCES], dependencies=[prepareDebugAndroidTestDependencies, build dependencies configuration ':app:_debugAndroidTestApk' all dependencies]}
10:07:33.733 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[SUB_PROJECTS], contentTypes=[RESOURCES], dependencies=[prepareDebugAndroidTestDependencies, build dependencies configuration ':app:_debugAndroidTestApk' all dependencies]}
10:07:33.733 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[/Users/xxx/develop/realmsample/app/build/intermediates/sourceFolderJavaResources/androidTest/debug], scopes=[PROJECT], contentTypes=[RESOURCES], dependencies=[processDebugAndroidTestJavaRes]}
10:07:33.733 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  OutputStream: IntermediateStream{rootLocation=/Users/xxx/develop/realmsample/app/build/intermediates/transforms/mergeJavaRes/androidTest/debug, scopes=[PROJECT, PROJECT_LOCAL_DEPS, SUB_PROJECTS, SUB_PROJECTS_LOCAL_DEPS, EXTERNAL_LIBRARIES], contentTypes=[RESOURCES], dependencies=[transformResourcesWithMergeJavaResForDebugAndroidTest]}
10:07:33.735 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager] ADDED TRANSFORM(debugAndroidTest):
10:07:33.736 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Name: mergeJniLibs
10:07:33.736 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Task: transformNative_libsWithMergeJniLibsForDebugAndroidTest
10:07:33.736 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[PROJECT_LOCAL_DEPS], contentTypes=[NATIVE_LIBS], dependencies=[]}
10:07:33.736 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[EXTERNAL_LIBRARIES], contentTypes=[NATIVE_LIBS], dependencies=[prepareDebugAndroidTestDependencies, build dependencies configuration ':app:_debugAndroidTestApk' all dependencies]}
10:07:33.736 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[SUB_PROJECTS], contentTypes=[NATIVE_LIBS], dependencies=[prepareDebugAndroidTestDependencies, build dependencies configuration ':app:_debugAndroidTestApk' all dependencies]}
10:07:33.736 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[/Users/xxx/develop/realmsample/app/build/intermediates/jniLibs/androidTest/debug], scopes=[PROJECT], contentTypes=[NATIVE_LIBS], dependencies=[mergeDebugAndroidTestJniLibFolders]}
10:07:33.736 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[/Users/xxx/develop/realmsample/app/build/intermediates/ndk/androidTest/debug/lib], scopes=[PROJECT], contentTypes=[NATIVE_LIBS], dependencies=[[task ':app:compileDebugAndroidTestNdk']]}
10:07:33.736 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  OutputStream: IntermediateStream{rootLocation=/Users/xxx/develop/realmsample/app/build/intermediates/transforms/mergeJniLibs/androidTest/debug, scopes=[PROJECT, PROJECT_LOCAL_DEPS, SUB_PROJECTS, SUB_PROJECTS_LOCAL_DEPS, EXTERNAL_LIBRARIES], contentTypes=[NATIVE_LIBS], dependencies=[transformNative_libsWithMergeJniLibsForDebugAndroidTest]}
10:07:33.737 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager] ADDED TRANSFORM(debugAndroidTest):
10:07:33.737 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Name: preJackPackagedLibraries
10:07:33.737 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Task: transformClassesWithPreJackPackagedLibrariesForDebugAndroidTest
10:07:33.738 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[PROJECT_LOCAL_DEPS], contentTypes=[CLASSES], dependencies=[]}
10:07:33.738 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[EXTERNAL_LIBRARIES], contentTypes=[CLASSES], dependencies=[prepareDebugAndroidTestDependencies, build dependencies configuration ':app:_debugAndroidTestApk' all dependencies]}
10:07:33.738 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[SUB_PROJECTS], contentTypes=[CLASSES], dependencies=[prepareDebugAndroidTestDependencies, build dependencies configuration ':app:_debugAndroidTestApk' all dependencies]}
10:07:33.738 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[SUB_PROJECTS_LOCAL_DEPS], contentTypes=[CLASSES], dependencies=[prepareDebugAndroidTestDependencies, build dependencies configuration ':app:_debugAndroidTestApk' all dependencies]}
10:07:33.738 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  OutputStream: IntermediateStream{rootLocation=/Users/xxx/develop/realmsample/app/build/intermediates/transforms/preJackPackagedLibraries/androidTest/debug, scopes=[PROJECT, PROJECT_LOCAL_DEPS, SUB_PROJECTS, SUB_PROJECTS_LOCAL_DEPS, EXTERNAL_LIBRARIES], contentTypes=[JACK], dependencies=[transformClassesWithPreJackPackagedLibrariesForDebugAndroidTest]}
10:07:33.739 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager] ADDED TRANSFORM(debugAndroidTest):
10:07:33.739 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Name: preJackRuntimeLibraries
10:07:33.739 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Task: transformClassesWithPreJackRuntimeLibrariesForDebugAndroidTest
10:07:33.739 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: OriginalStream{jarFiles=[], folders=[], scopes=[PROVIDED_ONLY], contentTypes=[CLASSES], dependencies=[]}
10:07:33.739 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  OutputStream: IntermediateStream{rootLocation=/Users/xxx/develop/realmsample/app/build/intermediates/transforms/preJackRuntimeLibraries/androidTest/debug, scopes=[PROVIDED_ONLY], contentTypes=[JACK], dependencies=[transformClassesWithPreJackRuntimeLibrariesForDebugAndroidTest]}
10:07:33.741 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager] ADDED TRANSFORM(debugAndroidTest):
10:07:33.741 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Name: jack
10:07:33.741 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Task: transformJackWithJackForDebugAndroidTest
10:07:33.741 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  InputStream: IntermediateStream{rootLocation=/Users/xxx/develop/realmsample/app/build/intermediates/transforms/preJackPackagedLibraries/androidTest/debug, scopes=[PROJECT, PROJECT_LOCAL_DEPS, SUB_PROJECTS, SUB_PROJECTS_LOCAL_DEPS, EXTERNAL_LIBRARIES], contentTypes=[JACK], dependencies=[transformClassesWithPreJackPackagedLibrariesForDebugAndroidTest]}
10:07:33.741 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Ref'edStream: OriginalStream{jarFiles=[/Users/xxx/develop/realmsample/app/build/intermediates/packaged/debug/classes.zip], folders=[], scopes=[TESTED_CODE], contentTypes=[JACK], dependencies=[transformJackWithJackForDebug]}
10:07:33.741 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  Ref'edStream: IntermediateStream{rootLocation=/Users/xxx/develop/realmsample/app/build/intermediates/transforms/preJackRuntimeLibraries/androidTest/debug, scopes=[PROVIDED_ONLY], contentTypes=[JACK], dependencies=[transformClassesWithPreJackRuntimeLibrariesForDebugAndroidTest]}
10:07:33.741 [DEBUG] [com.android.build.gradle.internal.pipeline.TransformManager]  OutputStream: IntermediateStream{rootLocation=/Users/xxx/develop/realmsample/app/build/intermediates/transforms/jack/androidTest/debug, scopes=[PROJECT, PROJECT_LOCAL_DEPS, SUB_PROJECTS, SUB_PROJECTS_LOCAL_DEPS, EXTERNAL_LIBRARIES], contentTypes=[DEX], dependencies=[transformJackWithJackForDebugAndroidTest]}
10:07:33.825 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.DefaultArtifactDependencyResolver] Resolving configuration ':app:apt'
10:07:33.826 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.memcache.InMemoryCachedRepositoryFactory] Reusing in-memory cache for repo 'BintrayJCenter' [22da77b0d76ea8df17298218f3ec1f87].
10:07:33.827 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.memcache.InMemoryCachedRepositoryFactory] Reusing in-memory cache for repo 'BintrayJCenter2' [22da77b0d76ea8df17298218f3ec1f87].
10:07:33.827 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.memcache.InMemoryCachedRepositoryFactory] Reusing in-memory cache for repo '/Users/xxx/Library/Android/sdk/extras/android/m2repository' [38e4395b9d0d4cb93d221f0833724ae7].
10:07:33.827 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.memcache.InMemoryCachedRepositoryFactory] Reusing in-memory cache for repo '/Users/xxx/Library/Android/sdk/extras/google/m2repository' [37bcecab1e1add582fa34ca0a02abbac].
10:07:33.827 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.memcache.InMemoryCachedRepositoryFactory] Reusing in-memory cache for repo '/Users/xxx/Library/Android/sdk/extras/m2repository' [b9f28a2eb17383789ece090b424c293f].
10:07:33.829 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting configuration realmsample:app:unspecified(apt).
10:07:33.829 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting dependency realmsample:app:unspecified(apt) -> io.realm:realm-annotations:1.0.1(apt)
10:07:33.829 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Selecting new module version io.realm:realm-annotations:1.0.1
10:07:33.829 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver] Attempting to resolve component for io.realm:realm-annotations:1.0.1 using repositories [BintrayJCenter, BintrayJCenter2, /Users/xxx/Library/Android/sdk/extras/android/m2repository, /Users/xxx/Library/Android/sdk/extras/google/m2repository, /Users/xxx/Library/Android/sdk/extras/m2repository]
10:07:33.829 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver] Using io.realm:realm-annotations:1.0.1 from Maven repository 'BintrayJCenter'
10:07:33.829 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting dependency realmsample:app:unspecified(apt) -> io.realm:realm-annotations-processor:1.0.1(apt)
10:07:33.830 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Selecting new module version io.realm:realm-annotations-processor:1.0.1
10:07:33.830 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver] Attempting to resolve component for io.realm:realm-annotations-processor:1.0.1 using repositories [BintrayJCenter, BintrayJCenter2, /Users/xxx/Library/Android/sdk/extras/android/m2repository, /Users/xxx/Library/Android/sdk/extras/google/m2repository, /Users/xxx/Library/Android/sdk/extras/m2repository]
10:07:33.831 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.IvyXmlModuleDescriptorParser] post 1.3 ivy file: using exact as default matcher
10:07:33.832 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository] Using cached module metadata for module 'io.realm:realm-annotations-processor:1.0.1' in 'BintrayJCenter'
10:07:33.832 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver] Using io.realm:realm-annotations-processor:1.0.1 from Maven repository 'BintrayJCenter'
10:07:33.832 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting dependency realmsample:app:unspecified(apt) -> io.realm:realm-android-library:1.0.1(compile)
10:07:33.832 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Selecting new module version io.realm:realm-android-library:1.0.1
10:07:33.832 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver] Attempting to resolve component for io.realm:realm-android-library:1.0.1 using repositories [BintrayJCenter, BintrayJCenter2, /Users/xxx/Library/Android/sdk/extras/android/m2repository, /Users/xxx/Library/Android/sdk/extras/google/m2repository, /Users/xxx/Library/Android/sdk/extras/m2repository]
10:07:33.832 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver] Using io.realm:realm-android-library:1.0.1 from Maven repository 'BintrayJCenter'
10:07:33.832 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting dependency realmsample:app:unspecified(apt) -> io.realm:realm-annotations:1.0.1(compile)
10:07:33.832 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting configuration io.realm:realm-annotations:1.0.1(default).
10:07:33.832 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting configuration io.realm:realm-annotations-processor:1.0.1(default).
10:07:33.833 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting dependency io.realm:realm-annotations-processor:1.0.1(default) -> com.squareup:javawriter:2.5.0(runtime)
10:07:33.833 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Selecting new module version com.squareup:javawriter:2.5.0
10:07:33.833 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver] Attempting to resolve component for com.squareup:javawriter:2.5.0 using repositories [BintrayJCenter, BintrayJCenter2, /Users/xxx/Library/Android/sdk/extras/android/m2repository, /Users/xxx/Library/Android/sdk/extras/google/m2repository, /Users/xxx/Library/Android/sdk/extras/m2repository]
10:07:33.833 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver] Using com.squareup:javawriter:2.5.0 from Maven repository 'BintrayJCenter'
10:07:33.833 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting dependency io.realm:realm-annotations-processor:1.0.1(default) -> io.realm:realm-annotations:1.0.1(runtime)
10:07:33.833 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting configuration io.realm:realm-android-library:1.0.1(default).
10:07:33.833 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting dependency io.realm:realm-android-library:1.0.1(default) -> io.realm:realm-annotations:1.0.1(compile,runtime)
10:07:33.833 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting dependency io.realm:realm-android-library:1.0.1(default) -> com.getkeepsafe.relinker:relinker:1.2.1(compile,runtime)
10:07:33.834 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Selecting new module version com.getkeepsafe.relinker:relinker:1.2.1
10:07:33.834 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver] Attempting to resolve component for com.getkeepsafe.relinker:relinker:1.2.1 using repositories [BintrayJCenter, BintrayJCenter2, /Users/xxx/Library/Android/sdk/extras/android/m2repository, /Users/xxx/Library/Android/sdk/extras/google/m2repository, /Users/xxx/Library/Android/sdk/extras/m2repository]
10:07:33.834 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver] Using com.getkeepsafe.relinker:relinker:1.2.1 from Maven repository 'BintrayJCenter'
10:07:33.834 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting configuration com.squareup:javawriter:2.5.0(compile).
10:07:33.834 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting configuration com.squareup:javawriter:2.5.0(runtime).
10:07:33.834 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting configuration com.squareup:javawriter:2.5.0(master).
10:07:33.835 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting configuration io.realm:realm-annotations:1.0.1(compile).
10:07:33.835 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting configuration io.realm:realm-annotations:1.0.1(runtime).
10:07:33.835 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting configuration io.realm:realm-annotations:1.0.1(master).
10:07:33.835 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting configuration com.getkeepsafe.relinker:relinker:1.2.1(compile).
10:07:33.835 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting configuration com.getkeepsafe.relinker:relinker:1.2.1(master).
10:07:33.835 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting configuration com.getkeepsafe.relinker:relinker:1.2.1(runtime).
10:07:33.837 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.oldresult.TransientConfigurationResultsBuilder] Flushing resolved configuration data in Binary store in /private/var/folders/y1/xbrqg2bd421d9_n4fbqj2rbdr7ng2x/T/gradle4913487509014313876.bin. Wrote root realmsample:app:unspecified:apt.
10:07:33.838 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository] Found artifact 'realm-annotations-processor.jar (io.realm:realm-annotations-processor:1.0.1)' in resolver cache: /Users/xxx/.gradle/caches/modules-2/files-2.1/io.realm/realm-annotations-processor/1.0.1/58bf1cd9472c1c9c939857dde5722c2b8c87740a/realm-annotations-processor-1.0.1.jar
10:07:33.855 [ERROR] [org.gradle.BuildExceptionReporter]
10:07:33.856 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
10:07:33.856 [ERROR] [org.gradle.BuildExceptionReporter]
10:07:33.856 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
10:07:33.856 [ERROR] [org.gradle.BuildExceptionReporter] A problem occurred configuring project ':app'.
10:07:33.857 [ERROR] [org.gradle.BuildExceptionReporter] > Could not find property 'classpath' on task ':app:transformJackWithJackForDebug'.
10:07:33.857 [ERROR] [org.gradle.BuildExceptionReporter]
10:07:33.857 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
10:07:33.857 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
10:07:33.857 [LIFECYCLE] [org.gradle.BuildResultLogger]
10:07:33.857 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
10:07:33.858 [LIFECYCLE] [org.gradle.BuildResultLogger]
10:07:33.858 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 5.926 secs

Steps & Code to Reproduce

Other Libraries using Annotation Processing Like Dagger2 do work using annotationProcessor

Code Sample

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.0-alpha3'
        classpath "io.realm:realm-gradle-plugin:1.0.1"
        classpath "io.realm:realm-transformer:1.0.1"
    }
}

apply plugin: 'com.android.application'
apply plugin: 'realm-android'

android {
    compileSdkVersion 24
    buildToolsVersion "24.0.0"
    defaultConfig {
        applicationId "com.example.realmjacksample"
        minSdkVersion 18
        targetSdkVersion 24
        versionCode 1
        versionName "1.0"

        jackOptions {
            enabled true
        }
    }

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

dependencies {
}

Version of Realm and tooling

Realm version(s): 1.0.0 & 1.0.1 Tested

Android Studio version: 2.2 Preview 3

Zhuinden commented 8 years ago

That's because with Jack, there are no intermediary .class files for Javassist to do its bytecode manipulation magic on, so it's expected that it would fail.

cmelchior commented 8 years ago

There is an open bug on b.android.com here for making it possible for Realm and Jack to work together: https://code.google.com/p/android/issues/detail?id=210730&q=Jack%20transform&colspec=ID%20Status%20Priority%20Owner%20Summary%20Stars%20Reporter%20Opened

But as @Zhuinden says, right now that isn't possible.

cw1427 commented 8 years ago

Dear sir, i also used gradle to enable Jack build on Jdk8 and with a condition that need to prepend a framework.jar into the classpaht, so i configured tasks.withType(JavaCompile){...} to use options.compilerArgs.add(...), but it seems could not work when use Jack compile, do you have any idea how to fix it? please connect with me: cwvinus@163.com

beeender commented 8 years ago

@cw1427 as comment https://github.com/realm/realm-java/issues/3038#issuecomment-227413435 said, we cannot support Jack simply because of google doesn't support transformer for Jack... At this moment, there is quite little thing we can do.

springeye commented 8 years ago

Jack can now

 annotationProcessor 'com.google.dagger:dagger-compiler:2.0'

to use the dagger. The same reasoning is supported by realm

see http://tools.android.com/tech-docs/jackandjill#TOC-Compilation-support

beeender commented 8 years ago

@henjue Realm doesn't only require the annotation processor but also the byte code manipulation (transform API) which is not supported by JACK yet AFAIK. We did reported an issue to google, see https://github.com/realm/realm-java/issues/3038#issuecomment-227413435

Zhuinden commented 8 years ago

@henjue Realm requires the Transform API to allow you to use custom methods (and interface implementations) in RealmObject classes, and allow field access rather than mandatory getters/setters.

The transform API manipulates the bytecode in generated .class files. Jack does not create .class files, and Jack doesn't provide a hook for anything similar.

ArneKoeckeritz commented 8 years ago

Damm! I would love to use Jack and Java 8 How can we build pressure on your feature request to get it implemented?

ISSUE: 210730 https://code.google.com/p/android/issues/detail?id=210730&q=Jack%20transform&colspec=ID%20Status%20Priority%20Owner%20Summary%20Stars%20Reporter%20Opened

Does anybody know a guy of the android tool dev team?

kosiara commented 8 years ago

I get

Error:Could not get unknown property 'classpath' for task ':app:transformJackWithJackForDebug' of type com.android.build.gradle.internal.pipeline.TransformTask.

while trying to add apply plugin: 'realm-android'

with classpath 'io.realm:realm-gradle-plugin:1.2.0', classpath 'com.android.tools.build:gradle:2.2.0' and the jack compiler

Zhuinden commented 8 years ago

Jack does not support the Transform API yet.

Realm uses the Transform API, so Jack doesn't work with Realm yet.

Haoxiqiang commented 8 years ago

The same problem. Does Realm has any other method to resolve it?

cmelchior commented 8 years ago

No, we need to transform the intermediate code for our approach to work

WaylanPunch commented 7 years ago

The same issue I faced recently, I read all your comments, sad.

kirsysuv commented 7 years ago

@WaylanPunch I have a workaround. See this #2630 Hope it helps

WaylanPunch commented 7 years ago

@kirsting Thanks, I would like to try your solution tonight.

It is doable

Zhuinden commented 7 years ago

Retrolambda works without problems in the meantime.

Zhuinden commented 7 years ago

There seems to be some kind of advance in this on regards of Google: https://android.googlesource.com/toolchain/jack/+/ub-jack/jack-samples/jack-transform-plugin/

beeender commented 7 years ago

https://android-developers.googleblog.com/2017/03/future-of-java-8-language-feature.html

Google decided to deprecate the Jack tool chain. So there is no point for Realm to support it.