Jump to content

help a brother out.. google api


Qubit

Recommended Posts

How did you import the lib?

 

Jar? Maven? Gradle?

 

Edit: 

then right clicked gradle project in project explorer and exported as a jar, then imported that jar into my projects libraries.

Don't do that...

 

Google how to use gradle :p

 

Or just use maven:

<dependency>
    <groupId>com.google.maps</groupId>
    <artifactId>google-maps-services</artifactId>
    <version>(insert latest version)</version>
</dependency>

Maven is love.

Edited by Botre
  • Like 1
Link to comment
Share on other sites

How did you import the lib?

 

Jar? Maven? Gradle?

 

Edit: 

then right clicked gradle project in project explorer and exported as a jar, then imported that jar into my projects libraries.

Don't do that...

 

Google how to use gradle :p

 

Or just use maven:

<dependency>
    <groupId>com.google.maps</groupId>
    <artifactId>google-maps-services</artifactId>
    <version>(insert latest version)</version>
</dependency>

Maven is love.

I used eclipse to build the gradle project, which then showed up in project explorer, which I then exported to a jar. Which is used in my project. Was this the wrong way to do it? Could you give me a example how I would do this?

Link to comment
Share on other sites

I used eclipse to build the gradle project, which then showed up in project explorer, which I then exported to a jar. Which is used in my project. Was this the wrong way to do it? Could you give me a example how I would do this?

 

Yes it was the wrong way to do it, you can google Gradle if you want to learn more but I would deffo suggest Maven over Gradle:

 

Create new Maven project, open pom.xml, paste the dependency, done.

  • Like 1
Link to comment
Share on other sites

Yes it was the wrong way to do it, you can google Gradle if you want to learn more but I would deffo suggest Maven over Gradle:

 

Create new Maven project, open pom.xml, paste the dependency, done.

Using maven, I added the dependency code you gave me but where do i put the google api project?

Link to comment
Share on other sites

Using maven, I added the dependency code you gave me but where do i put the google api project?

 

Maven takes care of every thing.

 

Fill in pom.xml.

Optional (in case you don't have auto-update enabled for maven): Right-click project -> maven -> update project.

Maven will download everything that is required and add it to your project.

Start coding.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...