Another solution that worked for me with Android Studio 3.1.2:
delete these from build.gradle
if you have them:
'com.android.support:appcompat-v7:27.1.1'
'com.android.support:design:27.1.1'
then sync,
then undo delete,
then sync again.
More Related Contents:
- Cannot resolve symbol ‘AppCompatActivity’
- gradle, Could not expand ZIP appcompat-v7:19.0.1
- Gradle: Execution failed for task ‘:processDebugManifest’
- Using Build Flavors – Structuring source folders and build.gradle correctly
- No matching client found for package name (Google Analytics) – multiple productFlavors & buildTypes
- Android Studio: Gradle – build fails — Execution failed for task ‘:dexDebug’
- Android Studio Gradle Configuration with name ‘default’ not found
- gradle – library duplicates in dependencies
- Version conflict updating to play-services 9.4.0 Android studio 2.2
- A failure occurred while executing com.android.build.gradle.internal.tasks
- Adding local .aar files to my gradle build
- Sign APK without putting keystore info in build.gradle
- how can I add the aidl file to Android studio (from the in-app billing example)
- Gradle Sync failed could not find constraint-layout:1.0.0-alpha2
- Unable to import Eclipse project to Android Studio
- Could not find com.android.tools.build:gradle:4.0.1 ( or any version )
- Android Studio Run/Debug configuration error: Module not specified
- add ‘tools:replace=”Android:value”‘ to element at AndroidManifest
- Add GitHub library as dependency to Android Studio project
- Stuck with Gradle Build Running
- How to apply plugin to only one flavor in gradle?
- Android XML: RuntimeException: Failed to resolve attribute at index 6
- Android Studio: Android Manifest doesn’t exists or has incorrect root tag
- How to downgrade to older version of Gradle
- Add ViewPagerIndicator to Android Studio
- How to replace a string for a buildvariant with gradle in android studio?
- Gradle failed to sync with ‘unable to find optional library’
- No Cached Version Gradle Plugin Available for offline mode
- Build variants in Gradle for a Library Project in Android
- Importing gradle project to eclipse