google / bundletool

Bundletool is a command-line tool to manipulate Android App Bundles
https://g.co/androidappbundle
Apache License 2.0
3.51k stars 384 forks source link

App with code cannot contain Watch Face Format #374

Open Turtlepaw opened 2 weeks ago

Turtlepaw commented 2 weeks ago

Describe the bug Hi, I have an app ("Animals") on the Play Store, and I'd like to add a watch face to it, preferably using Watch Face Format, and I attempted to upload the version with the watch face included, but encountered the following error:

An error occurred while running bundletool build-apks on your uploaded App Bundle. Ensure that your App Bundle is valid by running bundletool build-apks locally and try again. Learn more. Error: Watch face base module cannot have any components and can only have resources.

The code to my app is open-source (github.com) if you'd like to review it.

Bundletool version(s) affected Version: >=1.15.0

Stacktrace

An error occurred while running bundletool build-apks on your uploaded App Bundle. Ensure that your App Bundle is valid by running bundletool build-apks locally and try again. Learn more. Error: Watch face base module cannot have any components and can only have resources.

To Reproduce

  1. Create an app with executable code and Watch Face Format
  2. Upload to Play or use bundletool

Expected behavior The app should be able to have a watch face using Watch Face Format.

Known workaround There is currently no workaround.

Environment: OS: Windows 11

Additional context This issue occurs when uploading to the Play Store.

garanj commented 1 day ago

This is the current expected behavior for Watch Face Format: Bundles containing Watch Face Format watch faces cannot also contain any code.