← All tasks
javagoogle/guava #7813Not a task: already works

guava android doesn't define module com.google.com

envgap__google__guava-7813

01 / FAILURE SIGNATURE

As reported upstream

I have a library that is used for both desktop and android apps. For this reason I used the android version of guava. In my module-info.java I have had `requires com.google.common;` for years, and this worked up until 33.4.5-android, when I started getting this build error:
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
001d5015169762df065d20a6f8fe24e96cf43ed2
Manifest
android/guava/pom.xml
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

google/guava #7813 · read the original issue
### Guava Version

33.4.8-android

### Description

I have a library that is used for both desktop and android apps. For this reason I used the android version of guava. In my module-info.java I have had `requires com.google.common;` for years, and this worked up until 33.4.5-android, when I started getting this build error:

`java: module not found: com.google.common`

This occurs on every version including 33.4.8-android (the most recent as of this writing). Switching to the jre version fixes the issue. I don't see anything in any of the release notes to indicate this should be broken on the android versions.

### Example

```java
<dependency>
                <groupId>com.google.guava</groupId>
                <artifactId>guava</artifactId>
                <version>33.4.8-android</version>
            </dependency>



module org.jsoar.core
{
    requires com.google.common;
    ...
}
```

### Expected Behavior

Compiles.

### Actual Behavior

`java: module not found: com.google.common`

### Packages

_No response_

### Platforms

_No response_

### Checklist

- [x] I agree to follow the [code of conduct](https://github.com/google/.github/blob/master/CODE_OF_CONDUCT.md).

- [x] I can reproduce the bug with the [latest](https://github.com/google/guava/releases/latest) version of Guava available.
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]