【发布时间】:2015-09-08 17:32:57
【问题描述】:
我的 AndroidManifest.xml 文件出了点问题。我再次启动测试时突然Android Studio崩溃,再次启动然后出现下一个错误(对不起,我没有足够的评级直接上传图片):
我的 strings.xml 文件没问题:
<resources>
<string title="app_name">PaySpaceMagazine</string>
<string title="hello_world">Hello world!</string>
<string title="action_settings">Settings</string>
<string title="actual">Актуально</string>
<string title="last_news">Последние известия</string>
还有其他没有任何错误的清单文件:
<?xml version="1.0" encoding="utf-8"?>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
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>
有人遇到同样的问题吗?
【问题讨论】:
-
正如错误所暗示的,您在清单中缺少
android:name活动。
标签: java android xml android-studio android-manifest