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

Can't build project after upgrade to Flutter 2.10.3 #11

Open
abhlabs opened this issue Mar 25, 2022 · 4 comments
Open

Can't build project after upgrade to Flutter 2.10.3 #11

abhlabs opened this issue Mar 25, 2022 · 4 comments

Comments

@abhlabs
Copy link

abhlabs commented Mar 25, 2022

After upgrade to Flutter 2.10.3, I can no longer build my project unless I remove disk_space, getting error Execution failed for task ':disk_space:compileDebugKotlin'. See proposed fix in pull request.

Versions:

  • disk space 0.2.1
  • Flutter 2.10.3
  • Dart 2.16.1
e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
...
e: c:\FlutterDev\flutter\.pub-cache\hosted\pub.dartlang.org\disk_space-0.2.1\android\src\main\kotlin\de\appgewaltig\disk_space\DiskSpacePlugin.kt: (14, 6): Class 'kotlin.jvm.JvmStatic' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.16.
The class is loaded from C:/Users/ahart/.gradle/caches/transforms-3/386454215e6950cb1162d1da9ff12466/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/jvm/JvmStatic.class
e: c:\FlutterDev\flutter\.pub-cache\hosted\pub.dartlang.org\disk_space-0.2.1\android\src\main\kotlin\de\appgewaltig\disk_space\DiskSpacePlugin.kt: (16, 7): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.16.
The class is loaded from C:/Users/ahart/.gradle/caches/transforms-3/386454215e6950cb1162d1da9ff12466/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
...

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':disk_space:compileDebugKotlin'.
@aravind-b-dev
Copy link

Try it flutter version 2.5.0

@eric-nextsense
Copy link

got the same build issue

@abhlabs
Copy link
Author

abhlabs commented Apr 15, 2022

Try it flutter version 2.5.0

Why would you downgrade the Flutter version?

@tom-ludwig
Copy link

@eric-nextsense, @aravind-b-dev
Since this package hasn't been updated in 2 years and the maintainers haven't responded to any issues or pull requests, I created a new repository: https://github.com/activcoding/disk_space_2. The updated package, which should work, is available here: https://pub.dev/packages/disk_space_2.

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