LoginSignup
88
41

More than 3 years have passed since last update.

Android StudioにおけるBuild Outputの文字化けを解消

Last updated at Posted at 2020-03-19

状況

Windows10上のAndroid Studio 3.6.1でアプリを開発している。文字列やコメントに日本語を含むコードも問題なくビルド・実行できる。
しかしBuild Output Windowのエラーメッセージが文字化けして読めない。

fig1.jpg

解決方法

「メニュー>Help>Edit Custom VM Options..」を選択する。

fig2.jpg

表示されたファイルに「-Dfile.encoding=UTF-8」を追加する。
fig3.jpg

Android Studioを再起動する。
これで、文字化けが解消した。

fig4.jpg

88
41
4

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
88
41