每次我尝试构建我的android应用程序时,它都会抛出一个类似这样的错误
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Cannot invoke "javax.xml.bind.JAXBContext.createUnmarshaller()" because "context" is null
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
如果这是问题所在,我已经将JAXB添加到构建中,我甚至不得不重新创建一个新项目,因为这个项目相当小。当我第一次创建该项目时,该构建正在运行,但现在它正在反抗。