Fixed
Status Update
Comments
mk...@google.com <mk...@google.com>
je...@google.com <je...@google.com> #2
Thanks for the report. I will route this to the appropriate internal team and update this when I hear back from them.
al...@google.com <al...@google.com>
[Deleted User] <[Deleted User]> #3
One more detail, Data Layer event calls from the watch to the phone (running Android 13) do work on if the listener is in an Activity or Fragment.
al...@google.com <al...@google.com> #4
Also, I'm seeing this message in the Logcat:
"2022-06-12 18:47:15.156 1841-4562/? W/PackageManager: Intent does not match component's intent filter: Intent { act=com.google.android.gms.wearable.BIND_LISTENER"
"2022-06-12 18:47:15.156 1841-4562/? W/PackageManager: Intent does not match component's intent filter: Intent { act=com.google.android.gms.wearable.BIND_LISTENER"
al...@google.com <al...@google.com> #5
Experiencing the same issues, please see my other report for any useful logs:
https://issuetracker.google.com/issues/235673375
mi...@gmail.com <mi...@gmail.com> #6
+1, can confirm it doesn't work on Android 13:=
2022-07-15 11:26:15.023 589-5347 PackageManager pid-589 W Intent does not match component's intent filter: Intent { act=com.google.android.gms.wearable.BIND_LISTENER cmp=xxx/xxx.WatchMessageReceiver }
2022-07-15 11:26:15.023 589-5347 PackageManager pid-589 W Access blocked: ComponentInfo{xxx/xxx.WatchMessageReceiver}
2022-07-15 11:26:15.023 589-5347 ActivityManager pid-589 W Unable to start service Intent { act=com.google.android.gms.wearable.BIND_LISTENER cmp=xxx/xxx.WatchMessageReceiver } U=0: not found
cm...@google.com <cm...@google.com> #7
Note that I've been able to make it work by:
- Adding
<action android:name="com.google.android.gms.wearable.BIND_LISTENER" />
in the intent filter - Removing
<data android:scheme="wear" android:host="*" />
But I feel like this is not something we should do
cm...@google.com <cm...@google.com> #8
I'm really afraid Android 13 might get released as-is, breaking WearOS app communication 😨😨
fr...@gmail.com <fr...@gmail.com> #9
If you're not targeting API 33 you're not affected by the bug. So it's a big bug, and yes we of course expected more from Google, but you can always target the api level later when it's fixed.
But I agree this is kind of desperating that more than 1.5 month after the first report nothing has changed.
Description
The new Variant API SourceDirectoriesImpl.addGeneratedSourceDirectory() allows to add a custom task generating source files that need to be compiled within the build process, but does not add the generated source directory to the IDE model in TaskProviderBasedDirectoryEntryImpl .
It is used in replacement of the old API BaseVariantImpl.registerJavaGeneratingTask() that automatically added the generated source directories to the IDE model.
It seems to me that the old behavior should be maintained, i.e., either:
shouldBeAddedToIdeModel
totrue
by default in the constructor ofTaskProviderBasedDirectoryEntryImpl
,shouldBeAddedToIdeModel = true
when creatingTaskProviderBasedDirectoryEntryImpl
inaddGeneratedSourceDirectory
,addGeneratedSourceDirectory
for letting the user set the desired value ofshouldBeAddedToIdeModel
.Note that it should go the same way with SourceDirectoriesImpl.addStaticSourceDirectory() .
Also, I would personally not set the path of the output directory here if it has already been set by the user before calling
addGeneratedSourceDirectory
, since this overwriting is not documented and not obvious to the user. Or similarly toshouldBeAddedToIdeModel
, this behavior (setting or not the output directory) could be controlled through an optional argument toaddGeneratedSourceDirectory
.Please consider this other issue too that might be relevant as well (I did not try to reproduce it), it apppears not only in TaskProviderBasedDirectoryEntryImpl but also in ProviderBasedDirectoryEntryImpl .
Studio Build: #AI-213.7172.25.2211.8571212 (Android Studio Electric Eel | 2022.1.1 Canary 2)
Version of Gradle Plugin: 7.4.0-alpha02
Version of Gradle: 7.5-rc-1
Version of Java: 1.8
OS: Ubuntu 18.04