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?
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.
Try syncing the project, click Tools -> Android -> Sync Project with Gradle Files. It fix my problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With