2013-08-20 87 views
0

在我的android設備上運行this給了我這些錯誤。與Android NDK相關的錯誤

 

    Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lffvideolivewallpaper/frankandrobot/com/NativeCalls; 
    Shutting down VM 
    threadid=1: thread exiting with uncaught exception (group=0x40ed42a0) 
    FATAL EXCEPTION: main 
    java.lang.ExceptionInInitializerError 
    at ffvideolivewallpaper.frankandrobot.com.VideoLiveWallpaper.onSharedPreferenceChanged(VideoLiveWallpaper.java:144) 
    at ffvideolivewallpaper.frankandrobot.com.VideoLiveWallpaper.onCreate(VideoLiveWallpaper.java:78) 
    at android.app.ActivityThread.handleCreateService(ActivityThread.java:2404) 
    at android.app.ActivityThread.access$1600(ActivityThread.java:140) 
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1309) 
    at android.os.Handler.dispatchMessage(Handler.java:99) 
    at android.os.Looper.loop(Looper.java:137) 
    at android.app.ActivityThread.main(ActivityThread.java:4898) 
    at java.lang.reflect.Method.invokeNative(Native Method) 
    at java.lang.reflect.Method.invoke(Method.java:511) 
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006) 
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773) 
    at dalvik.system.NativeStart.main(Native Method) 
    Caused by: java.lang.UnsatisfiedLinkError: Couldn't load avcore: findLibrary returned null 
    at java.lang.Runtime.loadLibrary(Runtime.java:365) 
    at java.lang.System.loadLibrary(System.java:535) 
    at ffvideolivewallpaper.frankandrobot.com.NativeCalls.(NativeCalls.java:42) 
    ... 13 more 
 

我認爲這些錯誤與Android NDK有關。任何人都可以指導我,請記住,我沒有Android NDK的預先知識以及它的工作原理。

+1

由於錯誤狀態,請在您的設備上找到'libavcore.so'文件。缺少的是這個錯誤的根本原因。 – Samveen

回答

0

我找到了原因爲什麼我得到這個錯誤,因爲我沒有構建本地庫。我使用了ndk-build,並且錯誤得到了解決。