czuckie
11/18/2022, 2:18 PManimateColorAsState
break my @Preview
in Flamingo?czuckie
11/18/2022, 2:18 PMczuckie
11/18/2022, 2:22 PMCould not get applicationId for my.module.main. Project type: PROJECT_TYPE_LIBRARY
czuckie
11/18/2022, 2:22 PMapplicationId
into the default config of my library... the preview starts working againJhonatan Sabadi
11/18/2022, 2:25 PMczuckie
11/18/2022, 2:27 PMJhonatan Sabadi
11/18/2022, 3:07 PMczuckie
11/18/2022, 3:11 PManimateColorAsState
in a @Preview
in an android library module resulted in no previews rendering. Changing the use of animateColorAsState to a static colour resulted in all the previews rendering correctly.
Upon replacing the static colour with animateColorAsState
again, Android Studio notified me of the following exception:
Could not get applicationId for my.module.main. Project type: PROJECT_TYPE_LIBRARYAs a way of checking whether it was possible to placate the error, I placed
applicationId 'my.module'
in my build.gradle for my android library module, which resulted in the preview rendering successfully, with the AGP giving a warning that applicationId
should not be in a library module.
Things I know:
applicationId
shouldn't be in the build.gradle for a library module
Things I don't know:
Why the preview using animateColorAsState
won't render unless I place applicationId
in my build.gradleeygraber
11/18/2022, 6:11 PM