代码之家  ›  专栏  ›  技术社区  ›  Daniel Omotoso

由于JAXB.unmarshal(),Android应用程序构建失败

  •  0
  • Daniel Omotoso  · 技术社区  · 1 年前

    每次我尝试构建我的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添加到构建中,我甚至不得不重新创建一个新项目,因为这个项目相当小。当我第一次创建该项目时,该构建正在运行,但现在它正在反抗。

    0 回复  |  直到 1 年前