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 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users