i try to debug my android app via usb,
and first time i run it works perfectly,
but i close android studio and restart again,it reports
(i checked usb debug option is open)
12/12 23:48:42: Launching 'app' on HUAWEI VTR-AL00.
$ adb shell am start -n "com.example.onhw/com.example.onhw.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Error while executing: am start -n "com.example.onhw/com.example.onhw.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.onhw/.MainActivity }
Error type 3
Error: Activity class {com.example.onhw/com.example.onhw.MainActivity} does not exist.
Error while Launching activity
but it still works on virtual device
can anyone give some advices?
my phone is HUAWEI P10