2016-11-01 5 views
2

Nachdem ich von Eclipse zu Android Studio gewechselt habe, habe ich diese Fehler, und ich habe jetzt eine Idee, wie man sie löst, ich bin immer noch nicht vertraut mit AS.Fehler im Manifest

[com.google.firebase:firebase-iid:9.8.0] K:\drawing-board\build\intermediates\exploded-aar\com.google.firebase\firebase-iid\9.8.0\AndroidManifest.xml:24:17-71 Error: 
    Attribute permission#${applicationId}[email protected] at [com.google.firebase:firebase-iid:9.8.0] AndroidManifest.xml:24:17-71 requires a placeholder substitution but no value for <applicationId> is provided. 
[com.google.firebase:firebase-iid:9.8.0] K:\drawing-board\build\intermediates\exploded-aar\com.google.firebase\firebase-iid\9.8.0\AndroidManifest.xml:26:22-76 Error: 
    Attribute uses-permission#${applicationId}[email protected] at [com.google.firebase:firebase-iid:9.8.0] AndroidManifest.xml:26:22-76 requires a placeholder substitution but no value for <applicationId> is provided. 
[com.google.firebase:firebase-iid:9.8.0] K:\drawing-board\build\intermediates\exploded-aar\com.google.firebase\firebase-iid\9.8.0\AndroidManifest.xml:34:27-58 Error: 
    Attribute category#${applicationId}@name at [com.google.firebase:firebase-iid:9.8.0] AndroidManifest.xml:34:27-58 requires a placeholder substitution but no value for <applicationId> is provided. 


See http://g.co/androidstudio/manifest-merger for more information about the manifest merger. 


[com.google.firebase:firebase-common:9.8.0] K:\drawing-board\build\intermediates\exploded-aar\com.google.firebase\firebase-common\9.8.0\AndroidManifest.xml:6:19-78 Error: 
    Attribute provider#[email protected] at [com.google.firebase:firebase-common:9.8.0] AndroidManifest.xml:6:19-78 requires a placeholder substitution but no value for <applicationId> is provided. 


See http://g.co/androidstudio/manifest-merger for more information about the manifest merger. 


K:\drawing-board\AndroidManifest.xml:57:13-59:29 Error: 
    Missing one of the key attributes 'action#name,category#name' on element intent-filter at AndroidManifest.xml:57:13-59:29 
K:\drawing-board\AndroidManifest.xml Error: 
    Validation failed, exiting 


See http://g.co/androidstudio/manifest-merger for more information about the manifest merger. 

:processDebugManifest FAILED 

FAILURE: Build failed with an exception. 

* What went wrong: 
Execution failed for task ':processDebugManifest'. 
> Manifest merger failed with multiple errors, see logs 

* Try: 
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. 

Vielen Dank!

Leider ist hier mein Manifest:

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="example.dessin" 
    android:versionCode="25" 
    android:versionName="2.1.4" > 

    <supports-screens 
     android:anyDensity="true" 
     android:largeScreens="true" 
     android:normalScreens="true" 
     android:resizeable="true" 
     android:smallScreens="true" /> 

    <uses-sdk android:minSdkVersion="11" /> 


    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 
    <uses-permission android:name="android.permission.INTERNET" /> 
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> 
    <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" /> 
    <uses-permission android:name="com.android.launcher.permission.UNINSTALL_SHORTCUT"/>  

      <meta-data 
    android:name="com.google.android.gms.version" 
    android:value="@integer/google_play_services_version" /> 

    <application 
     android:icon="@drawable/ic_launcher" 
     android:label="@string/app_name" 
     android:theme="@android:style/Theme.Holo.Light"> 

     <meta-data android:name="com.google.android.gms.version" 
     android:value="@integer/google_play_services_version" /> 

     <activity 
      android:name=".Splash" 
      android:label="@string/app_name" 
      android:exported="true" 
      android:configChanges="keyboard|keyboardHidden|orientation|screenSize"> 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 
       <category android:name="android.intent.category.LAUNCHER" /> 

      </intent-filter> 



     </activity> 

     <activity android:name=".StickerDialog" android:label="Dialog Example" 
        android:theme="@android:style/Theme.NoTitleBar" /> 


     <activity 
      android:name=".Paint"  
      android:configChanges="orientation|screenSize|keyboard|keyboardHidden"> 
      <intent-filter> 

      </intent-filter> 



     </activity> 


      <activity android:name="com.google.android.gms.ads.AdActivity" 
      android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" 
      android:theme="@android:style/Theme.Translucent" /> 




    </application> 

</manifest> 

Wie ich das Manifest fusionieren kann ?? und diese Fehler beheben? und wie zur Hölle kann ich diese Fehler um Gottes Willen stoppen !!! Vielen Dank!!

+1

posten Sie Ihre menifest Dateiansicht löschen – Real73

+0

Ok, ich werde , danke – Nizar

+0

Verwenden Sie Firebase in Ihrem Projekt? Ich habe es nicht benutzt, aber basierend auf dem Fehler denke ich, dass in der Manifest-Datei einige Dinge fehlen, die für den Einsatz von Firebase benötigt werden. –

Antwort

0

Sie müssen den applicationId-Platzhalter zur Anwendungsgruppe hinzufügen. Dies geschieht mit der Integration von Firebase, nachdem für mich 2.2.0-alpha1

android { 
    ... 
    defaultConfig { 
     applicationId "com.example.my.app" 
     ... 
    } 
} 

Arbeitete zu Gradle aktualisieren ..

here gefunden

Verwandte Themen