From: Mark P. <mc....@gm...> - 2015-03-02 08:30:44
|
On 28-02-15 01:27, Will Bendick wrote: > I am trying to use geojson in my android studio project. If I add this > to my project's build.gradle: > > allprojects { > repositories { > mavenCentral() > maven { > url "http://download.osgeo.org/webdav/geotools" > } > } > } > > and this to my app's build.gradle: > > dependencies { > compile 'org.geotools:gt-geojson:12.2' > } > > I get the following error: > > Error:Artifact 'jai_core.jar (javax.media:jai_core:1.1.3)' not found. > Searched in the following locations: > https://repo1.maven.org/maven2/javax/media/jai_core/1.1.3/jai_core-1.1.3.jar > > Is there a workaround? What is the correct way to build a gradle project > depending on geojson? You will need to install jai_core by hand in your local repository; the license prohibits distribution via maven central. A current version of geotools should be able to build without jai from what I read there. See: http://docs.geotools.org/latest/userguide/build/install/jdk.html#java-advanced-imaging Mark |