從github上下載的項目, 經常要修改包名后用在自己的項目中.
千萬不要用它的refactor功能, 改完特別的亂.
正確的做法是, 切換到"Project" 視圖, 在app/src/main/java下新建自己想要的包名. 比如com.hola.weather, 然后把hanjie.app.pureweather下面的各個包全部選擇后一次性的 move到新建的包名下, 再把hanjie.app.pureweather包刪掉.
第二步, 是在項目中全局搜索關鍵字, replace "hanjie.app.pureweather" 改為"com.hola.weather"
這樣基本上就全部改完了.