Answer the question
In order to leave comments, you need to log in
How to initialize vkSDK?
The first time I work with vk SDK, I can't initialize: VKSdk.initialize(this);
It crashes with the following error:
java.lang.RuntimeException: Unable to start activity ()
Answer the question
In order to leave comments, you need to log in
It is necessary to inherit the Application class and initialize the sdk in its onCreate method
public class App extends Application {
@Override
public void onCreate() {
super.onCreate();
VKSdk.initialize(this);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question