Android things PeripheralManagerService 无法导入 compileOnly 'com.google.android.things:androidthings:

1  在androidThings 的  androidthings:0.1-devpreview'版本,是有PeripheralManagerService  ,但是 到1.0 版本之后,变成了

PeripheralManager 这个类,

2 在导入 'com.google.android.things:androidthings:1.0' 这个包的时候 要用 provided 'com.google.android.things:androidthings:1.0'

尽量不要用 compileOnly 修饰。

 新的gradle dependency 抛弃了compile 

猜你喜欢

转载自blog.csdn.net/xiaoniu_my/article/details/80927486