문제

Basically I have lots of files in some packages, I want to add some other text in package name, But in the same time i want all the files should also change their package names and import statement automatically for both JAVA and AIDL files, as files number are too many and it is going to take lots of time if i do it manually. Please let me know if there is any way doing this.

Thanks!

도움이 되었습니까?

해결책

This should work:

Right click on the package name -> Refactor -> Rename or (shift + alt + r) or (F2) after selecting package.

Decide which one you want to rename and it should, hopefully, update for the entire project.

Make sure to do a backup first :)

Edit:

It can easily be done with java files, but do not know if AIDL files package name can be changed automatically, I did that manually. Ankit

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top