android / android/nowinandroid

[Bug]: FlavorDimension doesn't support more than one dimension, or at least Android Studio doesn't

Open
#1,590 7 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Kotlin
Stars
21.8k
Forks
4.6k
Avg merge
19h 20m
Merged PRs (30d)
2

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Is there a StackOverflow question about this issue?

- [X] I have searched StackOverflow

### What happened?

Try to define a second FlavorDimension ( for example "environment" ) ,
Add a flavor, called for "prod”.
Sync, you'll notice no problem is there, build variant are correctly created.
Try now to go to "project structure" and you'll notice that it will tell you that Flavor "x" has no dimension, for each module and for each flavor.

I don't know why this happens but it's making me mad, because it's a recent problem, and it doesn't let me to use succesfully "build project"

### Relevant logcat output

_No response_

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported setup with a second FlavorDimension, such as environment, and a prod flavor, then inspect Project Structure for the flavor-dimension warnings. Compare the displayed configuration with the generated build variants and verify that Build Project completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
build-system, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.