一直在尝试将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)
就是想问问看,是否有可行方案?还是彻底在设计之初就没有这种考虑?
这个完全没有问题啊,肯定是可以在安卓说跑的,应该是你其他的不兼容问题。好好查一下。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。