Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/224.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android Studio中的iblueTothGatt.java_Java_Android_Bluetooth - Fatal编程技术网

Android Studio中的iblueTothGatt.java

Android Studio中的iblueTothGatt.java,java,android,bluetooth,Java,Android,Bluetooth,我正在尝试在Android Studio中创建蓝牙应用程序。我正在使用BluetoothGatt.java,它需要IBluetoothGatt.java,而IBluetoothGatt.java不在我的android studio安装的sources文件夹中 我从grepcode下载了IBluetoothGatt.java,并将其保存在BluetoothGatt.java所在的sources文件夹中,但当我尝试导入IBluetooth.java时,它找不到它 有我错过的一步吗?我以前从未做过类似

我正在尝试在Android Studio中创建蓝牙应用程序。我正在使用BluetoothGatt.java,它需要IBluetoothGatt.java,而IBluetoothGatt.java不在我的android studio安装的sources文件夹中

我从grepcode下载了IBluetoothGatt.java,并将其保存在BluetoothGatt.java所在的sources文件夹中,但当我尝试导入IBluetooth.java时,它找不到它


有我错过的一步吗?我以前从未做过类似的事情,因此我不熟悉如何将下载的文件导入到我的项目中。

您需要该源代码有什么特别的原因吗?这是一个生成的文件,应该是二进制文件。再说一遍,我对这个过程不太熟悉,但我没有理由需要源代码。BluetoothGatt.java中的函数使用IBluetoothGatt对象,它以红色突出显示,因为它找不到IBluetoothGatt.java,我无法导入它。你是说我可以忽略这个错误吗?代码按原样编译得很好。