android–Dropbox Sync API– 不满意的链接错误

android–Dropbox Sync API– 不满意的链接错误,第1张

概述我正在尝试在现有的Android应用程序中实现DropboxSyncAPI.我已经下载了DropboxSyncAPI并复制了我的Application的lib文件夹中的所有库.我还将NativeLibrary位置指向libDropboxSync.so所在的libs文件夹.的Manifest.xml....<!--DropboxActivities--><activit

我正在尝试在现有的Android应用程序中实现DropBoxSync API.
我已经下载了DropBoxSync API并复制了我的Application的lib文件夹中的所有库.
我还将Native library位置指向libDropBoxSync.so所在的libs文件夹.

的Manifest.xml

....        <!-- DropBox ActivitIEs -->    <activity androID:name="com.dropBox.sync.androID.DbxAuthActivity" />    <activity        androID:name="com.dropBox.clIEnt2.androID.AuthActivity"        androID:launchMode="singleTask" >        <intent-filter>            <data androID:scheme="db-intentionally-hIDden-app-key" />            <action androID:name="androID.intent.action.VIEW" />            <category androID:name="androID.intent.category.broWSABLE" />            <category androID:name="androID.intent.category.DEFAulT" />        </intent-filter>    </activity>    <service        androID:name="com.dropBox.sync.androID.DbxSyncService"        androID:enabled="true"        androID:exported="false"        androID:label="DropBox Sync" />

Main_Activity.java

public class Activity_Main extends Activity implements OnClickListener,OnItemClickListener, OntouchListener {............private DbxAccountManager mDbxAcctMgr;onCreate(....){//Application giving FATAL EXCEPTION on the line below.mDbxAcctMgr = DbxAccountManager.getInstance((Activity)Activity_Main.this, DROPBox_APP_KEY, DROPBox_APP_SECRET); ....}....}

Logcat日志

12-06 10:10:25.362: E/AndroIDRuntime(8110): FATAL EXCEPTION: main12-06 10:10:25.362: E/AndroIDRuntime(8110): Process: com.***.***, PID: 811012-06 10:10:25.362: E/AndroIDRuntime(8110): java.lang.UnsatisfIEdlinkError: Couldn't load DropBoxSync from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/com.Google.androID.maps.jar", zip file "/data/app/com.***.***-1.apk"],nativelibraryDirectorIEs=[/data/app-lib/com.***.***-1, /vendor/lib, /system/lib]]]: findlibrary returned null12-06 10:10:25.362: E/AndroIDRuntime(8110):     at java.lang.Runtime.loadlibrary(Runtime.java:358)12-06 10:10:25.362: E/AndroIDRuntime(8110):     at java.lang.System.loadlibrary(System.java:526)12-06 10:10:25.362: E/AndroIDRuntime(8110):     at com.dropBox.sync.androID.Nativehttp.<clinit>(Nativehttp.java:447)12-06 10:10:25.362: E/AndroIDRuntime(8110):     at com.dropBox.sync.androID.Nativelib.<init>(Nativelib.java:33)12-06 10:10:25.362: E/AndroIDRuntime(8110):     at com.dropBox.sync.androID.Nativelib.<clinit>(Nativelib.java:11)12-06 10:10:25.362: E/AndroIDRuntime(8110):     at com.dropBox.sync.androID.CoreAccountManager.initNativelib(CoreAccountManager.java:155)12-06 10:10:25.362: E/AndroIDRuntime(8110):     at com.dropBox.sync.androID.CoreAccountManager.<init>(CoreAccountManager.java:126)12-06 10:10:25.362: E/AndroIDRuntime(8110):     at com.dropBox.sync.androID.DbxAccountManager.getInstance(DbxAccountManager.java:149)12-06 10:10:25.362: E/AndroIDRuntime(8110):     at com.dropBox.sync.androID.DbxAccountManager.getInstance(DbxAccountManager.java:115)12-06 10:10:25.362: E/AndroIDRuntime(8110):     at com.***.***.activitIEs.Activity_Main.onCreate(Activity_Main.java:459)12-06 10:10:25.362: E/AndroIDRuntime(8110):     at androID.app.Activity.performCreate(Activity.java:5243)12-06 10:10:25.362: E/AndroIDRuntime(8110):     at androID.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)12-06 10:10:25.362: E/AndroIDRuntime(8110):     at androID.app.ActivityThread.performlaunchActivity(ActivityThread.java:2140)12-06 10:10:25.362: E/AndroIDRuntime(8110):     at androID.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2226)12-06 10:10:25.362: E/AndroIDRuntime(8110):     at androID.app.ActivityThread.access0(ActivityThread.java:135)12-06 10:10:25.362: E/AndroIDRuntime(8110):     at androID.app.ActivityThread$H.handleMessage(ActivityThread.java:1397)12-06 10:10:25.362: E/AndroIDRuntime(8110):     at androID.os.Handler.dispatchMessage(Handler.java:102)12-06 10:10:25.362: E/AndroIDRuntime(8110):     at androID.os.Looper.loop(Looper.java:137)12-06 10:10:25.362: E/AndroIDRuntime(8110):     at androID.app.ActivityThread.main(ActivityThread.java:4998)12-06 10:10:25.362: E/AndroIDRuntime(8110):     at java.lang.reflect.Method.invokeNative(Native Method)12-06 10:10:25.362: E/AndroIDRuntime(8110):     at java.lang.reflect.Method.invoke(Method.java:515)12-06 10:10:25.362: E/AndroIDRuntime(8110):     at com.androID.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)12-06 10:10:25.362: E/AndroIDRuntime(8110):     at com.androID.internal.os.ZygoteInit.main(ZygoteInit.java:593)12-06 10:10:25.362: E/AndroIDRuntime(8110):     at dalvik.system.NativeStart.main(Native Method)12-06 10:10:25.532: W/ActivityThread(8110): ClassLoader.loadClass: The class loader returned by Thread.getContextClassLoader() may fail for processes that host multiple applications. You should explicitly specify a context class loader. For example: Thread.setContextClassLoader(getClass().getClassLoader());

我已经尝试过这个解决方案:Error in dropboxSync: findlibrary returned null但它不适用于我.所以请不要将此问题标记为重复.

非常感谢任何帮助,谢谢.

解决方法:

libs目录下的armeabi-v7a文件夹中缺少libDropBoxSync.so.
我将libDropBoxSync.so从armeabi-v7文件夹复制到libs目录下的armeabi-v7a文件夹,并且库已成功加载.
由于我使用Google-Nexus-7第二代进行调试,因此armeabi-v7a文件夹中的DropBoxSync库是必须的.

总结

以上是内存溢出为你收集整理的android – Dropbox Sync API – 不满意的链接错误全部内容,希望文章能够帮你解决android – Dropbox Sync API – 不满意的链接错误所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1101834.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-28
下一篇 2022-05-28

发表评论

登录后才能评论

评论列表(0条)

保存