error: cannot find symbol

【不具合内容】

ビルド実行時。

日本語を出力するビルド環境では「エラー: シンボルを見つけられません」と表示される。

【原因】

・ 必要なパッケージがインポートされていない。

Intent intent = new Intent();
^

symbol:   class Intent

・宣言なしで変数を使用している。

mList= new ArrayList<String>();
^

シンボル:   変数 mList

【解決方法】

・必要なパッケージをインポートする。

import android.content.Intent;

・必要な変数を宣言する。

private ArrayList<String> mList;

コメントを残す

* 印は必須項目です。メールアドレスは公開されません。

次のHTMLタグと属性を使用することができます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください