开发者社区> 问答> 正文

TableStore JAVA sdk的能在安卓上面使用么

一直在尝试将tablestore的java sdk放在安卓上,但是似乎行不通,在尝试将所有依赖包解决之后,运行时直接报错:

E/AndroidRuntime: FATAL EXCEPTION: I/O dispatcher 1
    Process: com.example.bianaltsspotupdateorder, PID: 31593
    java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/naming/ldap/LdapName;
        at com.aliyun.ots.thirdparty.org.apache.conn.ssl.AbstractVerifier.extractCNs(AbstractVerifier.java:277)
        at com.aliyun.ots.thirdparty.org.apache.conn.ssl.AbstractVerifier.getCNs(AbstractVerifier.java:265)
        at com.aliyun.ots.thirdparty.org.apache.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:157)
        at com.aliyun.ots.thirdparty.org.apache.nio.conn.ssl.SSLIOSessionStrategy.verifySession(SSLIOSessionStrategy.java:158)
        at com.aliyun.ots.thirdparty.org.apache.nio.conn.ssl.SSLIOSessionStrategy$1.verify(SSLIOSessionStrategy.java:140)
        at com.aliyun.ots.thirdparty.org.apache.nio.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:291)
        at com.aliyun.ots.thirdparty.org.apache.nio.reactor.ssl.SSLIOSession.isAppInputReady(SSLIOSession.java:391)
        at com.aliyun.ots.thirdparty.org.apache.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:119)
        at com.aliyun.ots.thirdparty.org.apache.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:159)
        at com.aliyun.ots.thirdparty.org.apache.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:338)
        at com.aliyun.ots.thirdparty.org.apache.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:316)
        at com.aliyun.ots.thirdparty.org.apache.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:277)
        at com.aliyun.ots.thirdparty.org.apache.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:105)
        at com.aliyun.ots.thirdparty.org.apache.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:584)
        at java.lang.Thread.run(Thread.java:930)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "javax.naming.ldap.LdapName" on path: DexPathList[[dex file "/data/data/com.example.bianaltsspotupdateorder/code_cache/.overlay/base.apk/classes.dex", dex file "/data/data/com.example.bianaltsspotupdateorder/code_cache/.overlay/base.apk/classes18.dex", zip file "/data/app/~~EJYq8LjtZ4OCLYSQmiROlQ==/com.example.bianaltsspotupdateorder-wYzuy_MBNq_WS-bp1UB_VA==/base.apk"],nativeLibraryDirectories=[/data/app/~~EJYq8LjtZ4OCLYSQmiROlQ==/com.example.bianaltsspotupdateorder-wYzuy_MBNq_WS-bp1UB_VA==/lib/arm64, /system/lib64, /hw_product/lib64, /system/lib64/module/multimedia, /system/product/lib64]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:218)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
        at com.aliyun.ots.thirdparty.org.apache.conn.ssl.AbstractVerifier.extractCNs(AbstractVerifier.java:277) 
        at com.aliyun.ots.thirdparty.org.apache.conn.ssl.AbstractVerifier.getCNs(AbstractVerifier.java:265) 
        at com.aliyun.ots.thirdparty.org.apache.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:157) 
        at com.aliyun.ots.thirdparty.org.apache.nio.conn.ssl.SSLIOSessionStrategy.verifySession(SSLIOSessionStrategy.java:158) 
        at com.aliyun.ots.thirdparty.org.apache.nio.conn.ssl.SSLIOSessionStrategy$1.verify(SSLIOSessionStrategy.java:140) 
        at com.aliyun.ots.thirdparty.org.apache.nio.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:291) 
        at com.aliyun.ots.thirdparty.org.apache.nio.reactor.ssl.SSLIOSession.isAppInputReady(SSLIOSession.java:391) 
        at com.aliyun.ots.thirdparty.org.apache.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:119) 
        at com.aliyun.ots.thirdparty.org.apache.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:159) 
        at com.aliyun.ots.thirdparty.org.apache.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:338) 
        at com.aliyun.ots.thirdparty.org.apache.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:316) 
        at com.aliyun.ots.thirdparty.org.apache.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:277) 
        at com.aliyun.ots.thirdparty.org.apache.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:105) 
        at com.aliyun.ots.thirdparty.org.apache.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:584) 
        at java.lang.Thread.run(Thread.java:930) 

就是想问问看,是否有可行方案?还是彻底在设计之初就没有这种考虑?

展开
收起
zhuhuangru 2023-01-25 09:02:00 430 0
1 条回答
写回答
取消 提交回答
  • 资深技术专家,全网粉丝10W+。主攻技术开发,擅长分享、写文、测评。

    这个完全没有问题啊,肯定是可以在安卓说跑的,应该是你其他的不兼容问题。好好查一下。

    2023-01-27 08:53:45
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
从 SDK 到编解码:视频直播架构解析 立即下载
跨平台的云服务SDK需要什么 立即下载
一个跨平台的云服务SDK需要什么 立即下载