我对我在 Eclipse 上开发一段时间的 Android Studio SDK 感到沮丧,但有时会努力迁移到 Android Studio。我无法开始使用 Android Studio。
我正在尝试在 Android Studio 上实现一个名为“ PlaybackDemo ”的DJI演示。我已经让它在 Eclipse 上运行,但 Android Studio 版本不起作用。应用程序按预期启动 DJIAoaActivity 和 DroneSelectionActivity,但是当您选择无人机类型时,PlaybackProtocolActivity 不会启动并且应用程序崩溃。我没有从 PlaybackProtocolActivity 获得 LogCat 上的 OnGetPermissionResult。
我总是收到以下错误:
11-11 11:52:56.338 28334-28334/com.example.myapp E/CliptrayUtils: hideClipTrayIfNeeded() TextView is focused!! hideClipTray()
11-11 11:52:58.058 28334-28334/com.example.myapp E/FPVController: Couldn't load lib
11-11 11:52:58.058 28334-28334/com.example.myapp E/art: No implementation found for int dji.midware.natives.FPVController.native_setIsNeedPacked(boolean) (tried Java_dji_midware_natives_FPVController_native_1setIsNeedPacked and Java_dji_midware_natives_FPVController_native_1setIsNeedPacked__Z)
11-11 11:52:58.186 28334-30034/com.example.myapp E/art: No implementation found for long dji.midware.natives.GroudStation.native_hashFromString(byte[]) (tried Java_dji_midware_natives_GroudStation_native_1hashFromString and Java_dji_midware_natives_GroudStation_native_1hashFromString___3B)
11-11 11:52:58.230 28334-28334/com.example.myapp E/AndroidRuntime: FATAL EXCEPTION: main
11-11 11:52:58.230 28334-28334/com.example.myapp E/AndroidRuntime: Process: com.example.myapp, PID: 28334
11-11 11:52:58.230 28334-28334/com.example.myapp E/AndroidRuntime: java.lang.UnsatisfiedLinkError: No implementation found for int dji.midware.natives.FPVController.native_setIsNeedPacked(boolean) (tried Java_dji_midware_natives_FPVController_native_1setIsNeedPacked and Java_dji_midware_natives_FPVController_native_1setIsNeedPacked__Z)
11-11 11:52:58.230 28334-28334/com.example.myapp E/AndroidRuntime: at dji.midware.natives.FPVController.native_setIsNeedPacked(Native Method)
11-11 11:52:58.230 28334-28334/com.example.myapp E/AndroidRuntime: at dji.sdk.api.DJIDrone.connectToInspire(Unknown Source)
11-11 11:52:58.230 28334-28334/com.example.myapp E/AndroidRuntime: at dji.sdk.api.DJIDrone.connectToDrone(Unknown Source)
11-11 11:52:58.230 28334-28334/com.example.myapp E/AndroidRuntime: at com.example.myapp.PlaybackProtocolActivity.onInitSDK(PlaybackProtocolActivity.java:473)
11-11 11:52:58.230 28334-28334/com.example.myapp E/AndroidRuntime: at com.example.myapp.PlaybackProtocolActivity.onCreate(PlaybackProtocolActivity.java:154)
11-11 11:52:58.230 28334-28334/com.example.myapp E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6020)
11-11 11:52:58.230 28334-28334/com.example.myapp E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
11-11 11:52:58.230 28334-28334/com.example.myapp E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2259)
11-11 11:52:58.230 28334-28334/com.example.myapp E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2366)
11-11 11:52:58.230 28334-28334/com.example.myapp E/AndroidRuntime: at android.app.ActivityThread.access$800(ActivityThread.java:149)
11-11 11:52:58.230 28334-28334/com.example.myapp E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1284)
11-11 11:52:58.230 28334-28334/com.example.myapp E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
11-11 11:52:58.230 28334-28334/com.example.myapp E/AndroidRuntime: at android.os.Looper.loop(Looper.java:135)
11-11 11:52:58.230 28334-28334/com.example.myapp E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5290)
11-11 11:52:58.230 28334-28334/com.example.myapp E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
11-11 11:52:58.230 28334-28334/com.example.myapp E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372)
11-11 11:52:58.230 28334-28334/com.example.myapp E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:908)
11-11 11:52:58.230 28334-28334/com.example.myapp E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:703)