- Build the Entire Project
./gradlew build
This command compiles, tests, and packages your project. If there are issues with dependencies or code, they will surface here.
- Generate IntelliJ IDEA Files
./gradlew idea
This creates or updates IntelliJ IDEA-specific files like .idea/ and .iml for each module. After running this, open your project in IntelliJ IDEA, and it should recognize all modules and dependencies.
- Clean Build (Remove Old Outputs):
./gradlew clean build
- Force Refresh Dependencies:
./gradlew build --refresh-dependencies
This forces Gradle to re-check and download any missing or updated dependencies.
- Check Dependency Tree:
./gradlew dependencies
- Debug Specific Dependency Issues:
./gradlew dependencyInsight --dependency <dependency-name>