I had similar problem and solved it by opening project using Import project (Gradle, Eclipse, etc.)
instead of Open existing Android Studio project
.
More Related Contents:
- Android studio, gradle and NDK
- After update android studio could not create parent directory for lock file
- Building and running app via Gradle and Android Studio is slower than via Eclipse
- Android Studio gradle takes too long to build
- What does “Program type already present” mean?
- 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
- Android Studio – Importing external Library/Jar
- Version conflict updating to play-services 9.4.0 Android studio 2.2
- Error:Failed to open zip file. Gradle’s dependency cache may be corrupt
- findFragmentById for SupportMapFragment returns null in Android Studio
- Sign APK without putting keystore info in build.gradle
- How to create an Android Library Jar with gradle without publicly revealing source code?
- Gradle and Multi-Project structure
- Unable to instantiate application com.android.tools.fd.runtime.BootstrapApplication ?Android
- Resources$NotFoundException: File res/drawable/abc_ic_ab_back_material.xml
- Android Studio: “Execution failed for task ‘:app:mergeDebugResources’” if project is created on drive C:
- Error “Gradle sync failed: Connection refused: connect”
- 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
- Native libraries not found in ApplicationInfo.nativeLibraryDir when building app bundle for arm64 Android phone
- Gradle failed to sync with ‘unable to find optional library’
- No Cached Version Gradle Plugin Available for offline mode
- Android build gradle is too slow (Dependency Resolution)
- Gradle error: could not execute build using gradle distribution