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

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -