geotools does not currently work on android last I checked:
1. replace SPI service registery with SPI service loader
2. replace vecmath with anything else
Projects I know that have forked have grabbed the code and wired it up by
hand, rather than using service loader.
See:
* http://docs.oracle.com/javase/tutorial/sound/SPI-intro.html
* http://docs.oracle.com/javase/7/docs/api/java/util/ServiceLoader.html
*
http://docs.oracle.com/javase/7/docs/api/javax/imageio/spi/ServiceRegistry.html
--
Jody Garnett
On 27 February 2015 at 16:27, Will Bendick <will.bend...@climate.com> 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?
>
>
> ------------------------------------------------------------------------------
> 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
>
>
------------------------------------------------------------------------------
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