0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

java.lang.IllegalArgumentException: button doesn't exist 0

Posted at

機能まで問題なく動いていたアプリ。
今日突如ビルドに失敗。
そしてこのエラー。

java.lang.IllegalArgumentException: button doesn't exist 0
ボタンは存在しないっつったって、ボタンなんかいじってない。
でも間違って消したんじゃないかとレイアウト等眺めてみる。
やっぱりいじってない。

仕方なくOnCreate以降1行ずつ追いかけていったところ、
Int[] termId = {要素4つ}
の配列で
getString(termId[4])
となっていた、このあたりでエラー。
この4は、計算によって日々変わる仕様だから、昨日は3だったのが今日になっていた。
というオチ。

だがしかし、ボタン関係ないじゃないの。
腑に落ちないなー。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?