pwittchen / neurosky-android-sdk

Android SDK for the NeuroSky MindWave Mobile Brainwave Sensing Headset
https://pwittchen.github.io/neurosky-android-sdk/docs
Apache License 2.0
48 stars 16 forks source link

Importing Butterknife error #102

Open Jiasuann opened 3 years ago

Jiasuann commented 3 years ago

Hi, I am facing issue in canont resolve symbol for "butterknife" and "library". May I know how to solve this?

pwittchen commented 3 years ago

Hi,

What are you trying to do? According to your message, I can guess you are trying to import whole project. Try to rebuild it with from command line with ./gradlew clean build command. You can also try to refresh gradle dependencies in Android Studio.

Regards, Piotr

Jiasuann commented 3 years ago

Hi, I solved the cradle dependencies issue! But I have one question, is the code able to extract the Eeg data? If yes, where it will be stored and if no, is there any other code to extract it?

Thank you. Regards, Yap Jia Suan

On 8 Jan 2021, at 6:01 PM, Piotr Wittchen notifications@github.com wrote:

Hi,

What are you trying to do? According to your message, I can guess you are trying to import whole project. Try to rebuild it with from command line with ./gradlew clean build command. You can also try to refresh gradle dependencies in Android Studio.

Regards, Piotr

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pwittchen/neurosky-android-sdk/issues/102#issuecomment-756665355, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASK4SVBV5VXSKZOMS7MD53DSY3JXDANCNFSM4VZ7YEDQ.

pwittchen commented 3 years ago

Data is not stored anywhere. It's a library with sample application, you can implement it as you want. You can extract Signal object which contains e.g. attention and meditiation states or Set<BrainWave> for raw brainwave data. Check documentation in the README.md, source code and sample app.

Jiasuann commented 3 years ago

Hi, I am facing an error where all the java class in the library folder get an error of class “BluetoothConnectingOrConnectedException” is never used. But, the package written is correct for all the java class in exception, listener, enums and validation folder.

Regards, Yap Jia Suan

On 11 Jan 2021, at 5:54 PM, Piotr Wittchen notifications@github.com wrote:

Closed #102 https://github.com/pwittchen/neurosky-android-sdk/issues/102.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pwittchen/neurosky-android-sdk/issues/102#event-4189812567, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASK4SVB5H4TFS6XTBXKDYULSZLDGPANCNFSM4VZ7YEDQ.

pwittchen commented 3 years ago

This class is part of the library code. Try to rebuild project from command line via ./gradlew clean build and refresh gradle dependencies in Android Studio.

Jiasuann commented 3 years ago

Hmm, I tried but still couldn’t work. I also tried to run the app-java, the android studio showed me an error “Gradle sync failed plugin with id ‘findbugs’ not found”. I tried to add spot bugs into the build.gradle but it still couldn’t work. May I know how should I solve this?

Thank you.

On 13 Jan 2021, at 5:50 PM, Piotr Wittchen notifications@github.com wrote:

This class is part of the library code. Try to rebuild project from command line via ./gradlew clean build and refresh gradle dependencies in Android Studio.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pwittchen/neurosky-android-sdk/issues/102#issuecomment-759334829, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASK4SVGYFSC2WETHSL22NNTSZVUFBANCNFSM4VZ7YEDQ.

pwittchen commented 3 years ago

It's strange. I'll have a look on that.

Jiasuann commented 3 years ago

Alright, hope to hear from you soon!

Thank you! Regards, Yap Jia Suan

On 14 Jan 2021, at 5:59 PM, Piotr Wittchen notifications@github.com wrote:

It's strange. I'll have a look on that.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pwittchen/neurosky-android-sdk/issues/102#issuecomment-760089678, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASK4SVF2EBRE5B2JIGH6H2TSZ257HANCNFSM4VZ7YEDQ.

Jiasuann commented 3 years ago

Hi,

If I have an error:

Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'. Could not resolve project :library. Required by: project :app No matching configuration of project :library was found. The consumer was configured to find an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug' but:

  • None of the consumable configurations have attributes.

May I know how to solve this? I have actually put the library into my android studio

Regards, Yap Jia Suan

On 14 Jan 2021, at 5:59 PM, Piotr Wittchen notifications@github.com wrote:

It's strange. I'll have a look on that.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pwittchen/neurosky-android-sdk/issues/102#issuecomment-760089678, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASK4SVF2EBRE5B2JIGH6H2TSZ257HANCNFSM4VZ7YEDQ.

pwittchen commented 3 years ago

Once you imported the whole project (library and app), it should work.

Jiasuann commented 3 years ago

Hi, I would want to ask will the app-java store eeg data?

Thank You Regards, Jia Suan

On 18 Jan 2021, at 5:57 PM, Piotr Wittchen notifications@github.com wrote:

Once you imported the whole project (library and app), it should work.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pwittchen/neurosky-android-sdk/issues/102#issuecomment-762132198, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASK4SVBVQUWCMGDITGCKOXDS2QAY3ANCNFSM4VZ7YEDQ.

pwittchen commented 3 years ago

It won't store the data. It's the sample app for showing how to use library, gather and display the data. You can include library in your project as a dependency and implement storing data for yourself.