Help us understand the problem. What is going on with this article?

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

More than 3 years have passed since last update.

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

* 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を追加して終了

jiji4000
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした