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

Can not resolve symbol 'DfuProgressListener' #8

Closed yahch closed 8 years ago

yahch commented 8 years ago

when I open 'Android-nRF-Toolbox' ,a problem occured

in file DfuActivity.java

import no.nordicsemi.android.dfu.DfuProgressListener; import no.nordicsemi.android.dfu.DfuProgressListenerAdapter; import no.nordicsemi.android.dfu.DfuServiceListenerHelper; import no.nordicsemi.android.dfu.DfuServiceInitiator;

ERROR: Can not resolve symbol 'DfuProgressListener' ERROR: Can not resolve symbol 'DfuProgressListenerAdapter' ERROR: Can not resolve symbol 'DfuServiceListenerHelper' ERROR: Can not resolve symbol 'DfuServiceInitiator'

but DFU Library has already placed with Android-nRF-Toolbox directory

Settings.gradle:

project(':dfu').projectDir = file('../DFULibrary-master/dfu')

Please, how can I solves this problem?

philips77 commented 8 years ago

Hi, You need to set up the project just like shown on this page. This is another project, but the principles are the same. The DFU Library needs to be in DFULibrary folder in the same root folder like shown on the image there.

philips77 commented 8 years ago

If you changed the path in the Settings.gradle, I guess it should compile without problems. I'm not sure where else should you change the paths... Try cleaning the project.

yahch commented 8 years ago

oh I was too careless,I should clone the project rather than download the zip file,so the DFU-Library DfuProgressListener.java missing... and thank you very very very much! :)