android / codelab-android-hilt

Apache License 2.0
348 stars 184 forks source link

incompatible version of hilt and kotlin ext vers. #52

Closed Kakaranara closed 1 year ago

Kakaranara commented 1 year ago

this old base version of kotlin ext (1.7.20) makes hilt apps crash when im trying to run this codelab : https://developer.android.com/codelabs/android-hilt#6. i got this error : error: [Hilt] Unsupported metadata version. Check that your Kotlin version is >= 1.0: java.lang.IllegalStateException: Unsupported metadata version. Check that your Kotlin version is >= 1.0 at

And then i try to the solution code, to check if everythings fine, and it does. but the kotlin extension version in this file is not the same like the solution. Thus, makes the app crash.

google-cla[bot] commented 1 year ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Kakaranara commented 1 year ago

um..

katespin commented 1 year ago

I ran into this same issue. I was able to solve mine by upgrading the hilt version to 2.44, but this looks like it would work too. Thanks for taking the time to open a PR for this, not sure if it helps for me to approve, since I don't have any Google open source contributions either, but just wanted to add a +1 to this thread.