AndroidStudio上で git pull したらCannot obtain the application IDエラーが出た
AndroidStudio上で Update Project(git pull)をしたところ、下記のエラーが突然出ました。 Run/Dubug Configurationsダイアログにエラーメッセージが出ていました。
Error: Run configuration app is not supported in the current project. Cannot obtain the application ID.
Update Projectを実行する前までは一切エラーは発生しておらず、エミュレーターでデバッグもできていました。
キャッシュクリアで解決?
よく分かりませんが下記の方法で解決しました。
- AndroidStudioで、File > Invalidate Caches と進み、Invalidate Cachesダイアログを表示させる
- Clear VCS Log caches and indexesにチェックが入っていることを確認する
- Invalidate and Restartを押す
- AndroidStudioが自動で再起動する
- エラーが消えていることを確認する