Thread
#android-studio
    Javier

    Javier

    1 year ago
    Someone is having problems related to run some Gradle tasks in Android Studio terminal, for example, having a failing test, run gradlew test, it fails, fix the test, run again gradlew test and it is like it is cached somewhere and it is reusing the previous code so it fails? I have to restart the IDE to fix this problem.
    andylamax

    andylamax

    1 year ago
    cleanTest before running tests try ./gradlew cleanTest test
    Javier

    Javier

    1 year ago
    Really this problem is not only with tests, for example I can't apply spotless more than one time. With IntelliJ and the same project it is not happening. I think it is cached somewhere...
    Adi

    Adi

    1 year ago
    Did you try a rebuild before running the tests? sometimes that can help
    Javier

    Javier

    1 year ago
    Enable second and third options solves the problem, thank you for your help 🙂