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.07k stars 461 forks source link

Module Not Defined #41

Closed VinayTShetty closed 6 years ago

VinayTShetty commented 6 years ago

After importing the zip file,the android studio is showing. Module not defined.

roshanrajaratnam commented 6 years ago

Hi, I think you are missing the BLE library here, please clone the Android-BLE-Library repository outside the Android-nRF-Toolbox project. The BLE side of things have been moved in to a separate module to make it easier for maintenance. Let us know how it goes.

VinayTShetty commented 6 years ago

Hi roshan i have cloned and compiled the file as below you told but its showing different error now.

androidstudio_screenshot projectextraction_screen_shot

philips77 commented 6 years ago

The Android-BLE-Library project must be cloned into yours DFUupdate folder, and named Android-BLE-Library, without -master.

philips77 commented 6 years ago

Btw, it's not a good idea to name folders with a name of a branch (master), as you may check you and branch in your local repository.

VinayTShetty commented 6 years ago

Can u please send the single zip file which has completed all the above process.thanks in advance.

roshanrajaratnam commented 6 years ago

@VinayTShetty All you have to do is to just move the extracted Android-Ble-Library folder to "Example 1" folder. This Android-Ble-Library module should be located outside your project folder (This case your project folder seems to be Android-nRF-Toolbox-master). Give this a go and it should work,

VinayTShetty commented 6 years ago

Can u please send the single zip file which has completed all the above process as its again showing the same error .thanks in advance. @roshanrajaratnam @philips77

VinayTShetty commented 6 years ago

@roshanrajaratnam I have extracted it outside as u suggested,but its still the same issue. screenshot1 screenshot2 screenshot3 png

roshanrajaratnam commented 6 years ago

@VinayTShetty check inside the extracted folder to see if its inside another directory of the same name. I think when you extracted, it went in to a sub folder within the folder. Hopefully this should fix your issue and remember to remove "-master". If you look at the settings.gradle file in the project you should see how the folder should look like.

VinayTShetty commented 6 years ago

@roshanrajaratnam Its seriously not helping its getting more confused.I request you to send a single zip folder which has completed all the above process. so that i can compile and run.

roshanrajaratnam commented 6 years ago

Here you go, it's not that hard. Just open the toolbox project from Android studio and you are good to go. example.zip

roshanrajaratnam commented 6 years ago

@VinayTShetty is your issue resolved now?

philips77 commented 6 years ago

Duplicate of #40

VinayTShetty commented 6 years ago

@roshanrajaratnam Thank you so much for your effort. I got to know how to do it. Am really thank full to you for Sending that Zip file. But when i open in android studio application its showing Missing Feature Watch. How to disable that watch feature. screenshot1 screenshot2

philips77 commented 6 years ago

On the right-top corner of AS, next to the green Play icon, there is a drop-down. Select 'app', not 'wear'.

VinayTShetty commented 6 years ago

@roshanrajaratnam @philips77 Thank you Both for Guiding me till here. Its Working like a charm, But i have some question below please answer it..

Question 1:-When i click the select Device Button(Screen Shot),the scan is not showing my device.

Question 2:-I need only DFU firware update to be implemented to my XYZ application, i don t require rest of the things which they have implemented like BPM,UART,...etc. Can u please guide me on How to get only DFU firmware update code both java and XML and Manifest.

Question 3:-My main requirement is devloping an application, that updates DFU through cloud.Not by selecting the Zip files. Is that possible..? Where i can find any reference for cloud update..? Can u both guide me on Update of DFU through Cloud. screenshot2

roshanrajaratnam commented 6 years ago

@VinayTShetty it would be great if you can post these questions on https://devzone.nordicsemi.com/questions/ as the issues created here are solely for supporting issues related to the app it self. We can take it ahead from there.