可能是因为您还没有在gradle文件中添加BluetoothPan依赖库。在您的app的gradle文件中添加以下依赖项:

dependencies {
    implementation 'com.android.bluetooth:bluetooth-pan:VERSION'
}

请将“VERSION”替换为您想要使用的库版本号。然后,同步gradle文件即可开始使用BluetoothPan类。

Android开发:为什么我找不到BluetoothPan这个类、是需要导什么包吗?怎么在gradle中导它的包?

原文地址: https://www.cveoy.top/t/topic/gDZd 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录