bashen1 / react-native-mbaichuan Goto Github PK
View Code? Open in Web Editor NEWReact Native alibaichuan
License: MIT License
React Native alibaichuan
License: MIT License
包括 Android 或 iOS 的日志:
ios 报错
ld: framework not found UTDID
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我收到了如下的线上崩溃信息:
java.lang.NullPointerException: Attempt to invoke virtual method 'android.app.Application android.app.Activity.getApplication()' on a null object reference
at com.maochunjie.mbaichuan.RNReactNativeMbaichuanModule.initSDK(RNReactNativeMbaichuanModule.java:76)
at java.lang.reflect.Method.invoke(Native Method)
at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:151)
at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:900)
at android.os.Handler.dispatchMessage(Handler.java:103)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
at android.os.Looper.loop(Looper.java:219)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226)
at java.lang.Thread.run(Thread.java:929)
调用登陆方法回调104错误
{message:"TB_BACK_WITHOUT_AUTH",code:104}
有人遇到过么 ?
大佬,依赖的sdk是否更新到最新的计划
包括 Android 或 iOS 的日志:
ios 报错
AlibabaAuthSDK/ALBBSDK.h' file not found
配置:
"react": "16.8.3",
"react-native": "0.59.9",
"react-native-mbaichuan": "^1.0.2"
下面是运行编译提示的错误
Task :react-native-mbaichuan:compileDebugJavaWithJavac
注: /Users/mljfnn/Desktop/demo/youhuigou_m/node_modules/react-native-mbaichuan/android/src/main/java/com/manmanbuy/mbaichuan/BCWebManager.java使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: /Users/mljfnn/Desktop/demo/youhuigou_m/node_modules/react-native-mbaichuan/android/src/main/java/com/manmanbuy/mbaichuan/BCWebManager.java使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
/Users/mljfnn/Desktop/demo/youhuigou_m/node_modules/react-native-mbaichuan/android/libs/alipaySingle-20160825.jar: D8: Typeorg.apache.http.impl.client.DefaultHttpClient
was not found, it is required for default or static interface methods desugaring oforg.apache.http.protocol.BasicHttpProcessor com.alipay.android.phone.mrpc.core.d.createHttpProcessor()
/Users/mljfnn/Desktop/demo/youhuigou_m/node_modules/react-native-mbaichuan/android/libs/alipaySingle-20160825.jar: D8: Typeorg.apache.http.impl.client.DefaultRedirectHandler
was not found, it is required for default or static interface methods desugaring ofboolean com.alipay.android.phone.mrpc.core.e.isRedirectRequested(org.apache.http.HttpResponse, org.apache.http.protocol.HttpContext)
/Users/mljfnn/Desktop/demo/youhuigou_m/node_modules/react-native-mbaichuan/android/libs/alipaySingle-20160825.jar: D8: Typeorg.apache.http.client.utils.URLEncodedUtils
was not found, it is required for default or static interface methods desugaring ofbyte[] com.alipay.android.phone.mrpc.core.a.e.a()
/Users/mljfnn/Desktop/demo/youhuigou_m/node_modules/react-native-mbaichuan/android/libs/alipaySingle-20160825.jar: D8: Typeorg.apache.http.params.HttpProtocolParams
was not found, it is required for default or static interface methods desugaring ofcom.alipay.android.phone.mrpc.core.b com.alipay.android.phone.mrpc.core.b.a(java.lang.String)
/Users/mljfnn/Desktop/demo/youhuigou_m/node_modules/react-native-mbaichuan/android/libs/alipaySingle-20160825.jar: D8: Typeorg.apache.http.client.params.HttpClientParams
was not found, it is required for default or static interface methods desugaring ofcom.alipay.android.phone.mrpc.core.b com.alipay.android.phone.mrpc.core.b.a(java.lang.String)
/Users/mljfnn/Desktop/demo/youhuigou_m/node_modules/react-native-mbaichuan/android/libs/alipaySingle-20160825.jar: D8: Typeorg.apache.http.conn.scheme.PlainSocketFactory
was not found, it is required for default or static interface methods desugaring ofcom.alipay.android.phone.mrpc.core.b com.alipay.android.phone.mrpc.core.b.a(java.lang.String)
/Users/mljfnn/Desktop/demo/youhuigou_m/node_modules/react-native-mbaichuan/android/libs/alipaySingle-20160825.jar: D8: Typeorg.apache.http.conn.params.ConnManagerParams
was not found, it is required for default or static interface methods desugaring ofcom.alipay.android.phone.mrpc.core.b com.alipay.android.phone.mrpc.core.b.a(java.lang.String)
/Users/mljfnn/Desktop/demo/youhuigou_m/node_modules/react-native-mbaichuan/android/libs/alipaySingle-20160825.jar: D8: Typeorg.apache.http.params.HttpProtocolParams
was not found, it is required for default or static interface methods desugaring ofcom.alipay.sdk.net.b com.alipay.sdk.net.b.a()
/Users/mljfnn/Desktop/demo/youhuigou_m/node_modules/react-native-mbaichuan/android/libs/alipaySingle-20160825.jar: D8: Typeorg.apache.http.conn.params.ConnManagerParams
was not found, it is required for default or static interface methods desugaring ofcom.alipay.sdk.net.b com.alipay.sdk.net.b.a()
/Users/mljfnn/Desktop/demo/youhuigou_m/node_modules/react-native-mbaichuan/android/libs/alipaySingle-20160825.jar: D8: Typeorg.apache.http.client.params.HttpClientParams
was not found, it is required for default or static interface methods desugaring ofcom.alipay.sdk.net.b com.alipay.sdk.net.b.a()
/Users/mljfnn/Desktop/demo/youhuigou_m/node_modules/react-native-mbaichuan/android/libs/alipaySingle-20160825.jar: D8: Typeorg.apache.http.conn.scheme.PlainSocketFactory
was not found, it is required for default or static interface methods desugaring ofcom.alipay.sdk.net.b com.alipay.sdk.net.b.a()
/Users/mljfnn/Desktop/demo/youhuigou_m/node_modules/react-native-mbaichuan/android/libs/alipaySingle-20160825.jar: D8: Interfaceorg.apache.http.client.HttpClient
not found. It's needed to make sure desugaring ofcom.alipay.android.phone.mrpc.core.b
is correct. Desugaring will assume that this interface has no default method.
/Users/mljfnn/Desktop/demo/youhuigou_m/node_modules/react-native-mbaichuan/android/libs/alipaySingle-20160825.jar: D8: Interfaceorg.apache.http.conn.ConnectionKeepAliveStrategy
not found. It's needed to make sure desugaring ofcom.alipay.android.phone.mrpc.core.f
is correct. Desugaring will assume that this interface has no default method.
/Users/mljfnn/Desktop/demo/youhuigou_m/node_modules/react-native-mbaichuan/android/libs/alipaySingle-20160825.jar: D8: Interfaceorg.apache.http.HttpRequestInterceptor
not found. It's needed to make sure desugaring ofcom.alipay.android.phone.mrpc.core.c
is correct. Desugaring will assume that this interface has no default method.
/Users/mljfnn/Desktop/demo/youhuigou_m/node_modules/react-native-mbaichuan/android/libs/alipaySingle-20160825.jar: D8: Interfaceorg.apache.http.client.HttpRequestRetryHandler
not found. It's needed to make sure desugaring ofcom.alipay.android.phone.mrpc.core.ad
is correct. Desugaring will assume that this interface has no default method.
/Users/mljfnn/Desktop/demo/youhuigou_m/node_modules/react-native-mbaichuan/android/libs/fastjson-1.2.9.jar: D8: Interfacejavax.ws.rs.ext.MessageBodyReader
not found. It's needed to make sure desugaring ofcom.alibaba.fastjson.support.jaxrs.FastJsonProvider
is correct. Desugaring will assume that this interface has no default method.
/Users/mljfnn/Desktop/demo/youhuigou_m/node_modules/react-native-mbaichuan/android/libs/fastjson-1.2.9.jar: D8: Interfacejavax.ws.rs.ext.MessageBodyWriter
not found. It's needed to make sure desugaring ofcom.alibaba.fastjson.support.jaxrs.FastJsonProvider
is correct. Desugaring will assume that this interface has no default method.
/Users/mljfnn/Desktop/demo/youhuigou_m/node_modules/react-native-mbaichuan/android/libs/fastjson-1.2.9.jar: D8: Typeorg.springframework.util.CollectionUtils
was not found, it is required for default or static interface methods desugaring ofjava.lang.Object com.alibaba.fastjson.support.spring.FastJsonJsonView.filterModel(java.util.Map)
Task :react-native-mbaichuan:transformNativeLibsWithStripDebugSymbolForDebug
/Users/mljfnn/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-strip:/Users/mljfnn/Desktop/demo/youhuigou_m/node_modules/react-native-mbaichuan/android/build/intermediates/transforms/mergeJniLibs/debug/0/lib/armeabi-v7a/libsgsecuritybody.so: File format not recognized
Unable to strip library '1' due to error /Users/mljfnn/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-strip returned from '/Users/mljfnn/Desktop/demo/youhuigou_m/node_modules/react-native-mbaichuan/android/build/intermediates/transforms/mergeJniLibs/debug/0/lib/armeabi-v7a/libsgsecuritybody.so', packaging it as is.
/Users/mljfnn/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-strip:/Users/mljfnn/Desktop/demo/youhuigou_m/node_modules/react-native-mbaichuan/android/build/intermediates/transforms/mergeJniLibs/debug/0/lib/armeabi-v7a/libsgmain.so: File format not recognized
Unable to strip library '1' due to error /Users/mljfnn/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-strip returned from '/Users/mljfnn/Desktop/demo/youhuigou_m/node_modules/react-native-mbaichuan/android/build/intermediates/transforms/mergeJniLibs/debug/0/lib/armeabi-v7a/libsgmain.so', packaging it as is.
Unable to strip library '/Users/mljfnn/Desktop/demo/youhuigou_m/node_modules/react-native-mbaichuan/android/build/intermediates/transforms/mergeJniLibs/debug/0/lib/armeabi/libsgsecuritybody.so' due to missing strip tool for ABI 'ARMEABI'. Packaging it as is.
Unable to strip library '/Users/mljfnn/Desktop/demo/youhuigou_m/node_modules/react-native-mbaichuan/android/build/intermediates/transforms/mergeJniLibs/debug/0/lib/armeabi/libsgmain.so' due to missing strip tool for ABI 'ARMEABI'. Packaging it as is.
Task :app:transformNativeLibsWithStripDebugSymbolForDebug
/Users/mljfnn/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-strip:/Users/mljfnn/Desktop/demo/youhuigou_m/android/app/build/intermediates/transforms/mergeJniLibs/debug/0/lib/armeabi-v7a/libsgsecuritybody.so: File format not recognized
Unable to strip library '1' due to error /Users/mljfnn/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-strip returned from '/Users/mljfnn/Desktop/demo/youhuigou_m/android/app/build/intermediates/transforms/mergeJniLibs/debug/0/lib/armeabi-v7a/libsgsecuritybody.so', packaging it as is.
/Users/mljfnn/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-strip:/Users/mljfnn/Desktop/demo/youhuigou_m/android/app/build/intermediates/transforms/mergeJniLibs/debug/0/lib/armeabi-v7a/libsgmain.so: File format not recognized
Unable to strip library '1' due to error /Users/mljfnn/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-strip returned from '/Users/mljfnn/Desktop/demo/youhuigou_m/android/app/build/intermediates/transforms/mergeJniLibs/debug/0/lib/armeabi-v7a/libsgmain.so', packaging it as is.
Unable to strip library '/Users/mljfnn/Desktop/demo/youhuigou_m/android/app/build/intermediates/transforms/mergeJniLibs/debug/0/lib/armeabi/libsgsecuritybody.so' due to missing strip tool for ABI 'ARMEABI'. Packaging it as is.
Unable to strip library '/Users/mljfnn/Desktop/demo/youhuigou_m/android/app/build/intermediates/transforms/mergeJniLibs/debug/0/lib/armeabi/libsgmain.so' due to missing strip tool for ABI 'ARMEABI'. Packaging it as is.
点击淘宝上的小把手不能返回app
首先感谢兄弟能提供这玩意,我们做reactnative 的,真的去写安卓和调用原生模块,真的很难受,新手路过。
我几乎看了所有的git和百度,关于阿里百川的,我最多用安卓的原生包成功使用了电商sdk,但是用rn 的包,无论怎么样都错。
然后git上安装npm,还是通过不了。麻烦了,我这个愿意付费咨询。我QQ邮箱 [email protected]
问题:无论是vscode报错和AS Sycn 都一样的报错。
vs:
`* What went wrong:
Could not determine the dependencies of task ':react-native-mbaichuan:compileDebugAidl'.
Could not resolve all task dependencies for configuration ':react-native-mbaichuan:debugCompileClasspath'.
Could not find com.taobao.android:securityguardaar3:5.4.171.
Required by:
project :react-native-mbaichuan
Could not find com.taobao.android:securitybodyaar3:5.4.99.
Required by:
project :react-native-mbaichuan
Could not find com.taobao.android:avmpaar3:5.4.36.
Required by:
project :react-native-mbaichuan
Could not find com.taobao.android:sgmiddletieraar3:5.4.9.
Required by:
project :react-native-mbaichuan
Could not find com.taobao.android:mtopsdk_allinone_open:3.1.2.5.
Required by:
project :react-native-mbaichuan
Could not find com.alibaba.sdk.android:alibc_link_partner:4.1.15.
Required by:
project :react-native-mbaichuan
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log
output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 22s`
安卓报错:
Fail to resolve:com.taobao.android.secuirtyguardarr 3:5.4.171 <a href="XXXXX">
我配置了你说的maven,路径对的
android>build.gradle
`// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = "29.0.2"
minSdkVersion = 16
compileSdkVersion = 29
targetSdkVersion = 29
}
repositories {
google()
jcenter()
}
dependencies {
classpath("com.android.tools.build:gradle:3.5.3")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
google()
jcenter()
maven { url 'https://www.jitpack.io' }
maven {
url "http://repo.baichuan-android.taobao.com/content/groups/BaichuanRepositories/"
}
}
}
`
AS显示就是 build.gradle(Project)
期待你的回复
期待你的回复
期待你的回复
期待你的回复
期待你的回复
期待你的回复
大神,老版本的sdk在9.30号后不支持了,能否将相关的sdk版本更新到最新了?
百川SDK授权成功后不会透传用户登录态 在当前授权状态app上打开淘宝相关链接 还是要重新输入淘宝账号
Could not determine the dependencies of task ':react-native-mbaichuan:compileReleaseAidl'.
Could not resolve all task dependencies for configuration ':react-native-mbaichuan:releaseCompileClasspath'.
Could not find com.taobao.android:securityguardaar3:5.4.171.
Required by:
project :react-native-mbaichuan
Could not find com.taobao.android:securitybodyaar3:5.4.99.
Required by:
project :react-native-mbaichuan
Could not find com.taobao.android:avmpaar3:5.4.36.
Required by:
project :react-native-mbaichuan
Could not find com.taobao.android:sgmiddletieraar3:5.4.9.
Required by:
project :react-native-mbaichuan
Could not find com.taobao.android:mtopsdk_allinone_open:3.1.2.5.
Required by:
project :react-native-mbaichuan
Could not find com.alibaba.sdk.android:alibc_link_partner:4.1.15.
Required by:
project :react-native-mbaichuan
如题
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.