NordicSemiconductor / Android-nRF-Toolbox

The nRF Toolbox is a container app that stores your Nordic Semiconductor apps for Bluetooth Low Energy in one location.
https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Toolbox
BSD 3-Clause "New" or "Revised" License
1.09k stars 464 forks source link

Unable to find a matching configuration of project :wear: #49

Closed lirunqiuqiu closed 6 years ago

lirunqiuqiu commented 6 years ago

Android version is 3.12, gradle version is 4.1

Unable to find a matching configuration of project :wear:

philips77 commented 6 years ago

Switch from wear to app in the drop down menu next to the Run button in Android Studio.

lirunqiuqiu commented 6 years ago

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.

philips77 commented 6 years ago

It's that you don't have a wear device to run on. Just change to app and it will run on the phone.

lirunqiuqiu commented 6 years ago

Thanks for your suggestion. Didn't the app should depend on wear ? I can't run the app. Request class is in wear. image

philips77 commented 6 years ago

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).

philips77 commented 6 years ago

This should be fixed now.