Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

After updating to Android Studio 2.3 cannot resolve symbol GoogleAccountCredential

After updating from Android Studio 2.2 to 2.3 the editor shows an error claiming that these classes cannot be resolved:

import com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential;
import com.google.api.client.googleapis.extensions.android.gms.auth.GooglePlayServicesAvailabilityIOException;
import com.google.api.client.googleapis.extensions.android.gms.auth.UserRecoverableAuthIOException;

Building still works which is strange. I'm using the Gradle default wrapper and project's build.gradle references:

classpath 'com.android.tools.build:gradle:2.3.0'

Any thoughts?

like image 950
Jürgen Jatzkowski Avatar asked Mar 05 '17 23:03

Jürgen Jatzkowski


1 Answers

I meet the same question these classes cannot be resolved after the Android studio updates from 2.2 to 2.3.

import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity;

The Gradle plugin and Gradle version setting. enter image description here

Try syncing the project, click Tools -> Android -> Sync Project with Gradle Files. It fix my problem. enter image description here

like image 119
Fantasy Fang Avatar answered Nov 11 '22 08:11

Fantasy Fang