Today is my first day using SciChart and I’m following along with this hello world demo –
For some reason Android Studio won’t recognize ‘SciChartBuilder.init(this)’. Am I missing a file? I can create an instance of SciChartSurface with no problem but the builder line is a no-go. I have imported and referenced the 4 correct .aar files in my gradle.build file so I’m not sure what else I’d be missing. Any help for a newbie would be appreciated!!
- Cory Giem asked 5 years ago
- You must login to post comments
Hi Cory,
Did you reference ‘extensions’ module in your application? SciChart Builders API is optional so we created a separate library for it which you need to add in your project to use it:
compile (group: 'com.scichart.library', name: 'extensions', version: '2.5.0.2583', ext: 'aar')
Hope this will help you!
Best regards,
Yura
- Yura Khariton answered 5 years ago
- You must login to post comments
I added the line to my gradle file (doesn’t like ‘compile’ so i’m using implementation instead. After resynching the gradle project I am now getting an error that it ‘failed to resolve the com.scichart.library……’ Is this another file I need to be adding to my lib directory?
- Cory Giem answered 5 years ago
-
I assumed that you referenced library using our Maven repository ( like we do in our demo apk – https://github.com/ABTSoftware/SciChart.Android.Examples/blob/master/v2.x/Examples/app/build.gradle ). If you reference them locally then yes, you’ll need to copy it to lib directory.
- You must login to post comments
Yes I was trying to reference locally, didn’t have much luck so i ended up referencing as you do in the link to the maven repo and i’m good to go.
- Cory Giem answered 5 years ago
- You must login to post comments
Please login first to submit.