opensciencemap / vtm

a vector-tile map library written in java - running on android, desktop and within the browser
GNU Lesser General Public License v3.0
238 stars 176 forks source link

Unable to import library into project #92

Closed MarsVard closed 10 years ago

MarsVard commented 10 years ago

I'm trying to import the library into my project,

I'm using android studio and I keep getting gradle errors, "unsupported gradle DSL 'eclipse()'" at first

after manually adding plugin 'eclipe' to android-vtm and vtm gradle build files I now get this error: "Error:Configuration with name 'default' not found."

has anybody been able to successfully imlement this library in android studio? how?

hjanetzek commented 10 years ago

Did you import build.gradle from the root directory?

MarsVard commented 10 years ago

I added include 'vtm:vtm-android' to my settings.gradle and import project(':vtm:vtm-android') to my app.gradle file...

not sure how I should go about importing root gradle file... :/ am I missing something?

hjanetzek commented 10 years ago

Just importing vtm/build.gradle works for me to run the example apps in android-studio. Though for application development you can also run '../gradlew clean install' in vtm,vtm-android,vtm-themes and then use the jars from the local repository.

hjanetzek commented 10 years ago

btw. I've just pushed updated android gradle dependencies which may have been necessary. And dont forget to use 'git clone --recursive ...' to get the precompiled native libraries

MarsVard commented 10 years ago

I got it to work by installing it to my local maven repo! thanks for updating the build tools version!