roger_that
roger_that

Reputation: 9791

Cannot find zendesk library for integration

Am trying to integrate Zendesk to my android app but not able to find the library to add the import statements in my activity class.

The gradle entry looks like:

repositories {
   maven { url 'https://zendesk.jfrog.io/zendesk/repo' }
}
...
dependencies {
   implementation group: 'com.zendesk', name: 'support', version: '2.0.0'
}

And the activity class:

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.expedia.bookings.R;
import com.zendesk.*;   //cannot find com.zendesk

public class AppSupportActivity extends AppCompatActivity {

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_app_support);

    Zendesk.INSTANCE.init(context, "My ORG URL",  //Cannot find Zendesk
            "APP_KEY",
            "CLIENT_ID");
    Support.INSTANCE.init(Zendesk.INSTANCE);  //error here: cannot find Support

}

}

How can I use zendesk? AM new to android and gradle both. Tried building the app and showed the error. Help.

Upvotes: 0

Views: 1200

Answers (1)

Joaquín
Joaquín

Reputation: 1136

add these to your appgradle file, here you have a github example of the two files you need to set up in order to use zendesk library Build Gradle wher you put the info below

implementation 'com.zendesk:support:2.0.0'
implementation 'com.zopim.android:sdk:1.3.7.1'

This is where you put zendesk url

Upvotes: 1

Related Questions