Wish Highcharts Android Wrapper

DonManfred

Expert
Licensed User
Longtime User
It will be a great idea to have a library built around this wrapper. Highcharts has one of the most compelling Look and Feel and flexible charts

https://www.highcharts.com/blog/news/highcharts-android-wrapper/
Note that it is not a cheap library. You need to have a License per app.
https://shop.highsoft.com/mobile?_ga=2.29332287.289486771.1555948102-233120420.1555682068

Based on Erels answer here:
https://www.b4x.com/android/forum/threads/problem-building-library-for-smbj.104232/#post-653395

Based on this: Uncaught translation error: com.android.dx.cf.code.SimException: signature-polymorphic method called without --min-sdk-version >= 26
It uses a Java feature that is not available in older versions of Android.

when trying to run a (real basic) wrap for this
B4X:
Sub Globals
    'These global variables will be redeclared each time the activity is created.
    'These variables can only be accessed from this module.
    Private HIChart1 As HIChartView ' It is part of the Layout...
End Sub
Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    Activity.LoadLayout("Layout1")
    Dim s As HISeries
    s.Initialize
    Dim d As HIData
    d.CsvURL = "https://www.highcharts.com/studies/data.csv"
    Log(d.Params)
    s.addPoint(d)
    HIChart1.addSeries(s)
End Sub

and getting this error

B4A Version: 9.00
Parsing code. (0.00s)
Building folders structure. (0.01s)
Compiling code. (0.00s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
Generating R file. (0.00s)
Compiling generated Java code. (0.01s)
Convert byte code - optimized dex. Error
Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26)
1 error; aborting

I guess the same applies here. I am using the AAR which i downloaded and a librarywrap i wrote.

On their website they promote
The wrapper works with Android 4.4 and newer.
but based on the error message i got i fear that one need to have an Android 8+ Device.
 
Top