简体   繁体   English

Android Studio 2.3 rc1应用程序崩溃并清空日志

[英]Android Studio 2.3 rc1 App Crashes and Empty Log

I've installed Android Studio 2.3 rc1 and my app doesn't run. 我已经安装了Android Studio 2.3 rc1,但我的应用无法运行。 Only the Splash screen activity that I've setted up is shown, and then the app crashes. 仅显示我设置的启动屏幕活动,然后该应用程序崩溃。 The big problem is that the log is empty , shows only "Connected to process..." and "Application terminated". 最大的问题是日志为空 ,仅显示“已连接到进程...”和“应用程序已终止”。

How can I solve this? 我该如何解决? Is it normal for non-stable version of Android Studio (I'm a noob) or it's a problem of my app? 非稳定版本的Android Studio是否正常(我是菜鸟)还是我的应用程序有问题?

Edit 1: I've tried to create a new simple project but the result is the same. 编辑1:我试图创建一个新的简单项目,但结果是相同的。 So maybe the problem is the IDE. 所以也许问题出在IDE。

Edit 2 (partially solved): During operation on Edit 1, I've tried a code sample from My App, not an entirely new project, the problem was exactly in that code XD. 编辑2(部分解决):在执行编辑1的过程中,我尝试了“我的应用”中的代码示例,而不是全新的项目,问题出在该代码XD中。 Now I've tried other projects and they work. 现在,我尝试了其他项目,并且它们起作用了。

Edit 3 (solved): I'm really sorry, I think you can delete this thread. 编辑3(已解决):非常抱歉,我认为您可以删除此线程。 The logcat was not empty. 日志文件不为空。 I had exchanged the position of the logcat screen with the run one, and by force of habit, always clicked on it without reading the label that had changed. 我已将logcat屏幕的位置与运行之一交换了位置,并且由于习惯的原因,总是单击它而不读取已更改的标签。 Forgive the fool. 原谅傻子。

Android studio allow you to run Stable, Beta and Canary builds at the same time. Android Studio允许您同时运行Stable,Beta和Canary版本。 Try running your app on stable version to find out if this has something to do with the IDE or your app. 尝试在稳定版本上运行您的应用,以了解这是否与IDE或您的应用有关。 When you are running Beta/Canary builds it is always a good idea to keep a stable version in your computer as these releases are not always 100% stable. 当您运行Beta / Canary版本时,最好在计算机中保留稳定的版本,因为这些发行版不一定总是100%稳定的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM