gpt4 book ai didi

android - 三星 SPen SDK 演示立即崩溃

转载 作者:行者123 更新时间:2023-11-30 03:19:15 25 4
gpt4 key购买 nike

我尝试使用 Samsung SPen SDK ( http://developer.samsung.com/android/technical-docs/S-Pen-SDK-2-3-Tutorial ),但只要我使用它的任何东西,我的模拟器就会立即崩溃。此外,SDK-Demo 无法在模拟器上运行 - 它会启动,但只要我从 ListView 中选择其中一个演示,我就会直接强制关闭。

模拟器数据:

  • 设备:Nexus 7
  • Android 4.3 API 级别 18
  • 英特尔凌动 (x86)
  • 内存:
    • 内存:1024
    • VM 堆:32
  • 内部存储空间:200 MB
  • 使用主机 GPU:是的

对于简单的代码更改,我不想每次都需要获取设备。是否有“技巧”让它发挥作用?

提前致谢!

更新:按照此处的要求,在发生错误时遵循 logcat 的堆栈跟踪

10-19 14:27:55.473: D/dalvikvm(2001): VFY: replacing opcode 0x6e at 0x0032

10-19 14:27:55.493: E/SDraw(2001): This engine isn't supported to run on this device. (brand : generic_x86, manufacturer : unknown)

10-19 14:27:55.563: E/CB::BeautifyNative(2001): WARNING: Could not load libjni_secime natives

更新 2:当我使用模拟器库并尝试打开 SPenGestureLibrary 时,我得到以下堆栈跟踪。我有“代码”:

public MainActivity extends ActivityWithSPenLayer

我在覆盖方法中使用了 super.onCreateOptionsMenu(menu)

10-19 14:40:10.574: E/AndroidRuntime(2179): FATAL EXCEPTION: main
10-19 14:40:10.574: E/AndroidRuntime(2179): java.lang.UnsatisfiedLinkError: Couldn't load SPenGesture from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.testappforgesturelibrary-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.testappforgesturelibrary-1, /system/lib]]]: findLibrary returned null
10-19 14:40:10.574: E/AndroidRuntime(2179): at java.lang.Runtime.loadLibrary(Runtime.java:355)
10-19 14:40:10.574: E/AndroidRuntime(2179): at java.lang.System.loadLibrary(System.java:525)
10-19 14:40:10.574: E/AndroidRuntime(2179): at com.samsung.spen.engine.gesture.SPenGestureEngineJni.<init>(SourceFile:7)
10-19 14:40:10.574: E/AndroidRuntime(2179): at com.samsung.spen.engine.gesture.a.a(SourceFile:61)
10-19 14:40:10.574: E/AndroidRuntime(2179): at com.samsung.spen.lib.gesture.SPenGestureLibrary.openSPenGestureEngine(SourceFile:122)
10-19 14:40:10.574: E/AndroidRuntime(2179): at com.example.testappforgesturelibrary.MainActivity.onCreate(MainActivity.java:38)
10-19 14:40:10.574: E/AndroidRuntime(2179): at android.app.Activity.performCreate(Activity.java:5133)
10-19 14:40:10.574: E/AndroidRuntime(2179): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
10-19 14:40:10.574: E/AndroidRuntime(2179): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
10-19 14:40:10.574: E/AndroidRuntime(2179): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
10-19 14:40:10.574: E/AndroidRuntime(2179): at android.app.ActivityThread.access$600(ActivityThread.java:141)
10-19 14:40:10.574: E/AndroidRuntime(2179): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
10-19 14:40:10.574: E/AndroidRuntime(2179): at android.os.Handler.dispatchMessage(Handler.java:99)
10-19 14:40:10.574: E/AndroidRuntime(2179): at android.os.Looper.loop(Looper.java:137)
10-19 14:40:10.574: E/AndroidRuntime(2179): at android.app.ActivityThread.main(ActivityThread.java:5103)
10-19 14:40:10.574: E/AndroidRuntime(2179): at java.lang.reflect.Method.invokeNative(Native Method)
10-19 14:40:10.574: E/AndroidRuntime(2179): at java.lang.reflect.Method.invoke(Method.java:525)
10-19 14:40:10.574: E/AndroidRuntime(2179): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
10-19 14:40:10.574: E/AndroidRuntime(2179): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
10-19 14:40:10.574: E/AndroidRuntime(2179): at dalvik.system.NativeStart.main(Native Method)

最佳答案

关于android - 三星 SPen SDK 演示立即崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19466322/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com