android arduino usb通讯

时间:2013-12-17 16:16:32

标签: android arduino

我正在尝试在Android 4.1交叉USB上建立Arduino UNO R3和Galaxy SII之间的通信。我在这里关注的代码示例:http://androidgurusolutions.blogspot.com/2012/07/arduino-adk-board-blink-led-with-your.html。不幸的是,我收到此消息'应用已停止',这里是LogCat错误

logcat的:

E/AndroidRuntime(535): FATAL EXCEPTION: main

E/AndroidRuntime(535): java.lang.NoClassDefFoundError: com.android.future.usb.UsbManager

E/AndroidRuntime(535): at com.example.mypro.MainActivity.onCreate(MainActivity.java:123)

E/AndroidRuntime(535): at android.app.Activity.performCreate(Activity.java:4465)

E/AndroidRuntime(535): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)

E/AndroidRuntime(535): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1919)

E/AndroidRuntime(535): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1980)

E/AndroidRuntime(535):at android.app.ActivityThread.access$600(ActivityThread.java:122)

E/AndroidRuntime(535):at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1146)

E/AndroidRuntime(535):at android.os.Handler.dispatchMessage(Handler.java:99)

E/AndroidRuntime(535):at android.os.Looper.loop(Looper.java:137)

E/AndroidRuntime(535):at android.app.ActivityThread.main(ActivityThread.java:4340)

E/AndroidRuntime(535):at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime(535):at java.lang.reflect.Method.invoke(Method.java:511)

E/AndroidRuntime(535):at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)

E/AndroidRuntime(535):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)

E/AndroidRuntime(535):at dalvik.system.NativeStart.main(Native Method)

请有人帮助我。提前谢谢.....

0 个答案:

没有答案