Closed CatchABus closed 4 years ago
Okay, it seems that Android SDK 29 solved this issue. Still, older sdk versions should not be limited like this. Perhaps, checking if method exists would solve this problem.
I just ran into the same problem but easily fixed it by installing the latest Android SDK platform by running sdkmanager --install "build-tools;30.0.3"
If you follow the NativeScript setup instructions it will have you install version 28 but you should always build with the latest platform to support the newest devices. Older devices will still run fine even with using the latest SDK to build the app. The above error results because you need at least SDK 29 to support the setForceDarkAllowed.
Tell us about the problem
RadCartesianChart throws the following exception when used with Android API 29 and higher.
Which platform(s) does your issue occur on?
Android API 29
Please provide the following version numbers that your issue occurs with:
Please tell us how to recreate the issue in as much detail as possible.
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
I found this code block inside ui-chart.android.js It looks like
setForceDarkAllowed
calls are invalid.Our apps make a lot of use of RadCartesianCharts and this issue is preventing clients with new android phones to use them. Hope it's solved soon.