36
21

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.

Android Studio buildエラー時にログ(stack trace)を吐く

Last updated at Posted at 2016-10-20

以下のビルドエラーが出る

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

スタックトレースを表示したい

上部メニュー画面から

AndroidStudio → searchboxからcompilerで検索
Command-line-optionsにオプション名を記入(--info)など

スクリーンショット 2016-10-20 11.26.52.png

するとconsoleにerror traceが表示されます。

自分の場合は

注意:Version 2.0.2 of Realm is now available: http://static.realm.io/downloads/java/latest
注意:Processing class UserObject
エラー: No getter found for field name
エラー: No getter found for field id
注意:Creating DefaultRealmModule
警告: 最後に作成されたタイプ'io.realm.DefaultRealmModule'のファイルは注釈処理に渡されません。
警告: 最後に作成されたタイプ'io.realm.DefaultRealmModuleMediator'のファイルは注釈処理に渡されません。
エラー2個
警告2個

UserObjectクラスにGetterを追加して終了

36
21
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
36
21

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?