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

Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (1.8) and 'compileDebugKotlin' (21). #328

Open
android-dev2015 opened this issue Oct 24, 2024 · 7 comments

Comments

@android-dev2015
Copy link

  • What went wrong:
    Execution failed for task ':device_info_plus:compileDebugKotlin'.

Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (1.8) and 'compileDebugKotlin' (21).

@wangguanxiao
Copy link

add this kotlinOptions { jvmTarget = '1.8' }. to build.gradle ->. android { ```. }

@android-dev2015
Copy link
Author

My Project need to adapter Java21, My project has been added kotlinOptions { jvmTarget = '21' }

@rikka5201
Copy link

My Project need to adapter Java21, My project has been added kotlinOptions { jvmTarget = '21' }

image_gallery_saver-2.0.3\android\build.gradle 中添加 kotlinOptions { jvmTarget = '1.8' } ,It works!

@android-dev2015
Copy link
Author

I know 1.8 can run, but my project needs to adapt to Java21

dagyu added a commit to dagyu/image_gallery_saver that referenced this issue Nov 6, 2024
@android-dev2015
Copy link
Author

image_gallery_saver:
git:
url: https://github.com/hui-z/image_gallery_saver.git
ref: master
image
This problem still exists

@partha-zoozle
Copy link

Is there any solution for this issue besides changing the target to 1.8?

@knottx
Copy link

knottx commented Dec 9, 2024

try this #295

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

5 participants