Pre loader

Trying to import the ECG demo example into my own project

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

I am developing an application which can receive the data from an ECG circuit, then transmit that data through Bluetooth into my phone application. My phone application would then display the ECG graph. I tried downloading the ECG demo example and it works find on its own. I am trying to incorporate that into my own project and see if it works. However I have been getting errors. Please help me out! Thank you!

Version
Trial version for android charts
  • You must to post comments
0
0

Hi Sharleen.

Can you provide more information about errors which you’re getting? It’s hard to tell what is wrong with your project without seeing the code. Also if you’re just starting work with SciChart library then I would suggest you to take a look on our tutorials. Maybe they will be helpful.

Best regards,
Yura

  • You must to post comments
0
0

Hi Yura, I have attached a picture of the error that i got.

Images
  • You must to post comments
0
0

Hi Sharleen,

Well as I see there is a problem with referencing of the libraries. On your screenshot I can see that you reference libraries two times:

  1. Reference local libraries which should be copy pasted into your project folder ( project/app/libs/ folder)

    // you can reference aar from app\libs folder
    implementation 'com.scichart:charting:+@aar'
    implementation 'com.scichart:core:+@aar'
    implementation 'com.scichart:drawing:+@aar'
    implementation 'com.scichart:data:+@aar'
    implementation 'com.scichart:extensions:+@aar'
    
  2. Reference libs from our Maven repository:

    // or you can reference latest version from Maven
    implementation (group: 'com.scichart.library', name: 'core', version: '2.1.0.+', ext: 'aar')
    implementation (group: 'com.scichart.library', name: 'data', version: '2.1.0.+', ext: 'aar')
    implementation (group: 'com.scichart.library', name: 'drawing', version: '2.1.0.+', ext: 'aar')
    implementation (group: 'com.scichart.library', name: 'charting', version: '2.1.0.+', ext: 'aar')
    implementation (group: 'com.scichart.library', name: 'extensions',version: '2.1.0.+', ext: 'aar')
    

In your case Gradle can’t resolve the local libraries which you probably didn’t copy to your project. To fix I would suggest just to remove referencing of local libs and leave only references from Maven.

Best regards,
Yura

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies