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

Incompatibility between Version 2.0.2 and gradlew 8.x #72

Open
yxspace opened this issue Nov 19, 2024 · 6 comments
Open

Incompatibility between Version 2.0.2 and gradlew 8.x #72

yxspace opened this issue Nov 19, 2024 · 6 comments

Comments

@yxspace
Copy link

yxspace commented Nov 19, 2024

Dear flutter_config Author,

I am currently working on the development of a new Flutter project. I have found that the flutter_config plugin is exactly what I need as it perfectly addresses my requirements for handling configurations within the application. Your work on this plugin is really great.
However, I have encountered an issue when integrating it into my project. It seems that the plugin is not compatible with the gradlew 8.x version. The following is the error message I received:


Launching lib/main.dart on MEIZU 21 Pro in debug mode...
Running Gradle task 'assembleDebug'...
Warning: SDK processing. This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':flutter_config:compileDebugKotlin'.
> 'compileDebugJavaWithJavac' task (current target is 1.8) and 'compileDebugKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version.
  Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchain


* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org/.
BUILD FAILED in 8s
Error: Gradle task assembleDebug failed with exit code 1

I would be extremely grateful if you could take a look at this problem and help me find a solution. Thank you very much for your time and your excellent contribution with this plugin.

Also I create a demo app, you can reproduce the issue on this demo.
test123.zip

Best regards,

@rahuldev-bizongo
Copy link

Hey flutter_config team,
I'm also facing the same issue.
is the above issue is in pipeline ? Could you kindly help me resolving the above issue ?

@Abdullatif-Eida
Copy link

Hey flutter_config team,
I'm also facing the same issue.
is the above issue is in pipeline ? Could you kindly help me resolving the above issue ?

@Abdullatif-Eida
Copy link

Abdullatif-Eida commented Dec 13, 2024

Fo now you can solve this issue by using the below call, will solve your problem

flutter_config:
git:
url: https://github.com/Abdullatif-Eida/flutter_config.git
ref: 67d5073

@nppull
Copy link

nppull commented Dec 25, 2024

Fo now you can solve this issue by using the below call, will solve your problem

flutter_config: git: url: https://github.com/Abdullatif-Eida/flutter_config.git ref: 67d5073

you saved me 😭😭

@saurav-metatude
Copy link

I am also facing the issue of updating the repo until a new version solves your problem below

flutter_config: # Hacks: added support android gradle version 8.x
git:
url: https://github.com/swahid/flutter_config.git
branch: release

@JosiahThobejane
Copy link

Facing the same issues, it prevents builds everywhere.

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

6 participants