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

import androidx.appcompat.app.AppCompatActivity でエラー。

Posted at

自分の為の覚書きとして残しておきます。

Android Studioにて 既存のプロジェクトを androidX に移行しようとrefactorしたけれど、

import androidx.appcompat.app.AppCompatActivity がうまく読み込めていないのか、

class MainActivity : AppCompatActivity() { のAppCompatActivityが赤字になる。(幼稚な表現で申し訳ない)

おかしいなぁ、と思ってググってみたところ、

Build → Clean Project でエラー解消しました。

今までもいろんなトラブルシーンでこの「Build → Clean Project」で救われたことがあったような気がする。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?