Do you have the above mentioned error in Android Studio 4.2 Canary 13?

java.lang.AssertionError: Unbound symbols not allowed
Unbound public symbol for public kotlinx.android.synthetic.main.activity_main/coordinator.<get-coordinator>|928291878556573136[0

The reason for this error is that Jetpack Compose cannot be used alongside the normal synthetic imports for xml layouts:

EDIT: The issue has been solved…

Recently i was struggling with setting the background color for a notification shown by a foreground service in Android.

Partially set background for my remote view notification

This is what my code looked like:

private fun createNotificationBuilder() {
this.notificationBuilder = NotificationCompat.Builder(this, MyApplication.FOREGROUND_SERVICE_CHANNEL)
.setContentTitle("MyForegroundService")…

Cazimir Roman

Passionate Android Developer and problem solver

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store