Closed lirunqiuqiu closed 6 years ago
Switch from wear to app in the drop down menu next to the Run button in Android Studio.
I don't know why my project there doesn't have a wear to choose. I haven't changed the settings.gradle and app build.gradle from download.
It's that you don't have a wear device to run on. Just change to app and it will run on the phone.
Thanks for your suggestion. Didn't the app should depend on wear ? I can't run the app. Request class is in wear.
I did some refactoring in the BLE Library, try importing the Request class from the same packet as the BleManager is. Not from wear. Also, I highly recommend checking this app on develop branch. It requires BLE Library also from develop branch, and a new library called ble-common-library, also on develop branch. You'll find all on our GitHub account. The BLE Library v2 has more features and is "almost" backwards compatible (with a lot of deprecations and some packet renaming,etc).
This should be fixed now.
Android version is 3.12, gradle version is 4.1
Unable to find a matching configuration of project :wear: