我的应用是一个多项选择测验,它在模拟器和设备上运行,但经常崩溃。代码看起来没有问题,因为构建是干净的。我应该采取什么措施?
这是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)}")
答案 0 :(得分:0)
也发布您的Questions.java类。
还要检查以下内容。
mQuestions.mQuestions.length;