-
Notifications
You must be signed in to change notification settings - Fork 129
Description
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,