Hi Mark,
I tried this but it is still failing to build with the same error. I have
this in my build.gradle:
dependencies {
compile fileTree(include: '*.jar', dir: 'libs')
compile 'org.geotools:gt-geojson:12.2'
compile 'com.google.android.gms:play-services:+'
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.github.erd:android-volley:1.0.0'
compile 'com.vividsolutions:jts:1.13'
}
and the library is in place from the link you specified:
ls app/libs/
jai_codec.jar jai_core.jar
It still tries to find it on the web though:
A problem occurred configuring project ':app'.
> 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
Any ideas?
On Mon, Mar 2, 2015 at 12:30 AM, Mark Prins <mc.pr...@gmail.com> wrote:
> 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
>
--
Will Bendick
Natural Resource
------------------------------------------------------------------------------
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