I try to deal with the API vk, I have never worked with the API from social networks before. I can not understand why underlines the lines. I take a lesson like this . There are lines of the form (comments - this is what I wrote):

VKUIHelper.onCreate(this); // Can not resolve method onCreate VKUIHelper.onResume(this); // Can not resolve method onResume VKUIHelper.onActivityResult(this, requestCode, resultCode, data); // Can not resolve method onActivityResult VKUIHelper.onDestroy(this); // Can not resolve method onDestroy 
  • four
    github.com/VKCOM/vk-android-sdk/issues/134 but in general to work with an example, use the old version. compile 'com.vk:androidsdk:1.3.9' - SorryForMyEnglish
  • @SorryForMyEnglish aah ... here is a pancake, and I was steaming so much. Thank you - g8214435

1 answer 1

The problem is caused by the default indication in build.gradle latest version of the library, in which there is no backward compatibility, and the example used in the question uses the code of the old version.

So, for the code to work correctly, you need to use the old version of the library:

 compile 'com.vk:androidsdk:1.3.9' 

According to the @SorryForMyEnglish comment