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

Issue was found when checking AAR metadata #650

Open
nusilveira opened this issue Oct 15, 2024 · 7 comments
Open

Issue was found when checking AAR metadata #650

nusilveira opened this issue Oct 15, 2024 · 7 comments

Comments

@nusilveira
Copy link

nusilveira commented Oct 15, 2024

I'm getting this error when running assembleDebug even if the minSdk is 30 - https://github.com/GitLiveApp/firebase-kotlin-sdk?tab=readme-ov-file#running-on-android

An issue was found when checking AAR metadata:

  1. Dependency 'dev.gitlive:firebase-config-android-debug:2.1.0' requires core library desugaring to be enabled
    for :A_apps:androidMobile.
@ivancaas
Copy link

Eh..... also to me, I guess it happens to anbody, because the library is compiled with minsdk lower than 26....... Any workoround with this that doesn't involve enabling desugaring???

@rufan-nativesol
Copy link

also to me, Dependency 'dev.gitlive:firebase-config-android-debug:2.1.0' requires core library desugaring to be enabled

@rufan-nativesol
Copy link

rufan-nativesol commented Oct 29, 2024

good news i have resolved the issue

compileOptions { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 isCoreLibraryDesugaringEnabled = true }
and

dependencies { coreLibraryDesugaring ("com.android.tools:desugar_jdk_libs:2.1.2") androidTestImplementation(libs.androidx.uitest.junit4) debugImplementation(libs.androidx.uitest.testManifest) }

@nusilveira
Copy link
Author

rufan-nativesol

You can solve with that but by documentation it wouldn't be necessary - https://github.com/GitLiveApp/firebase-kotlin-sdk?tab=readme-ov-file#running-on-android

@ivancaas
Copy link

1- Yes, the solution is easy @rufan-nativesol , the point of my post was them figuring out that it doesn't make sens

2- @nusilveira it's not needed(tricky) if you use API >26 but in the whooole project, wich includes dependencies..... And THEY have in their library API 24..... XDDDD So of course you'll need it, that part of their documentation it's confusing and useless, it leads you to think you're the wrong one but it's them using a freaking old SDK in their library

@robercoding
Copy link

robercoding commented Nov 10, 2024

Hey I also found this issue on my project with a minSdk of 30 on 2.1.0 version.
Looking at their library have a min sdk lower than 26.

@ernesto-olalla
Copy link

Same error here, using:
android-compileSdk = "35"
android-minSdk = "29"
android-targetSdk = "35"

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