LoginSignup
0
0

More than 3 years have passed since last update.

GradleプロジェクトでSource not found

Last updated at Posted at 2019-10-04

事象

Jarファイルの中身が見えない

Jarファイルが見えないからソース添付したいけど「Edit Source Lookup Path...」ボタンがないのでできない。
エラーメッセージにできないっぽいことが記載されている。
image.png
The JAR of this class file belongs to container ‘Project and External Dependencies’ which does not allow modifications to source attachments on its entries
Google翻訳:
このクラスファイルのJARは、コンテナ「プロジェクトと外部の依存関係」に属します。このコンテナでは、エントリのソース添付ファイルを変更できません

原因

image.png
大元のプロパティ見てみる

image.png
gradleを通してみているのでソースファイルの添付はできないらしい

解決

できないので、プラグインのdecompilerつかう。
image.png

プラグインいれたら再起動して、「Class Decompiler Viewer」をDefaultにする。
image.png

classファイルを開くとみれるようになっている
image.png

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