Java 发生舱单问题

Java 发生舱单问题,java,android,manifest,Java,Android,Manifest,我正在为一个班做一个项目 由于错误,我删除了我的android清单结构的一大部分。我从另一个项目复制粘贴了一个版本,但出现了一个错误 <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.gabriela.kidslocation1" /> <!--

我正在为一个班做一个项目

由于错误,我删除了我的android清单结构的一大部分。我从另一个项目复制粘贴了一个版本,但出现了一个错误

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.gabriela.kidslocation1" />

<!--
     The ACCESS_COARSE/FINE_LOCATION permissions are not required to use
     Google Maps Android API v2, but you must specify either coarse or fine
     location permissions for the 'MyLocation' functionality.
-->

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@KidsLocation1"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
    >
    <!--
         The API key for Google Maps-based APIs is defined as a string resource.
         (See the file "res/values/google_maps_api.xml").
         Note that the API key is linked to the encryption key used to sign the APK.
         You need a different API key for each encryption key, including the release key that is used to
         sign the APK for publishing.
         You can define the keys for the debug and release targets in src/debug/ and src/release/.
    -->
    <meta-data
        android:name="com.google.android.geo.API_KEY"
        android:value="@string/google_maps_key" />

    <activity
        android:name=".MainActivity"
        android:label="@string/title_activity_maps">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

此外,如果您的应用程序要依赖于获取位置,则在标记之前,您可能需要包含位置权限

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>

刚刚修复了这个问题。打开的标签是自动关闭的。也就是说,删除它末尾的
/