我有 1 个基于此的项目:https ://github.com/Nilhcem/i2cfun-androidthings
https://github.com/neuberfran/SmartDrive5(后者是我的项目)
但是,当我将 PeripheralManagerService 更改为 PeripheralManager (DP 7 和 APi 级别 27)
try {
PeripheralManager manager = PeripheralManager.getInstance();
mDevice = manager.openI2cDevice(I2C_DEVICE_NAME, I2C_ADDRESS);
} catch (IOException e) {
Log.w(TAG, "Unable to access I2C device", e);
}
我有这个问题:https ://drive.google.com/file/d/1kXfknYcu4RUF7AT1549_sjJiVSG2_Jjo/view?usp= 在这一行分享: https ://drive.google.com/file/d/1nTXOV0qiQDe5XldzIuLsY26oIdyfs3x3/view?usp=分享
我知道这一点:PeripheralManagerService 抛出 NoClassDefFoundError 但未解决。
你能帮助我吗