First clean your project by
Build -> Clean project
Then rebuild project
Build -> Rebuild project
Then run your project.
I hope this will work.
if not then go to
File -> Invalidate Caches / Restart -> Invalidate and restart
The last option is you can sync Gradle again in case nothing worked
More Related Contents:
- Unable to merge dex
- Android Room – simple select query – Cannot access database on the main thread
- Android emulator not able to access the internet
- java.lang.NoSuchMethodError: No static method getFont(Landroid/content/Context;ILandroid/util/TypedValue;ILandroid/widget/TextView;)
- AndroidStudio Cannot Find Layout
- Android Studio 3.0 Execution failed for task: unable to merge dex
- Unable to Merge Dex – Android Studio 3.0
- Could not find com.android.tools.lint:lint-gradle Android Studio 3
- java.lang.IllegalArgumentException: Invalid Region.Op – only INTERSECT and DIFFERENCE in Button background failure
- How to use Data Binding and Kotlin in Android Studio 3.0.0
- commons-logging defines classes that conflict with classes now provided by Android after Android Studio Update
- Could not resolve com.android.support:appcompat-v7:26.1.0 in Android Studio new project
- Unable to resolve dependency for ‘:app@debug/compileClasspath’: Could not resolve
- start an activity after button click
- How to decompile an apk and save project? [closed]
- Vertical (rotated) label in Android
- How can i turn off 3G/Data programmatically on Android?
- java.util.zip.ZipException: duplicate entry
- How to perform an SQLite query within an Android application?
- DatePicker shows wrong value of month
- Invalid command line parameter when Android executes
- How to check if Receiver is registered in Android?
- How to obtain all details of a contact in Android
- Mysterious stacktrace in Android developer console (bitmap size exceeds 32bits)
- How to pause android.speech.tts.TextToSpeech?
- android widget on click event
- How can I change the ringtone in android programmatically?
- emulator: emulator window was out of view and was recentered
- How is it possible to know what’s spotify is playing from an external Android app?
- Android WebView UTF-8 not showing