I have solved this problem by disabling the instant run option of android studio.
To disable Instant Run Goto
File -> Settings
-> Build,Execution, Deployment -> Instant Run -> Uncheck the checkbox for instant run
More Related Contents:
- java.lang.ClassNotFoundException after changing nothing in the project but upgrading eclipse android sdk [duplicate]
- java.lang.ClassNotFoundException on working app
- android.content.ActivityNotFoundException: Unable to find explicit activity class
- Android E/Parcelīš Class not found when unmarshalling (only on Samsung Tab3)
- NoClassDefFoundError for OkHttpClient
- can anyone please tell me how to create a custom datePicker view in android. I have searched the whole google but could not find it. [closed]
- What does this Android code do?
- Android login showing error
- How to emulate GPS location in the Android Emulator?
- Android: ListView elements with multiple clickable buttons
- Android M – check runtime permission – how to determine if the user checked “Never ask again”?
- Percentage width in a RelativeLayout
- Activity, AppCompatActivity, FragmentActivity, and ActionBarActivity: When to Use Which?
- Android: How to open a specific folder via Intent and show its content in a file browser?
- Running the new Intel emulator for Android
- Android: How to draw route directions google maps API V2 from current location to destination
- LED flashlight on Galaxy Nexus controllable by what API?
- Changing ImageView source
- Android device GPS on/off programmatically
- How to change Toolbar home icon color
- android: listview in listview
- How to Block outgoing calls and Text SMS
- Android: getSupportActionBar() always returns null in ActionBarSherlock library
- How to move main content with Drawer Layout left side
- How to change the generated filename for App Bundles with Gradle?
- How to implement Rate It feature in Android App
- How to fix ‘Unable to determine application id: com.android.tools.idea.run.ApkProvisionException: No outputs for the main artifact of variant:’
- Firebase console: How to specify click_action for notifications
- Android: How can I pass parameters to AsyncTask’s onPreExecute()?
- Example of how to download JSON from server?