M
M
Maskri2017-06-10 17:50:59
Java
Maskri, 2017-06-10 17:50:59

How to add VK Java sdk library to NetBeans?

There is such a thing https://vk.com/dev/Java_SDK
I've been trying to figure it out for 3 hours now.

Can't add it to the project. As I understand it, it is necessary to compile the finished jar through Gradle?
I just started learning java, I wanted to rewrite my bot with C#, but here is such a problem

. Can you tell me how to use it? What can I do so that I can write import and start working with it?
There are a lot of other dependencies out there.

I just heard about Gradle right now and didn’t really understand how to work with it. I tried to compile from the folder that is on github, I get this

:init
The build file 'build.gradle' already exists. Skipping build initialization.
:init SKIPPED

BUILD SUCCESSFUL

Total time: 1.163 secs


What should I do to add vk sdk to the project?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yurii Vlasiuk, 2017-06-25
@forestyura

In fact, it doesn’t matter which collector you will use, the main thing for you is to add the necessary dependency:

<dependency> 
  <groupId>com.vk.api</groupId> 
  <artifactId>sdk</artifactId> 
  <version>0.5.3</version> 
</dependency>

dependencies { 
  compile 'com.vk.api:sdk:0.5.3 
}

Also, for the VK api to work, third-party dependencies are needed, they are described in paragraph 2. Dependencies ( https://vk.com/dev/Java_SDK )
All the necessary dependencies can be found here: https://mvnrepository.com/, on the page of each provided code for a specific assembler
7771cb314e6a4ff1bf7a0acad988839a.JPG

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question