ActivityManager: Warning: Activity not started, its current task has been brought to the front

简介:

在部署一个HelloAndroid应用后,由于发现要学习的代码需要用2.0以上的sdk。因而又重新建了一个工程。

再重新把新的工程部署上模拟器时候,出现了:

ActivityManager: Warning: Activity not started, its current task has been brought to the front

而新的应用总是之前的那个应用。

原因是:两个应用起了同样的名字,模拟器总是识别第一个

解决方法是:重新启动一边模拟器;如果还是不行,可以先把模拟器delete掉再重新add就可以了

 

另外:

若是有版本信息警告:

 WARNING: Application does not specify an API level requirement!
 Device API version is 7 (Android 2.1)

在androidMainfest.xml 里的<manifest></manifest>之间的标记符添加 <uses-sdk android:minSdkVersion="7" />这行xml代码就行。其中7表示version2.1的版本

以上内容来自http://blog.163.com/archibald_zsw/blog/static/1723662332010924112538982/



但是实际上我发现:这并不能解决我的问题。我发现用原来的main的布局文件的时候,这个程序就能正常启动。所以问题锁定在布局文件上面。代码的问题,点到Graphical LayOut的时候,发现他提示我有一Layout_Width没有设置,于是我设置了,重新运行一遍,问题解决



本文转自陈哈哈博客园博客,原文链接http://www.cnblogs.com/kissazi2/archive/2012/01/21/2977157.html如需转载请自行联系原作者

kissazi2
目录
打赏
0
0
0
0
23
分享
相关文章
androidstudio无法启动,Failed to create a child event loop
androidstudio无法启动,Failed to create a child event loop
156 0
|
11月前
【Bug】ERROR ResizeObserver loop completed with undelivered notifications.
【Bug】ERROR ResizeObserver loop completed with undelivered notifications.
【报错】onMounted is called when there is no active component instance too be associated with.
【报错】onMounted is called when there is no active component instance too be associated with.
699 4
Redisson BUG: Failed to submit a listener notification task. Event loop shut down?
Redisson BUG: Failed to submit a listener notification task. Event loop shut down?
1668 0
【解决方案】A session ended very soon after starting. Check that the command in profile “XXX” is correct.
【解决方案】A session ended very soon after starting. Check that the command in profile “XXX” is correct.
1330 0
【解决方案】A session ended very soon after starting. Check that the command in profile “XXX” is correct.
Veloce 之 Getting Started
Veloce 之所以能够加速仿真,原因是Veloce把DUT(Design Under Test) 和 TB(TestBench) 一起综合成实际的电路,然后下载到Veloce硬件中,在硬件上跑,所以是比软件仿真快得多。 那么怎样才能把Veloce用起来,让它来加速我们的仿真呢?
Veloce 之 Getting Started