我制作了一个Android应用程序,并将QQ腾讯库SDk添加到其中。 我把sdk放在Android文件夹/ libs open_sdk_r5043_lite.jar
jar文件包含
├─assets
| |_____libwbsafeedit
| |_____com.tencent.open.config.json
├─com
│ └─tencent
│ ├─connect
│ │ ├─a
│ │ ├─auth
│ │ ├─common
│ │ └─share
│ ├─open
│ │ ├─a
│ │ ├─b
│ │ ├─c
│ │ ├─utils
│ │ └─web
│ │ └─security
│ └─tauth
└─META-INF
并在build.gradle中编译库
compile files('libs/open_sdk_r5043_lite.jar')
我开始构建/运行应用程序, 但是当我运行应用程序时,它会显示错误消息。
08-07 14:52:57.507 14959-14959/com.commandp.me E/Crittercism﹕ Unable to send crash
java.lang.UnsatisfiedLinkError: com.tencent.connect.auth.AuthDialog
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:309)
at java.lang.Class.forName(Class.java:273)
at crittercism.android.bc.c(Unknown Source)
at crittercism.android.bc.<init>(Unknown Source)
at crittercism.android.ar.a(Unknown Source)
at crittercism.android.aq.uncaughtException(Unknown Source)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
08-07 14:52:57.507 14959-14959/com.commandp.me E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.commandp.me, PID: 14959
java.lang.UnsatisfiedLinkError: dlopen failed: "/data/data/com.commandp.me/files/libwbsafeedit.so" is 32-bit instead of 64-bit
at java.lang.Runtime.load(Runtime.java:331)
at java.lang.System.load(System.java:981)
at com.tencent.connect.auth.AuthDialog.<clinit>(ProGuard:80)
at com.tencent.connect.auth.AuthAgent$1$1.run(ProGuard:247)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5424)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:913)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:706)
谁能帮助我?
在Android Studio中重建32位?
答案 0 :(得分:0)
在build.gradle中尝试以下内容
packagingOptions { exclude 'assets/libwbsafeedit' }