我試圖使用藍牙的Java應用程序,我在Windows 7 64位。 我下面這個例子不滿意的鏈接錯誤BluetoothStackBlueSoleil
http://luugiathuy.com/2011/02/android-java-bluetooth/
原來我有提議在該網站上的bluecove.jar問題,所以我發現這個線程
http://code.google.com/p/bluecove/issues/detail?id=109
告訴我得到這個的.jar:
http://snapshot.bluecove.org/distribution/download/2.1.1-SNAPSHOT/2.1.1-SNAPSHOT.62/
好吧! 但現在,我面對一個新的錯誤(yaay ...):
Exception in thread "Thread-2" java.lang.UnsatisfiedLinkError: com.intel.bluetooth.BluetoothStackBlueSoleil.getLibraryVersion()I
at com.intel.bluetooth.BluetoothStackBlueSoleil.getLibraryVersion(Native Method)
at com.intel.bluetooth.BlueCoveImpl.setBluetoothStack(BlueCoveImpl.java:964)
at com.intel.bluetooth.BlueCoveImpl.detectStack(BlueCoveImpl.java:502)
at com.intel.bluetooth.BlueCoveImpl.access$500(BlueCoveImpl.java:69)
at com.intel.bluetooth.BlueCoveImpl$1.run(BlueCoveImpl.java:1044)
at java.security.AccessController.doPrivileged(Native Method)
at com.intel.bluetooth.BlueCoveImpl.detectStackPrivileged(BlueCoveImpl.java:1042)
at com.intel.bluetooth.BlueCoveImpl.getBluetoothStack(BlueCoveImpl.java:1035)
at javax.bluetooth.LocalDevice.getLocalDeviceInstance(LocalDevice.java:75)
at javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:95)
at BTThread.waitForConnection(BTThread.java:35)
at BTThread.run(BTThread.java:23)
at java.lang.Thread.run(Unknown Source)
所以..會有人有任何想法,爲什麼? 的BluetoothStackBlueSoleil似乎是在我下載的.jar,所以我沒有得到unstatisfied鏈接錯誤......
感謝所有幫助
問題出在Java PC部分,我不認爲這必須對NDK做任何事情......對吧? – Gyome
我不確定,只是補充說,當我看到類似的東西時,這是我的問題,以防將來幫助你。該庫不能被調用,因爲它沒有正確構建。 – Paul