Wahrscheinlich ist dies ein Konfigurationsproblem. Das Flag isSupported
überprüft die Konfiguration Ihrer Anwendung und gibt True zurück, wenn Sie die erforderlichen Ergänzungen haben.
sicher, dass Sie die zusätzlichen Fluggeräusche hinzugefügt haben und dass Sie die neueste Version von ihnen haben:
- Kern
- GooglePlayServices
- AndroidSupport
Sie auch, dass Sie das Manifest aktualisiert um alle neuen Ergänzungen (die sich von v2 unterscheiden) zu enthalten, ersetzen Sie APPLICATION_PACKAGE
durch Ihr Anwendungspaket, zB air.com.distriqt.test
:
<manifest android:installLocation="auto">
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="23"/>
<uses-permission android:name="android.permission.INTERNET"/>
<!-- GCM PERMISSIONS -->
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<!-- Only this application can receive the messages and registration result -->
<permission android:name="APPLICATION_PACKAGE.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="APPLICATION_PACKAGE.permission.C2D_MESSAGE" />
<application>
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
<receiver
android:name="com.google.android.gms.gcm.GcmReceiver"
android:exported="true"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="APPLICATION_PACKAGE" />
</intent-filter>
</receiver>
<service
android:name="com.distriqt.extension.pushnotifications.gcm.GcmListenerService"
android:exported="false" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
</intent-filter>
</service>
<service
android:name="com.distriqt.extension.pushnotifications.gcm.InstanceIDListenerService"
android:exported="false">
<intent-filter>
<action android:name="com.google.android.gms.iid.InstanceID" />
</intent-filter>
</service>
<service android:name="com.distriqt.extension.pushnotifications.gcm.RegistrationIntentService" android:exported="false" />
<activity android:name="com.distriqt.extension.pushnotifications.PushNotificationsActivity">
<intent-filter>
<action android:name="APPLICATION_PACKAGE.NOTIFICATION_DEFAULT" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<!-- NOTIFICATIONS -->
<receiver android:name="com.distriqt.extension.pushnotifications.notifications.receivers.NotificationReceiver">
<intent-filter>
<action android:name="APPLICATION_PACKAGE.NOTIFICATION_SELECTED" />
<action android:name="APPLICATION_PACKAGE.NOTIFICATION_DELETED" />
<action android:name="APPLICATION_PACKAGE.NOTIFICATION_ACTION" />
<data android:scheme="dtpn" />
</intent-filter>
</receiver>
</application>
</manifest>
Überprüfen Sie den Startleitfaden für detaillierte Informationen: http://airnativeextensions.com/extension/com.distriqt.PushNotifications#get-started
Core (2016.04.01) GooglePlayServices (Aktualisiert v8487000) AndroidSupport (2015.11.18) GooglePlayServices (2016.03.28) AIR 21 versuchen Sie aber auch mit 19 (gleiche Nummer wie in GooglePlayServices) APPLICATION_PACKAGE - nach meiner App-ID ** Rest des Manifests bleibt gleich ** IntelliJ IDEA 2016.1.1 ABER während compil. 'UNERWARTETER ERSTER EBENEFEHLER: java.lang.OutOfMemoryError: Java-Heap-Speicher \t bei com.android.dx.ssa.Dominators. (Dominators.java:74) \t bei com.android.dx.ssa.Dominators.make (Dominators.java:88) ... ' –
Sobald ich nicht com.district.AndroidSupport extensionID> oder com.distriqt.GooglePlayServices extensionID> Kompilierung ist in Ordnung. Sicher in diesem Fall ist die Unterstützung fehlgeschlagen –
Sie sollten versuchen, den verfügbaren Speicher für intellij zu erhöhen: http://stackoverflow.com/questions/13578062/how-to-increase-ide-memory-limit-in-intellij-idea-on- Mac – Michael