Unable to compile any Android project due to Gradle fail: Could not find javax.xml.datatype.DatatypeFactory

前端 未结 1 955
傲寒
傲寒 2020-12-21 23:05

This is really bugging me, I\'ve installed and reinstalled JDK, ADK, Android Studio, and Gradle several times and in various different orders, but I can\'t get this error to

相关标签:
1条回答
  • 2020-12-21 23:58

    I have encountered the same problem and read the gradle's full stack trace , and found that a jar is missing. The other missing jars, if any will be listed in the full stack trace.

    the jar in question is commons-lang3.jar which is needed by gradle. I installed the jar in the below step

    sudo apt-get install libcommons-lang3-java
    

    then i ran gradle again and it worked fine.

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