2
0

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 3 years have passed since last update.

Androidアプリのデバッグ中に "Source code does not match the bytecode"というエラーが出る

Posted at

エラー内容

Android Studioでアプリをデバッグ中に、以下の画像に示す
Source code does not match the bytecode
というエラーが出て正常にデバッグができない際の対処法です。

ZLHg5.png

原因

Gradleで参照しているコードが最新版でない。

解決方法

その1

以下のコマンドを実行して、Gradleの依存関係をリフレッシュする。

./gradlew build --refresh-dependencies

参考

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?