Cannot resolve method zoomSDK.initialize(this, APP_KEY, APP_SECRET, WEB_DOMAIN, this);

zoomSDK.initialize(this, APP_KEY, APP_SECRET, WEB_DOMAIN, this); This entire line is in red as seen in screenshot attached. When I hover my mouse on, I see this message: " Cannot resolve method zoomSDK.initialize(this, APP_KEY, APP_SECRET, WEB_DOMAIN, this); "

Which version?
Version: 4.3.47200.0322

To Reproduce(If applicable)
Followed guide at this link:


Smartphone (please complete the following information):

Additional context
Add any other context about the problem here.

Hi Tobiak,
Thanks for the post and the info. Based on the error message in the screenshot, you are trying to cast the MeetingJoin class to be a ZoomSDKInitializeListener. Please note that the zoomSDK.initialize method requires the following parameters(You can refer to the doc for more info:

ZoomSDK sdk = ZoomSDK.getInstance();
sdk.initialize(context, APP_KEY, APP_SECRET, (ZoomSDKInitializeListener)this);

The this in your code indicates the context, thus you cannot pass it to the parameter that requires listener.

Hope this helps. Thanks!

Thank you for your response. I quite understand that the first Parameter in the method “sdk.initialize()” is not provided the right argument. But can you suggest what should be provided based on this information in my code?

I have just created a new class MainActivity.class instead of MeetingJoin.class :

package com.myapp.virtualmeeting;

import android.os.Bundle;
import us.zoom.sdk.JoinMeetingOptions;
import us.zoom.sdk.JoinMeetingParams;
import us.zoom.sdk.MeetingError;
import us.zoom.sdk.MeetingEvent;
import us.zoom.sdk.MeetingService;
import us.zoom.sdk.MeetingServiceListener;
import us.zoom.sdk.MeetingStatus;
import us.zoom.sdk.StartMeetingOptions;
import us.zoom.sdk.ZoomError;
import us.zoom.sdk.ZoomSDK;
import us.zoom.sdk.ZoomSDKAuthenticationListener;
import us.zoom.sdk.ZoomSDKInitializeListener;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;

import com.myapp.virtualmeeting.R;
import com.myapp.virtualmeeting.Constants;

import static com.myapp.virtualmeeting.Constants.APP_KEY;
import static com.myapp.virtualmeeting.Constants.APP_SECRET;
import static com.myapp.virtualmeeting.Constants.WEB_DOMAIN;
import android.content.Context;

public class MainActivity extends AppCompatActivity {

private EditText mEdtMeetingNo;

protected void onCreate(Bundle savedInstanceState) {
    ZoomSDK zoomSDK = ZoomSDK.getInstance();

    mEdtMeetingNo = (EditText)findViewById(;

    if(savedInstanceState == null)
        zoomSDK.initialize(this, APP_KEY, APP_SECRET, (ZoomSDKInitializeListener)this);
public void onClickBtnJoinMeeting(View view) {

    // Step 1: Get meeting number from input field.
    String meetingNo = mEdtMeetingNo.getText().toString().trim();
    // Check if the meeting number is empty.
    if(meetingNo.length() == 0) {
        Toast.makeText(this, "You need to enter a meeting number/ vanity id which you want to join.", Toast.LENGTH_LONG).show();

    // Step 2: Get Zoom SDK instance.
    ZoomSDK zoomSDK = ZoomSDK.getInstance();
    // Check if the zoom SDK is initialized
    if(!zoomSDK.isInitialized()) {
        Toast.makeText(this, "ZoomSDK has not been initialized successfully", Toast.LENGTH_LONG).show();

    // Step 3: Get meeting service from zoom SDK instance.
    MeetingService meetingService = zoomSDK.getMeetingService();

    // Step 4: Configure meeting options.
    JoinMeetingOptions opts = new JoinMeetingOptions();

    // Some available options
    //		opts.no_driving_mode = true;
    //		opts.no_invite = true;
    //		opts.no_meeting_end_message = true;
    //		opts.no_titlebar = true;
    //		opts.no_bottom_toolbar = true;
    //		opts.no_dial_in_via_phone = true;
    //		opts.no_dial_out_to_phone = true;
    //		opts.no_disconnect_audio = true;
    //		opts.no_share = true;
    //		opts.invite_options = InviteOptions.INVITE_VIA_EMAIL + InviteOptions.INVITE_VIA_SMS;
    //		opts.no_audio = true;
    //		opts.no_video = true;
    //		opts.meeting_views_options = MeetingViewsOptions.NO_BUTTON_SHARE;
    //		opts.no_meeting_error_message = true;
    //		opts.participant_id = "participant id";

    // Step 5: Setup join meeting parameters
    JoinMeetingParams params = new JoinMeetingParams();

    params.displayName = "Hello World From Zoom SDK";
    params.meetingNo = meetingNo;

    // Step 6: Call meeting service to join meeting
    meetingService.joinMeetingWithParams(this, params, opts);


What am I missing?

Thank you.

Hi Tobiak,

Thanks for the code. I just find out that your issue can be resolved by implements ZoomSDKInitializeListener in your class:

class MeetingJoin extends Activity implements ZoomSDKInitializeListener {

And you can still implement like the way you did in your screenshot:

if(savedInstanceState == null) {
 zoomSDK.initialize(this, APP_KEY, APP_SECRET, WEB_DOMAIN, this);

You can find the doc here:

Hope this helps. Thanks!

This works, did the above and added;

public void onZoomSDKInitializeResult(int errorCode, int internalErrorCode) {

In later part of my code.

Thank you.

Glad to hear that the problem was resolved. Let me know if you have any other questions. :slight_smile:

Happy Zooming!