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

Android 14 AOSP Build Failure #792

Open
mo123 opened this issue Nov 8, 2024 · 3 comments
Open

Android 14 AOSP Build Failure #792

mo123 opened this issue Nov 8, 2024 · 3 comments

Comments

@mo123
Copy link

mo123 commented Nov 8, 2024

I keep getting several of these errors when building with Android 14 AOSP like

packages/apps/Seedvault/core/src/main/java/org/calyxos/seedvault/core/backends/webdav/WebDavBackend.kt:9:27: error: class 'at.bitfire.dav4jvm.DavCollection' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.0.0, expected version is 1.8.0.

How to fix the 'The binary version of its metadata is 2.0.0, expected version is 1.8.0.'?

@grote
Copy link
Collaborator

grote commented Nov 8, 2024

Are you sure you are building from the android14 branch?

@mo123
Copy link
Author

mo123 commented Nov 8, 2024

Are you sure you are building from the android14 branch?

Yes
https://github.com/seedvault-app/seedvault/archive/refs/heads/android14.tar.gz

Only the Android 12 branch building with the Android 12 SDK builds successfully for me.

I also checked here but it seems there is only information for Android 13, the Android 14 info is missing and it doesn't use .gradle, it uses gradle.kts now.
https://github.com/seedvault-app/seedvault/wiki/Updating-SeedVault-for-new-Android-versions
I think only building through Android Studio might work but I'm using Android 14 SDK instead.

The problem seems to be with the webdav backend that uses Kotlin 2.0.0 binaries, aren't there any 1.8.0 files I can use and replace them with?

@grote
Copy link
Collaborator

grote commented Nov 11, 2024

Are you building with latest android 14 QPR branch? CalyxOS and LineageOS seem to be able to build just fine from that branch.

What is it what you are trying to do exactly? Just building the app? you may just use normal gradle builds for that.

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

2 participants