After upgrading to Android Studio 2.3, it appears that I cannot use the code for Cloud Endpoints
class EndpointsAsyncTask extends AsyncTask<Pair<Context, String>, Void, String> { private static MyApi myApiService = null; private Context context; @Override protected String doInBackground(Pair<Context, String>... params) { if(myApiService == null) {
The problem occurs when importing AndroidHttp and AndroidJsonFactory. It worked with click-alt-enter import, not now. I can copy the import manually
import com.google.api.client.extensions.android.http.AndroidHttp; import com.google.api.client.extensions.android.json.AndroidJsonFactory; import com.google.api.client.googleapis.services.AbstractGoogleClientRequest; import com.google.api.client.googleapis.services.GoogleClientRequestInitializer;
but it highlights the "client", cannot allow the work with the character client. The gradle file has a dependency compilation project (path: ': backend', configuration: “Android endpoints”), and I'm in sync.
Instead of trying to roll back the versions, is there another import that we need to use now or configure differently? Is Google Cloud Page Code Obsolete?
tagliatelli
source share