改android程序的包名

来源:互联网 发布:侠客风云传读条优化 编辑:程序博客网 时间:2024/05/21 09:37

1. 在包名上点右键-->refactor-->rename,更改成你需要的包名. (注,通过refactor也可以修改你的android程序文件中的文件名.)

2.在 AndroidManifest.xml 文件中同样修改.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="test.yunos"
      android:versionCode="1"
      android:versionName="1.0">
    <uses-sdk android:minSdkVersion="8" />

    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name="test.yunos.Logo"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

    </application>
</manifest>

即黑体字的部分也要修改.

 

原创粉丝点击