1. 程式人生 > >the declared package does not match 解決辦法

the declared package does not match 解決辦法

the declared package does not match 很可能是包名不合規則所造成的,比如包名字上面有特殊符號。最簡單的解決辦法就是更改包名稱。

在專案上面單擊右鍵 選擇Refactor ------>Rename 之後就可以對包進行重新命名