1
1

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.

Xlint:unchecked オプションを指定して再コンパイルしてください。 対策

1
Posted at

はい。なぜかこういったものがお仕事に絡んできたので。
androidstudio上でアプリ動作確認が出来る(らしい)https://code.google.com/p/android-test-kit/のスタート手順を流し読みしながらで、
TestRunnerのsrcと同じ階層にlibsディレクトリを作って、standaloneのsnapshotのjarファイルをコピペしてAdd as a library...して、とりあえずでビルドしたら

java: 詳細については、-Xlint:unchecked オプションを指定して再コンパイルしてください。

と怒られた。最初はandroidstudio上でセッティングの項目とか探してオプション付け外しかと思って探したんですが項目見つからず。
今回のケースで出来た解決策としてはcompiler.xmlの
<option name="ADDITIONAL_OPTIONS_STRING" value="-Xlint:none" />

noneをuncheckedに変えればエラーには一まずは対処終わりました。

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?