SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components
Hi,
I was using android sdk 2.5 and i’m not getting any runtime errors and error logs. But after updating the project to sdk 3.0 i started getting errors (no code has been changed). During the runtime, chart’s xAxis shows wrong times and started writing 1970 under every vertical grid line. Also debug log says: “SciChartSurface has no XAxes. Please ensure SciChartSurface.XAxis is set, or SciChartSurface.XAxes has at least one axis”.
I’m just upgrade sdk 2.5 to 3.0, how can i fix errors?
Tnx.
Hi Yura,
I fixed the “SciChartSurface has no XAxes. Please ensure SciChartSurface.XAxis is set, or SciChartSurface.XAxes has at least one axis” error but xAxis still shows the same time under every vertical grid line. As you can see on attached picture crosshair shows correct time but xAxis labels shows 1970 (on monthly data). If i get weekly data it shows 1 Jan and if i get Daily data it shows 02:00 under every vertical grid line. Does this make a connotation for you?
Tnx.
after upgrading the sdk i am also getting this error:-
Error:Could not find com.android.tools.build:gradle:3.0.0-alpha4.
Searched in the following locations:
file:/C:/Program Files/Android/Android Studio
3/gradle/m2repository/com/android/tools/build/gradle/3.0.0-alpha4/gradle-
3.0.0-alpha4.pom
file:/C:/Program Files/Android/Android Studio
3/gradle/m2repository/com/android/tools/build/gradle/3.0.0-alpha4/gradle-
3.0.0-alpha4.jar
https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.0-
alpha4/gradle-3.0.0-alpha4.pom
https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.0-
alpha4/gradle-3.0.0-alpha4.jar
Required by:
project :
i searched everywhere on internet and then i found solution on this tech channel and i also took help of developer team. what you need to do in this situation is you should read the migration guide.
and Change you build.gradle:
buildscript {
repositories {
…
// You need to add the following repository to download the
// new plugin.
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0-alpha4'
}
}
Please login first to submit.