midas-gufei / react-native-qiniu-uploader Goto Github PK
View Code? Open in Web Editor NEW七牛断点续传Qiniu React-Native模块封装 支持iOS/Android
七牛断点续传Qiniu React-Native模块封装 支持iOS/Android
iOS可以上传成功!
Android在上传的时候提示这个错误,调试时发现方法是走了的,在执行
uploadManager.put(filePath, upKey, upToken, completionHandler, opt);
的时候抛出异常。
"react-native": "0.57.8"
implementation 'com.qiniu:qiniu-android-sdk:7.3.+'
错误信息:
Could not invoke Qiniu.startTask
null
No static method get(Ljava/lang/String;)Lokhttp3/MediaType; in class Lokhttp3/MediaType; or its super classes (declaration of 'okhttp3.MediaType' appears in /data/app/com.assistantdoctor-2/split_lib_dependencies_apk.apk)
invoke
JavaMethodWrapper.java:383
invoke
JavaModuleWrapper.java:160
run
NativeRunnable.java
handleCallback
Handler.java:751
dispatchMessage
Handler.java:95
dispatchMessage
MessageQueueThreadHandler.java:29
loop
Looper.java:154
run
MessageQueueThreadImpl.java:192
run
Thread.java:761
_QNEngine.QNEngine.setParams is not a function
Upload success does not return the upload path
如果我要一次性上传多张图片,请问该怎么处理啊?由于插件只维护了一个事件处理中心,而不是每个实例就有一个,我发现很难回调出来。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.