Error on gradle task ':app:compileDebugJavaWithJavac'

后端 未结 5 1622
慢半拍i
慢半拍i 2021-02-09 06:09

I am working with Android Studio 3.1 Canary 6 and I am getting this error when I build my project. I search this error and many users get this with different reasons, but I did

相关标签:
5条回答
  • 2021-02-09 06:29

    Check Unit Tests. Run all gradle tasks step by step..

    0 讨论(0)
  • 2021-02-09 06:34

    maybe this can help, as this worked for me, just delete the taskhistory.bin file in (projectFolder)/.gradle/4.1/taskHistory and clean and rebuild the project. best of luck!

    0 讨论(0)
  • 2021-02-09 06:36

    I found the problem. There is an error in my code, but Android Studio don`t show me errors in code, for studio everything is fine. When I look to step by step task execution of gradle, I saw the problems.

    0 讨论(0)
  • 2021-02-09 06:40

    Just search and fix for all Erros described in Java Compiler

    0 讨论(0)
  • 2021-02-09 06:42

    Its smart answer is that there is some syntax error in your Code may be in Java file or XML. Fix them first. Error will gone. work 100 percent for me every time

    0 讨论(0)
提交回复
热议问题