Add Maven repository to build.gradle

After apply plugin: ‘com.android.application’ You should add this: repositories { mavenCentral() maven { url “https://repository-achartengine.forge.cloudbees.com/snapshot/” } } @Benjamin explained the reason. If you have a maven with authentication you can use: repositories { mavenCentral() maven { credentials { username xxx password xxx } url ‘http://mymaven/xxxx/repositories/releases/’ } } It is important the order.

achartengine – can’t figure how to use dates as x axis – the file I save is empty

The code that deal with your file must be something like this (not compiled): public void savefunc(){ List<String> myDate = new ArrayList<String>(); //To store the formatted dates SimpleDateFormat thedate = new SimpleDateFormat(“dd/MM/yyyy”); Date d=new Date(); //the current date String sd = thedate.format(d); // sd contains “16/04/2013”, the formatted date myDate.add(sd); double thedata=Double.parseDouble(value.getText().toString().trim()); mydata.add(thedata); … BufferedWriter … Read more

Android: I am using AChartEngine library for graphs, but not able to integrate achartengine’s graph view with android xml?

This is a FAQ for AChartEngine. The AChartEngine demo application is available for download here: AChartEngine demo In the demo source code you can see an example on how to embed a chart into an existing view. Basically, in the activity descriptor .xml file, we have defined the following as a placeholder for the chart. … Read more