Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not support JDK8 #571

Closed
yuzhongxingke opened this issue May 12, 2016 · 6 comments
Closed

Does not support JDK8 #571

yuzhongxingke opened this issue May 12, 2016 · 6 comments

Comments

@yuzhongxingke
Copy link

When the JDK 1.8, configure the build. GradleDefaultConfig
defaultConfig {
jackOptions {
enabled true
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

Compile error:

"Error: Could not find the property 'options' on the task' : app: compileDebugJavaWithJack '."

@gabrielittner
Copy link

The android gradle plugin currently doesn't support annotation processing when using jack https://code.google.com/p/android/issues/detail?id=204065

@IgorGanapolsky
Copy link

Is this still the case with final Android N apis today? I thought Google would've fixed annotation processing support...

@JakeWharton
Copy link
Owner

They have. Consult the Jack documentation for how to use annotation
processors.

On Fri, Jun 17, 2016 at 5:25 PM Igor Ganapolsky notifications@github.com
wrote:

Is this still the case with final Android N apis today? I thought Google
would've fixed annotation processing support...


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#571 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAEEETbVLIepK1s6HOrVX2hMYbrzTkuhks5qMxCvgaJpZM4Ic3iG
.

@JakeWharton
Copy link
Owner

Also it doesn't have anything to do with N since it's a build system
feature.

On Fri, Jun 17, 2016 at 5:26 PM Jake Wharton jakewharton@gmail.com wrote:

They have. Consult the Jack documentation for how to use annotation
processors.

On Fri, Jun 17, 2016 at 5:25 PM Igor Ganapolsky notifications@github.com
wrote:

Is this still the case with final Android N apis today? I thought Google
would've fixed annotation processing support...


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#571 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAEEETbVLIepK1s6HOrVX2hMYbrzTkuhks5qMxCvgaJpZM4Ic3iG
.

@IgorGanapolsky
Copy link

@JakeWharton Thanks. But here is specifically says:

Android N Preview SDK, which includes the required Jack toolchain
https://developer.android.com/preview/j8-jack.html

So it has something to do with N.

@JakeWharton
Copy link
Owner

That is for using Java 8 language features which isn't related to
annotation processing. The version of Jack in the preview was the only one
which supported those.

On Fri, Jun 17, 2016 at 5:25 PM Igor Ganapolsky notifications@github.com
wrote:

Is this still the case with final Android N apis today? I thought Google
would've fixed annotation processing support...


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#571 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAEEETbVLIepK1s6HOrVX2hMYbrzTkuhks5qMxCvgaJpZM4Ic3iG
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants