IDEA導入Eclipse中的安卓項目問題

將Eclipse中的安卓項目導入IDEA中後,進行依賴包的修改時提示「Module Project1 must not contain source root "...\Project1\src". The root already belongs to module "Project2".

解決方法:

選擇「File->Project Structure"點擊」Modules",然後選擇安卓項目,將顯示如下:

 在紅色區域包含」gen[generated]"和「gen",將」gen"刪除即可。