codelab-friendlychat-android icon indicating copy to clipboard operation
codelab-friendlychat-android copied to clipboard

Uresolved reference 'BuildConfig'.:26

Open Alex-7 opened this issue 10 months ago • 2 comments

When I try to build the project in the very beginning, it gives the error: Uresolved reference 'BuildConfig'.:26

It seems to concern the line 26 of MainAktivity.kt

import com.google.firebase.codelab.friendlychat.BuildConfig

Alex-7 avatar Feb 24 '25 09:02 Alex-7

@Alex-7 This is due to the fact that Android Gradle Plugin v8.0 stopped generating the BuildConfig class.

You can fix this by adding the following line to gradle.properties:

android.defaults.buildfeatures.buildconfig=true

That's a workaround, so I'll keep this issue open until we can update the repo to continue working without the workaround.

thatfiredev avatar Feb 27 '25 12:02 thatfiredev

Thank you!

Alex-7 avatar Feb 27 '25 14:02 Alex-7