본문 바로가기
Development Solutions/Android

[Solution][Android] 'com.example'은(는) 제한되어 있으므로 다른 패키지 이름을 사용해야 합니다. [1분 해결 방법]

by Dev Diary Hub 2023. 10. 16.
반응형

[Solution] [Android]

'com.example'은(는) 제한되어 있으므로 다른 패키지 이름을 사용해야 합니다.

('com.example' is restricted, so a different package name must be used.)

구글 플레이 콘솔에 앱을 새로 배포하거나 버전 업데이트를 할 때

"'com.example'은(는) 제한되어 있으므로 다른 패키지 이름을 사용해야 합니다." 라고 에러 메시지가 나올 때가 있다.

 

이 때는

프로젝트 코드를 약간만 수정하면 된다.

아래와 같이 com.example을 프로젝트에서 전체 검색하고 본인 개발자 스튜디오 이름으로 변경하면 된다.

 

(When distributing a new app or updating the version on the Google Play Console "'com.example' is restricted, you must use a different package name." Sometimes an error message appears. At this time, You only need to slightly modify the project code. You can search for com.example in the entire project as shown below and change it to your developer studio name.)

 

특히, 아래와 같이 build.gradle의 defaultConfig는 필수적으로 수정해야한다!

(In particular, defaultConfig in build.gradle must be modified as shown below!)

반응형

필자의 경우,

com.example -> com.studioodoc로 수정하여 배포 완료하였음!

(In my case, com.example -> com.studioodoc has been modified and distributed!)

반응형