0

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.READ_PROFILE" />

<service android:name=".MyFirebaseInstanceIDService">
    <intent-filter>
        <action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
    </intent-filter>
</service>


<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_app"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">
    <activity
        android:name=".Activitys.SplashScreenActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity android:name=".Activitys.LoginActivity"/>
    <activity android:name=".Activitys.RegistrarActivity" />
    <activity
        android:name=".Activitys.NavegarActivity"
        android:label="@string/title_activity_navegar"
        android:theme="@style/AppTheme" >


    </activity>

    <meta-data
        android:name="com.google.android.geo.API_KEY"
        android:value="@string/google_maps_key" />

    <fragment
        android:name=".MapsFragment"
        android:label="@string/title_activity_maps"></fragment>

</application>

ERROR

Error:(34) Error: The element must be a direct child of the element [WrongManifestParent] Error:Execution failed for task ':app:lintVitalRelease'.

Lint found fatal errors while assembling a release target. To proceed, either fix the issues identified by lint, or modify your build script as follows: ... android { lintOptions { checkReleaseBuilds false // Or, if you prefer, you can continue to check for errors in release builds, // but continue the build even when errors are found: abortOnError false } } ...

1
  • Teria como você inserir o Gradle.Bundle do seu projeto na sua pergunta?
    – viana
    Commented 6/06/2017 às 13:30

1 Resposta 1

1

Acredito que o problema pode ser o <service> fora da <application>

Tente dessa forma e veja se resolve:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.READ_PROFILE" />




<application
 android:allowBackup="true"
 android:icon="@mipmap/ic_app"
 android:label="@string/app_name"
 android:roundIcon="@mipmap/ic_launcher_round"
 android:supportsRtl="true"
 android:theme="@style/AppTheme">
 <activity
android:name=".Activitys.SplashScreenActivity">
<intent-filter>
    <action android:name="android.intent.action.MAIN" />

    <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".Activitys.LoginActivity"/>
<activity android:name=".Activitys.RegistrarActivity" />
<activity
  android:name=".Activitys.NavegarActivity"
  android:label="@string/title_activity_navegar"
  android:theme="@style/AppTheme" >


</activity>

<meta-data
  android:name="com.google.android.geo.API_KEY"
  android:value="@string/google_maps_key" />

<fragment
   android:name=".MapsFragment"
   android:label="@string/title_activity_maps"></fragment>

<service android:name=".MyFirebaseInstanceIDService">
  <intent-filter>
  <action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
   </intent-filter>
</service>

 </application>
4
  • Tentei dessa forma, mas o comando do firebase fica em vermelho..segue imagem oi67.tinypic.com/20iw4lj.jpg Commented 6/06/2017 às 19:27
  • Ele nao está encontrando sua classe. O caminha está correto?
    – LMaker
    Commented 6/06/2017 às 20:01
  • Não sei disser se fiz o caminho correto.. Sou novo em Android, sem muita afinidade. Alguma dica para verificar? Commented 7/06/2017 às 12:57
  • Escrever o nome da classe e dar crtl + enter pra selecionar o auto complete
    – LMaker
    Commented 7/06/2017 às 17:01

Você deve fazer log-in para responder a esta pergunta.

Esta não é a resposta que você está procurando? Pesquise outras perguntas com a tag .