尝试启动任何应用程序时崩溃 [英] Crash while trying to launch any application

查看:42
本文介绍了尝试启动任何应用程序时崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android Studio 不启动任何应用程序(即使是来自 Studio 模板的新应用程序)并且失败并显示相同的错误:

Android studio doesn't launch any application (even new from the studio templates) and fails with the same error:

09/29 13:54:36: Launching app
$ adb push /Users/user/AndroidStudioProjects/MyApplication/app/build/outputs/apk/app-debug.apk /data/local/tmp/com.example.user.myapplication
$ adb shell pm install -r "/data/local/tmp/com.example.user.myapplication"
Aborted 


$ adb shell am start -n "com.example.user.myapplication/com.example.user.myapplication.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Error while executing: am start -n "com.example.user.myapplication/com.example.user.myapplication.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.user.myapplication/.MainActivity }
Error type 3
Error: Activity class {com.example.user.myapplication/com.example.user.myapplication.MainActivity} does not exist.

Error while Launching activity

我尝试清理/重建,甚至重新安装工作室,但没有帮助.我不明白发生了什么,请帮忙

I tried clean/rebuild, even reinstall studio, but it didn't help. I can't understand what's happening, please help

推荐答案

这正在发生....

Error: Activity class     {com.example.user.myapplication/com.example.user.myapplication.MainActivity} does not exist.

您的 MainActivity 类不存在或已修复为您的启动器活动.检查您的清单文件.在您的清单文件中,您已将 MainActivity 声明为您的启动器干杯

Your MainActivity class does not exist or something which has been fixed as your launcher activity. Check your manifest file. In your manifest file you have delcared MainActivity as your launcher Cheers

这篇关于尝试启动任何应用程序时崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆