BUG! exception in phase 'semantic analysis'

后端 未结 5 656
感情败类
感情败类 2020-12-05 14:37

I have a 1.1.7 spring-boot app using Gradle 1.10 & jdk1.8. I use Groovy/Spock for testing It has two dependencies - jars build with Apache Maven 3.1.1 and jdk 1.8. I b

5条回答
  •  借酒劲吻你
    2020-12-05 15:17

    I had this BUG! exception in phase 'semantic analysis' in source unit '...' issue today and upgrading gradle (as mentioned in a comment) didn't work.

    What worked for me was cleaning the gradle cache:

    rm -rf $HOME/.gradle/caches/

    and project gradle directory

    rm -rf $PROJECT/.gradle/caches/ && rm -rf $PROJECT/build/

    Related How can I force gradle to redownload dependencies?

提交回复
热议问题