崩溃后无法在Android中启动活动ComponentInfo

时间:2015-09-16 17:59:46

标签: android runtime-error

我不知道这个错误来自哪里。它出现在我启动应用程序并崩溃时!

错误消息和堆栈跟踪:

static void Main(string[] args)
{
    var container = new ConcurrentQueue<Item>();
    Thread writer = new Thread(() =>
    {
        for (int i = 0; i < 1000; i++)
        {
            container.Enqueue(new Item("Item " + i));
        }
    });

    writer.Start();

    Thread[] readerThreads = new Thread[10];
    for (int i = 0; i < readerThreads.Length; i++)
    {
        readerThreads[i] = new Thread(() =>
        {
            foreach (Item item in container)
            {
                Console.WriteLine(item.Name);
            }
        });
        readerThreads[i].Start();
    }

    writer.Join();

    for (int i = 0; i < readerThreads.Length; i++)
    {
        readerThreads[i].Join();
    }

    Console.ReadLine();
}

感谢您的帮助!

1 个答案:

答案 0 :(得分:1)

阅读第三行

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.tobias.uebung1/com.example.tobias.uebung1.main}: android.content.res.Resources$NotFoundException: String resource ID #0xfffffffd

android.content.res.Resources $ NotFoundException:表示你在AndroidManifest.xml文件中添加你的活动..

或检查Java文件或XML文件名...