Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
プロジェクト内の特定のファイルを別のフォルダーに移動しようとしています。これらのファイルは、他のファイルに依存します。これを実行しようとすると、「インポート XXX を解決できません」というエラーが表示されます。スクリーンショットは次のとおりです。
ご覧のとおり、すべてのテスト ファイルを default-package から tests フォルダーに移動しましたが、現在は元のファイルにアクセスできません。これを修正するにはどうすればよいですか?
他のクラスもパッケージに移動する必要があります。その後、これらのクラスをインポートできます
import [パッケージ名].ClassA; import [パッケージ名].ClassB; 等