Renaming Android package name using Android Studio

后端 未结 4 940
孤街浪徒
孤街浪徒 2020-12-17 21:30

I Was Created an android application with package name of com.example.******.sample . I need to refactor the package name into org.newOrg.*******.sa

4条回答
  •  长情又很酷
    2020-12-17 22:29

    click on Settings in the project window uncheck the Compact Empty Middle Packages

    It will separate the app package and you can rename it one after another.Also change the App Id inside build.gradle under defaultConfig section

    defaultConfig {
            applicationId "com.foocomp.android"
    
        }
    

提交回复
热议问题