Status Update
Comments
da...@google.com <da...@google.com> #2
Please include a sample project that reproduces your issue.
to...@gmail.com <to...@gmail.com> #3
Sample project attached. Just add to plain project this dependencies allow to reproduce.
def emoji2_version = "1.1.0-beta01"
implementation "androidx.emoji2:emoji2:$emoji2_version"
def lifecycle_version = "2.5.0-alpha01"
implementation "androidx.lifecycle:lifecycle-process:$lifecycle_version"
se...@gmail.com <se...@gmail.com> #4
The reason may be related to 2.4.0
of lifecycle-process
as workaround.
to...@gmail.com <to...@gmail.com> #5
Yes, this is due to this change, as well as the fact that EmojiCompatInitializer has a ProcessLifecycleInitializer as a dependency and also re-calls it, but in manual mode.
da...@google.com <da...@google.com> #6
ProcessLifecycleInitializer
is expected to already be initialized (via the manifest provider
for App Startup) by the time that code runs - App Startup shouldn't be calling create
if that component has already been initialized, hence you shouldn't get any exception. We'll take a look on where things are breaking down though.
ap...@google.com <ap...@google.com> #7
Thanks for the answer.
As I understand EmojiCompatInitializer has ProcessLifecycleInitializer as a appInitializer.initializeComponent(ProcessLifecycleInitializer.class)
Maybe it would be more correct to create a bug in emoji-2, but let it be here.
ap...@google.com <ap...@google.com> #8
This issue isn't related to emoji2, it could be reproduced easily with the lifecycle-process
(2.4.0 -> 2.5.0-alpha01) only.
ap...@google.com <ap...@google.com> #9
Branch: androidx-main
commit 97993ad954cb98211ef52b6e26c7877dbdeeec1c
Author: Jeremy Woods <jbwoods@google.com>
Date: Tue Feb 01 17:06:11 2022
Bump lifecycle process start-up dependency to 1.1.1
Bumping the startup dependency to include aosp/1855769.
RelNote: "Updated `lifecycle-process` to depend on [Startup 1.1.1](/jetpack/androidx/releases/startup#1.1.1) to ensure that fixes that prevent `ProcessLifecycleInitializer` from throwing a `StartupException` are available by default."
Bug: 216490724
Test: tested in sample app
Change-Id: Ib01dfbba1d63aa03e43e09ee8886cc76e1050e1b
M lifecycle/lifecycle-process/build.gradle
ap...@google.com <ap...@google.com> #10
This has been fixed internally and will be released in the Lifecycle 2.5.0-alpha02
release.
to...@avast.com <to...@avast.com> #12
It should be out before the end of the week.
yb...@google.com <yb...@google.com> #13
mi...@gtempaccount.com <mi...@gtempaccount.com> #14
But I am still seeing this warning:
w: [kapt] Incremental annotation processing requested, but support is disabled because the following processors are not incremental: androidx.room.RoomProcessor (DYNAMIC).
mi...@gtempaccount.com <mi...@gtempaccount.com> #15
android {
...
defaultConfig {
...
javaCompileOptions {
annotationProcessorOptions {
arguments = [
"room.schemaLocation":"$projectDir/schemas".toString(),
"room.incremental":"true",
"room.expandProjection":"true"]
}
}
}
}
co...@protonmail.com <co...@protonmail.com> #16
yb...@google.com <yb...@google.com> #17
yes, it will be but we are looking for some feedback before we make the switch just to be safe and not break other people.
ap...@google.com <ap...@google.com> #18
Branch: androidx-master-dev
commit 2715143f2b6f2b74a088b242b39c9841d2d8dcf2
Author: Daniel Santiago Rivera <danysantiago@google.com>
Date: Thu Jun 18 09:54:58 2020
Make room.incremental default be true
Relnote: Room's incremental annotation processing option is now ON by default.
Bug: 112110217
Test: :room:integration-tests:room-i-a-p:test
Change-Id: If46d955da45d985543ab982bd0e9d27bbd961517
M room/compiler/src/main/kotlin/androidx/room/processor/Context.kt
bl...@gmail.com <bl...@gmail.com> #19
Is it switched on by default in 2.2.5? Because I still got the message got a warning from kapt
[WARN] Incremental annotation processing requested, but support is disabled because the following processors are not incremental: androidx.room.RoomProcessor (DYNAMIC).
Solved to adding "room.incremental"="true"
in the annotation params.
hu...@google.com <hu...@google.com> #21
KNOWN ISSUE: Note that incremental Room is currently broken in some cases (
hu...@google.com <hu...@google.com> #22
Sorry there was a typo, correction:
Description