完全改变包括公司域名的包名 [英] Fully change package name including company domain

查看:97
本文介绍了完全改变包括公司域名的包名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我们假设这个包的名字: 包com.company.name 。如何更改公司

Let's suppose this is the package name: package com.company.name. How do I change company?

P.S。我看到如何改变名称而不是公司。 我使用Android的工作室。

P.S. I saw how to change name but not company. I am using Android Studio.

感谢你在前进。

推荐答案

你可以这样做:

手动清单文件将包名称更改。 点击你的R.java类和preSS F6(Refactor->移动...)。它可以让你移动类到其它的包,并以该类的所有引用将被更新。

Change the package name manually in the manifest file. Click on your R.java class and the press F6 (Refactor->Move...). It will allow you to move the class to other package, and all references to that class will be updated.

参考:重命名完整的Andr​​oid包名

这篇关于完全改变包括公司域名的包名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆