1)在文本编辑器(如Notepad.exe的)从失败的项目打开AndroidManifest.xml中。进口。
2)寻找android:名字 并改变它。
例如,我改变 机器人:名称= “com.example.android.location.MainActivity” 到 机器人:名称= “com.example.android.location.XMainActivity”
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="JDLocation Updates"
android:description="@string/app_description"
android:theme="@style/AppTheme" >
<activity
android:name="com.example.android.location.XMainActivity"
android:label="JDLocation Updates">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service
android:name="com.example.android.location.ReceiveUpdatesIntentService"
android:label="JDLocation Updates"
android:exported="false"></service>
</application>
它不会让我编辑...我试过右键单击并左键单击并没有什么... – Noams98
@ user2569406 - 我添加了一张图片。我可以直接点击“MainActivity”,然后将文本更改为我想要的任何内容。 –
谢谢!它的工作..并感谢所有试图帮助的人!如果我只有足够的声望,我会投票支持你所有的答案...... – Noams98