我的清单给了我这个错误:
元素类型"活动"必须后跟任一属性 规格,">"或" />"
然而,我按预期打开并关闭了活动代码。我还清理了该项目,试图解决这个问题,但无济于事。 这是我的清单。
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
`enter code here` package="com.TeamX.shuttle_app"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="21" />
<uses-permission android:name = "com.TeamX.shuttle_App.permission.MAPS_RECEIVE"/>
<uses-permission android:maxSdkVersion="21" android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:maxSdkVersion="21" android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:maxSdkVersion="21" android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:maxSdkVersion="21" android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-feature
android:glEsVersion="0x00020000"
android:required="true"/>
<application
android:allowBackup="true"
android:icon="@drawable/shuttapplogo"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="AIzaSyA7SnyyG2IZ4flWaZelTOWKcrFVnsrLCck" />
<activity
android:name="com.TeamX.shuttle_app.ShuttleSplash"
android:label="@string/app_name"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.TeamX.shuttle_App.Main"
android:label="@string/app_name"
</activity>
</application>
</manifest>
答案 0 :(得分:0)
你的
<activity
android:name="com.TeamX.shuttle_App.Main"
android:label="@string/app_name"
</activity>
应该是
<activity
android:name="com.TeamX.shuttle_App.Main"
android:label="@string/app_name" />
答案 1 :(得分:0)
而不是:
<activity
android:name="com.TeamX.shuttle_App.Main"
android:label="@string/app_name"
</activity>
这样做:
<activity
android:name="com.TeamX.shuttle_App.Main"
android:label="@string/app_name">
</activity>