I created a minimal test application with authorization and a comment sending button - everything works.
I also want to note that for the addComment method, the sort and count parameters are not required.
public class MainActivity extends AppCompatActivity { private static final String TAG = "VKApiDemo"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); VKSdk.login(this, VKScope.WALL); Button button = (Button) findViewById(R.id.button); button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { String s = "qwerty"; VKParameters p = new VKParameters(); p.put(VKApiConst.OWNER_ID, -42536065); p.put(VKApiConst.POST_ID, 2454); p.put("text", "some text from app"); // p.put(VKApiConst.SORT, "desc"); // p.put(VKApiConst.COUNT, 20); VKRequest r = VKApi.wall().addComment(p); r.executeWithListener(new VKRequest.VKRequestListener() { @Override public void onComplete(VKResponse response) { super.onComplete(response); Log.e(TAG, "onComplete: response is" + response.json.toString()); } @Override public void onError(VKError error) { super.onError(error); Log.e(TAG, "onError: " + error.toString()); } }); } }); } }
Used version of the library vk sdk android: com.vk:androidsdk:1.6.7