Hi, is it possible to remove that restriction? I h...
# compose-wear
f
Hi, is it possible to remove that restriction? I have a common module between my wear os app and my mobile application. This imply that I can't release the wearos app anymore. Or does that mean that I have to keep my app at 33 and wait for wear os to support 34 before updating my mobile app?
y
It should be possible to have you mobile app use target SDK 34, but wear use 33. Let me confirm with a local project with a shared library.
I don't think using target SDK 34 is considered valid since we don't know the wear specific behaviour changes to come in a future 34
f
It was possible before, I don't see why it is changing now. I could release target 33 when wear os was only 30
t
Module and libraries only have a compileSDK not a target SDK. You can compile with SDK 34 but target SDK 33 for the wear module.
y
Being able to release apps as target API 33, before that was a thing meant there were broken apps in the play store as API 33 devices became (selectively) available. We should avoid this in future
f
If you take into account the change for API 34 that won't happen
y
We don't know what that is for wear specific APIs
f
I thought that Google was pushing for Devs to build wear os app. In practice it is quite the opposite. Now you have to release in a separate channel, no message no update on that. And you can't target API 34 again no message no update. All of this to make to do more maintenance work that won't benefit your users
Ok I have put the wear module to target 33 and it seems to work
👍 1
y
I am still compiling with SDK 34, targeting wear for SDK 30. Did i missed something here? Is it recommended to use targeting sdk for wear app 33 now?
f
Yes you should target 33 as wearos 4.0 is out via the new Samsung watch
👍 1
y
Thanks
Android Studio Hedgehog or later to get the Wear OS 4 emulator
I missed this part.
y
You can also use the sdkmanager command line with channel 3
🙏 1
y
I installed the commandline tool from the AS studio Giraffe, export the path “$ANDROID_HOME/cmdline-tools/latest/bin” and install from the command line tool.
Copy code
sdkmanager "system-images;android-33;android-wear;arm64-v8a" --channel=3
It works.
👍🏻 1
👍🏼 1