Git Product home page Git Product logo

Comments (8)

fantouch avatar fantouch commented on July 20, 2024 16

根据Android 官方文档 https://developer.android.com/reference/javax/xml/datatype/DatatypeFactory.html#newInstance%28%29 其中有说明 Note that you must supply your own implementation (such as Xerces); Android does not ship with a default implementation.

所以解决办法是添加依赖 implementation group: 'xerces', name: 'xercesImpl', version: '2.11.0'

from tencentcloud-sdk-java.

HS-Gray avatar HS-Gray commented on July 20, 2024 1

根据Android 官方文档 https://developer.android.com/reference/javax/xml/datatype/DatatypeFactory.html#newInstance%28%29 其中有说明 Note that you must supply your own implementation (such as Xerces); Android does not ship with a default implementation.

所以解决办法是添加依赖 implementation group: 'xerces', name: 'xercesImpl', version: '2.11.0'

2.11.0的版本的依赖可能还是不会生效,可以换一下2.12.0的版本试试
implementation group: 'xerces', name: 'xercesImpl', version: '2.12.0'

from tencentcloud-sdk-java.

zqfan avatar zqfan commented on July 20, 2024

sdk中没有直接用到这个包,请检查下您自己写的代码部分。
另外,在某些java版本下,缺失了如下的包

    <dependency>
      <groupId>javax.xml.bind</groupId>
      <artifactId>jaxb-api</artifactId>
      <version>2.3.0</version>
    </dependency>

from tencentcloud-sdk-java.

wangsuicheng avatar wangsuicheng commented on July 20, 2024

implementation 'javax.xml.bind:jaxb-api:2.3.0'
implementation 'javax.xml:jaxp-api:1.4.2'
奇怪,我引入这两个依赖还是报错呀,我是1.8.0_91的java,
而且我只是依据demo初始化InitOralProcessRequest这个而已,
有个链接好像说明了类似的情况:
https://stackoverflow.com/questions/7918466/cant-use-xmlgregoriancalendar-in-android-even-if-it-is-documented
@zqfan

from tencentcloud-sdk-java.

zqfan avatar zqfan commented on July 20, 2024

这个sdk不支持移动端(android)环境,至少一开始没这个打算,也未测试过兼容性。

from tencentcloud-sdk-java.

wangsuicheng avatar wangsuicheng commented on July 20, 2024

这个sdk不支持移动端(android)环境,至少一开始没这个打算,也未测试过兼容性。

噢,那有支持语音测评的android sdk了吗?还是说目前只能通过api来调用?

from tencentcloud-sdk-java.

zqfan avatar zqfan commented on July 20, 2024

有的,他们自己实现了移动端的(ios和android):https://github.com/TencentCloud/tencentcloud-sdk-android-soe

from tencentcloud-sdk-java.

stustatic avatar stustatic commented on July 20, 2024

根据Android 官方文档 https://developer.android.com/reference/javax/xml/datatype/DatatypeFactory.html#newInstance%28%29 其中有说明 Note that you must supply your own implementation (such as Xerces); Android does not ship with a default implementation.
所以解决办法是添加依赖 implementation group: 'xerces', name: 'xercesImpl', version: '2.11.0'

2.11.0的版本的依赖可能还是不会生效,可以换一下2.12.0的版本试试 implementation group: 'xerces', name: 'xercesImpl', version: '2.12.0'

android端人脸变换如下使用不会报错:
implementation 'com.tencentcloudapi:tencentcloud-sdk-java:3.1.536'
implementation group: 'xerces', name: 'xercesImpl', version: '2.12.0'

from tencentcloud-sdk-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.