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>
即黑体字的部分也要修改.
本文详细介绍了如何在Android开发过程中修改包名及AndroidManifest.xml文件的相关步骤,包括通过IDE的快捷操作和XML文件手动修改的方法,确保应用程序在不同环境中正确运行。
8067

被折叠的 条评论
为什么被折叠?



