我在android studio中的应用在模拟器和实际设备中都经常崩溃

时间:2019-05-25 06:50:53

标签: android

我的应用是一个多项选择测验,它在模拟器和设备上运行,但经常崩溃。代码看起来没有问题,因为构建是干净的。我应该采取什么措施?

这是logcat错误引用的一个类...

acceptable = False
while not acceptable:
    entry = input("Enter an int: ")
    if testForInt(entry):
        entry = int(entry)
        acceptable = True
    else:
        print("Invalid Entry")

这是日志猫。...

acceptable = False
while not acceptable:
    entry = input("Enter an int: ")
    try:
        entry = int(entry)
        acceptable = True
    except ValueError as e:
        print(f"Failed due to {str(e)}")

1 个答案:

答案 0 :(得分:0)

也发布您的Questions.java类。

还要检查以下内容。

mQuestions.mQuestions.length;