jadeja
01/05/2023, 10:55 AMCLOVIS
01/05/2023, 10:58 AMjadeja
01/05/2023, 11:00 AMjadeja
01/05/2023, 11:01 AMCLOVIS
01/05/2023, 11:04 AMjadeja
01/05/2023, 11:05 AMJohn O'Reilly
01/05/2023, 3:32 PMjadeja
01/05/2023, 3:47 PMCLOVIS
01/05/2023, 3:48 PMjadeja
01/05/2023, 3:50 PMJohn O'Reilly
01/05/2023, 3:50 PMJohn O'Reilly
01/05/2023, 3:51 PMCLOVIS
01/05/2023, 3:53 PMgradlew projects
Linux/MacOS: ./gradlew projects
This will give you the list of modules that exist in your project. You can then replace projects
by <name of the project>:tasks
(without the <>
) to get a list of tasks, then <name of the project>:<name of the task>
to execute that task.
Here, we're interested in the build
task of whatever the project name is. I think by default it's called app
, but I'm not sureCLOVIS
01/05/2023, 3:54 PMapp
, and you're on Linux, run ./gradlew app:build
jadeja
01/05/2023, 3:55 PMCLOVIS
01/05/2023, 3:56 PMjadeja
01/05/2023, 4:01 PMCLOVIS
01/05/2023, 4:02 PM./gradlew <your thing>
every time, otherwise you'll get Command not found
jadeja
01/05/2023, 4:02 PMjadeja
01/05/2023, 4:03 PMjadeja
01/05/2023, 4:04 PMCLOVIS
01/05/2023, 4:06 PMbuild.gradle.kts
files of your project, edit something randomly (e.g. add blank lines in the middle of the file), it should show a banner at the top saying "Sync Gradle files now" (or something similar), click that
Sorry for this weird manipulation, Google decided to remove the button to do it easilyjadeja
01/05/2023, 4:07 PMjadeja
01/05/2023, 4:10 PMjadeja
01/05/2023, 4:12 PMjadeja
01/05/2023, 4:13 PMjadeja
01/05/2023, 6:05 PMjadeja
01/05/2023, 6:06 PM