Coder Social home page Coder Social logo

react-native-mbaichuan's People

Contributors

bashen1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-native-mbaichuan's Issues

ld: framework not found UTDID

你的运行环境

  • 插件版本:
  • react-native 版本:0.60.5
  • react-native-mbaichuan 版本:3.0.1

Debug logs

包括 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)

AlibabaAuthSDK/ALBBSDK.h' file not found

你的运行环境

  • 插件版本:
  • react-native 版本:0.60.5
  • react-native-mbaichuan 版本:2.0.2

Debug logs

包括 Android 或 iOS 的日志:
ios 报错
AlibabaAuthSDK/ALBBSDK.h' file not found

编译过程出现下面错误提示,在app里调用出现不能打开某so文件。

配置:
"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: Type org.apache.http.impl.client.DefaultHttpClient was not found, it is required for default or static interface methods desugaring of org.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: Type org.apache.http.impl.client.DefaultRedirectHandler was not found, it is required for default or static interface methods desugaring of boolean 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: Type org.apache.http.client.utils.URLEncodedUtils was not found, it is required for default or static interface methods desugaring of byte[] 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: Type org.apache.http.params.HttpProtocolParams was not found, it is required for default or static interface methods desugaring of com.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: Type org.apache.http.client.params.HttpClientParams was not found, it is required for default or static interface methods desugaring of com.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: Type org.apache.http.conn.scheme.PlainSocketFactory was not found, it is required for default or static interface methods desugaring of com.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: Type org.apache.http.conn.params.ConnManagerParams was not found, it is required for default or static interface methods desugaring of com.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: Type org.apache.http.params.HttpProtocolParams was not found, it is required for default or static interface methods desugaring of com.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: Type org.apache.http.conn.params.ConnManagerParams was not found, it is required for default or static interface methods desugaring of com.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: Type org.apache.http.client.params.HttpClientParams was not found, it is required for default or static interface methods desugaring of com.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: Type org.apache.http.conn.scheme.PlainSocketFactory was not found, it is required for default or static interface methods desugaring of com.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: Interface org.apache.http.client.HttpClient not found. It's needed to make sure desugaring of com.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: Interface org.apache.http.conn.ConnectionKeepAliveStrategy not found. It's needed to make sure desugaring of com.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: Interface org.apache.http.HttpRequestInterceptor not found. It's needed to make sure desugaring of com.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: Interface org.apache.http.client.HttpRequestRetryHandler not found. It's needed to make sure desugaring of com.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: Interface javax.ws.rs.ext.MessageBodyReader not found. It's needed to make sure desugaring of com.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: Interface javax.ws.rs.ext.MessageBodyWriter not found. It's needed to make sure desugaring of com.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: Type org.springframework.util.CollectionUtils was not found, it is required for default or static interface methods desugaring of java.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.

Could not resolve all task dependencies for configuration ':react-native-mbaichuan:debugCompileClasspath'.

首先感谢兄弟能提供这玩意,我们做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)
期待你的回复
期待你的回复
期待你的回复
期待你的回复
期待你的回复
期待你的回复

Could not find com.taobao.androidxxxxxx

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

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.