search

Home  >  Q&A  >  body text

android - Error type 3 Error: Activity class {} does not exist.电脑无法推送软件到手机

刚刚开始还能推送软件到手机测试,然后突然就这样了,电脑重启了,adb杀了又开,mainactivity前面加点了...都无法解决。问题应该出在手机上,因为豌豆荚也无法推送软件到手机....所以,怎么搞电脑,换idea和Android studio都不是解决问题的办法。

几天被这个东西搞疯了都,之前不行就重刷手机系统,不知怎么得,好像发病一样...有大神能推断一下问题根源吗?有过同样经历的人分享一下解决问题的方法吗?

不过恢复出厂设置也解决不了,说明还是系统问题。但是重刷一下系统包就没问题。

Error type 3
Error: Activity class {com.example.myapplication/com.example.myapplication.MainActivity} does not exist.
PHP中文网PHP中文网2772 days ago1091

reply all(2)I'll reply

  • PHPz

    PHPz2017-04-17 15:35:36

    I don’t know what phone you have and what system you are using. I see you have already asked similar questions. I want to determine a problem. Does the problem only occur when the program is running in IDE RUN? Or does the same problem occur when the program is installed through the system installation method (for example, putting the apk file on the sdcard and then searching for it and clicking to install it)?
    1. Whether other applications can start and run normally. If this does not work, there is no need to look at the following;
    2. If this problem only occurs in the run mode, there should be a problem with your SDK ADB tool. Try again. Installing a new SDK would be a solution worth trying;
    3. This problem occurs when you click on the run or apk file to install. It is a system problem, so I think changing a mobile phone is a better solution. It's more meaningful than flashing the system and studying why the system on this phone cannot be started.

    Since you said that refreshing the system package will solve the problem, then don’t worry about it anymore. If you are doing application layer development, it is not worthwhile to refresh the system package just to debug an application layer program. Putting aside these issues, if you want to delve deeper, you can try the following methods:
    1. Make sure there is no problem with your program apk (find another mobile phone to install and verify);
    2. Install it if there is no problem with the apk. On your original machine, go to the adb shell and enter the /data/app directory to see if there is an apk with your package name
    The above two are sure to be fine, then it can be roughly determined that there is a problem with the framework layer PackageManager, and it is not you or me. The problem can be solved.

    reply
    0
  • 阿神

    阿神2017-04-17 15:35:36

    Let’s flash the MIUI system. I have been using it for several years and it is very smooth. There is no need for additional "XX Master" or "XX Assistant"

    reply
    0
  • Cancelreply