google / google/bundletool

App with code cannot contain Watch Face Format

Open
#374 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
4k
Forks
428
PR merge metrics
No merged PRs in 30d

Description

**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)](https://github.com/Turtlepaw/wear-cats) 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.