2017-11-27 23 views
-3

수업을위한 프로젝트를 진행하고 있습니다.명시 적 발행이 발생했습니다.

실수로 안드로이드 매니페스트 구조의 좋은 부분을 삭제했습니다. 다른 프로젝트의 버전을 복사하여 붙여 넣었지만 오류가 발생했습니다.

<?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> 
+2

http://idownvotedbecau.se/imageofcode –

+0

그냥 수정했습니다. –

+2

열기 ''태그는 자동으로 닫힙니다. 즉, 그것의 끝에서'/'를 제거하십시오. –

답변

0

또한 태그 앞에 응용 프로그램이 위치 파악에 의존하는 경우 위치 권한을 포함해야 할 수 있습니다.

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