Starting : Intent{...} Error type 3...Error: Activity class {xxx/xxx.activity} does not exist

I remember during the development process, suddenly the mobile phone running program could only be installed but could not be automatically opened and entered...

 

Baidu's various methods don't work...

-->1.About package:

      Check that package :xxx in Manifest is consistent with android{ defaultConfig{ applicationId : xxxx } } in build.gradle; or comment out the applicationId in defaultConfig;

-->2. Cancel in androidStudio

-->3. Use the command adb uninstall xxxx (package name) to uninstall;

 None of them worked.....

The test device is meizu 16Plus;

Solution:

[Settings]-->[Application Management]-->[All Apps]-->[Find Application]-->[Permission Management]-->[Background Management]-->[Smart Background] changed to [Allow Background] run】

Run again and it can start normally.. 

Guess you like

Origin blog.csdn.net/f305176014/article/details/98973319