android - Deleted app data, application in emulator not starting -


i building first android app , implemented connection sqlite database. understood database stored locally. during testing had added trash values database app testing. after got past bug, accessing trash values cause app crash. since there no way me delete values database in app, deleted app data settings. when tried running app on again, following error:

java.lang.runtimeexception: unable instantiate activity componentinfo{com.example.myname.appname/com.example.myname.appname.mainactivity}: java.lang.classnotfoundexception: didn't find class "com.example.myname.appname.mainactivity" on path: dexpathlist[[zip file "/data/app/com.example.myname.appname-2/base.apk"],nativelibrarydirectories=[/data/app/com.example.myname.appname-2/lib/x86_64, /vendor/lib64, /system/lib64]]                                                                                           @ android.app.activitythread.performlaunchactivity(activitythread.java:2327)                                                                                           @ android.app.activitythread.handlelaunchactivity(activitythread.java:2476)                                                                                           @ android.app.activitythread.-wrap11(activitythread.java) 

i can't run app in android studio @ all. should do?

you'r not showing piece of code , that's no me debug .but anyways please try following steps :

  • go build in android studio

  • click clean project

  • and go build again , click rebuild project

this reset things correctly

otherwise having package mismatch error

another cause of problem

android-support-v(x)  

in gradel should changed :where x version number


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -