The deepClean task helps resolve build issues by cleaning more thoroughly than the standard
clean task:
-
Stop the Gradle daemon first:
./gradlew --stop
-
Run the deepClean task:
./gradlew deepClean
-
For a complete clean (when having persistent issues):
- Stop the Gradle daemon as shown above
- Manually delete the
.gradledirectory in your project root - Run a clean build:
./gradlew clean build
This project has special requirements for Java versions:
-
Default Setup (Java 8)
- The project is configured to work with Java 8 by default
- Data binding is disabled to ensure compatibility
-
Enabling Data Binding (requires Java 11)
- Install JDK 11 or higher
- Set JAVA_HOME to point to your JDK 11 installation
- Edit
app/build.gradle.ktsand changedataBinding = falsetodataBinding = true - Run
./gradlew deepCleanfollowed by your build command
-
Checking Your Java Version
java -version
-
Regular debug build:
./gradlew assemblePreprodDebug --build-cache
-
Release build:
./gradlew assemblePreprodRelease
-
Build with performance scan:
./gradlew assemblePreprodDebug --scan
-
Run specific tests:
./gradlew test --tests "com.example.adaptivestreamingplayer.YourTestClass"
@@ ... @@