neurosky-android-sdk icon indicating copy to clipboard operation
neurosky-android-sdk copied to clipboard

Importing Butterknife error

Open Jiasuann opened this issue 3 years ago • 12 comments

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

Jiasuann avatar Jan 08 '21 06:01 Jiasuann

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

pwittchen avatar Jan 08 '21 10:01 pwittchen

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 [email protected] 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.

Jiasuann avatar Jan 11 '21 03:01 Jiasuann

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.

pwittchen avatar Jan 11 '21 09:01 pwittchen

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 [email protected] 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.

Jiasuann avatar Jan 13 '21 05:01 Jiasuann

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.

pwittchen avatar Jan 13 '21 09:01 pwittchen

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 [email protected] 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.

Jiasuann avatar Jan 14 '21 05:01 Jiasuann

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

pwittchen avatar Jan 14 '21 09:01 pwittchen

Alright, hope to hear from you soon!

Thank you! Regards, Yap Jia Suan

On 14 Jan 2021, at 5:59 PM, Piotr Wittchen [email protected] 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 avatar Jan 14 '21 13:01 Jiasuann

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 [email protected] 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 avatar Jan 18 '21 00:01 Jiasuann

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

pwittchen avatar Jan 18 '21 09:01 pwittchen

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 [email protected] 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.

Jiasuann avatar Jan 23 '21 10:01 Jiasuann

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.

pwittchen avatar Jan 23 '21 10:01 pwittchen