# Don't run app on a device after installed OneSignal

**URL:** <https://forum.ionicframework.com/t/dont-run-app-on-a-device-after-installed-onesignal/105791>\
**Category:** ionic-v3\
**Created:** [September 18, 2017, 11:27am UTC](https://forum.ionicframework.com/t/dont-run-app-on-a-device-after-installed-onesignal/105791 "2017-09-18T11:27:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![NurGuz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nurguz/32/111671_2.png) [@NurGuz](https://forum.ionicframework.com/u/NurGuz)\
**Post date:** [September 18, 2017, 11:27am UTC](https://forum.ionicframework.com/t/dont-run-app-on-a-device-after-installed-onesignal/105791/1 "2017-09-18T11:27:24Z")

</div>

Hi guys,

I was installed OneSignal plugin but now don’t run the app in android device. Maiby is for some version of m plugins? Here the list:

cordova-plugin-cocoapod-support 1.3.0 "Cordova CocoaPods Dependency Support"  
cordova-plugin-compat 1.0.0 "Compat"  
cordova-plugin-console 1.0.5 "Console"  
cordova-plugin-device 1.1.4 "Device"  
cordova-plugin-facebook4 1.9.1 "Facebook Connect"  
cordova-plugin-geolocation 2.4.3 "Geolocation"  
cordova-plugin-splashscreen 4.0.3 "Splashscreen"  
cordova-plugin-statusbar 2.2.2 "StatusBar"  
cordova-plugin-whitelist 1.3.1 "Whitelist"  
cordova.plugins.diagnostic 3.6.6 "Diagnostic"  
ionic-plugin-keyboard 2.2.1 "Keyboard"  
onesignal-cordova-plugin 2.2.0 "OneSignal Push Notifications"  
phonegap-plugin-push 1.10.5 “PushPlugin”

---

<div class="post-metadata">

**Author:** ![NurGuz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nurguz/32/111671_2.png) [@NurGuz](https://forum.ionicframework.com/u/NurGuz)\
**Post date:** [September 18, 2017, 11:41am UTC](https://forum.ionicframework.com/t/dont-run-app-on-a-device-after-installed-onesignal/105791/2 "2017-09-18T11:41:16Z")

</div>

The error:

BUILD FAILED

Total time: 3.264 secs  
–stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.  
Error: cmd: Command failed with exit code 1 Error output:  
C:\Users\Nuria\Iamvo2\myApp\platforms\android\AndroidManifest.xml:24:9-31 Error:  
Attribute meta-data#android.support.VERSION@value value=(26.1.0) from [com.android.support:cardview-v7:25.3.1] AndroidManifest.xml:24:9-31  
is also present at [com.android.support:appcompat-v7:25.4.0] AndroidManifest.xml:28:13-35 value=(25.4.0).  
Suggestion: add ‘tools:replace=“android:value”’ to element at AndroidManifest.xml:23:9-25:38 to override.

FAILURE: Build failed with an exception.

- What went wrong:  
Execution failed for task ‘:processDebugManifest’.

> Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(26.1.0) from [com.android.support:cardview-v7:25.3.1] AndroidManifest.xml:24:9-31  
> is also present at [com.android.support:appcompat-v7:25.4.0] AndroidManifest.xml:28:13-35 value=(25.4.0).  
> Suggestion: add ‘tools:replace=“android:value”’ to element at AndroidManifest.xml:23:9-25:38 to override.

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

---

<div class="post-metadata">

**Author:** ![davidwalto](https://avatars.discourse-cdn.com/v4/letter/d/3ec8ea/32.png) [@davidwalto](https://forum.ionicframework.com/u/davidwalto)\
**Post date:** [September 18, 2017, 8:27pm UTC](https://forum.ionicframework.com/t/dont-run-app-on-a-device-after-installed-onesignal/105791/3 "2017-09-18T20:27:54Z")

</div>

I was having the same issue. I fixed it by decreasing onesignal-cordova-plugin version (ionic cordova plugin add onesignal-cordova-plugin@2.1.2)

---

<div class="post-metadata">

**Author:** ![NurGuz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nurguz/32/111671_2.png) [@NurGuz](https://forum.ionicframework.com/u/NurGuz)\
**Post date:** [September 20, 2017, 12:17pm UTC](https://forum.ionicframework.com/t/dont-run-app-on-a-device-after-installed-onesignal/105791/4 "2017-09-20T12:17:09Z")

</div>

Don’t run with this man ☹

This is the error:

```auto
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
        at build_7k5aj54yl8d4hvtdonns30kgi.run(C:\Users\Nuria\Iamvo2\myApp\platforms\android\build.gradle:139)
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
Incremental java compilation is an incubating feature.
The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
Download https://repo1.maven.org/maven2/com/onesignal/OneSignal/3.5.7/OneSignal-3.5.7.pom

Download https://repo1.maven.org/maven2/com/onesignal/OneSignal/3.5.7/OneSignal-3.5.7.aar

:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:preReleaseBuild UP-TO-DATE
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl

:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugShaders
:CordovaLib:compileDebugShaders
:CordovaLib:generateDebugAssets
:CordovaLib:mergeDebugAssets
:CordovaLib:mergeDebugProguardFiles UP-TO-DATE
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:compileDebugRenderscript

:CordovaLib:generateDebugResValues
:CordovaLib:generateDebugResources
:CordovaLib:packageDebugResources

:CordovaLib:processDebugManifest
:CordovaLib:generateDebugBuildConfig

:CordovaLib:processDebugResources

:CordovaLib:generateDebugSources
:CordovaLib:incrementalDebugJavaCompilationSafeguard

:CordovaLib:compileDebugJavaWithJavac

:CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:CordovaLib:processDebugJavaRes
 UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug

:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug

:CordovaLib:mergeDebugJniLibFolders
:CordovaLib:transformNative_libsWithMergeJniLibsForDebug
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug
:CordovaLib:bundleDebug
:CordovaLib:preReleaseBuild UP-TO-DATE
:CordovaLib:checkReleaseManifest
:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseAidl
:CordovaLib:compileReleaseNdk UP-TO-DATE
:CordovaLib:copyReleaseLint UP-TO-DATE
:CordovaLib:mergeReleaseShaders
:CordovaLib:compileReleaseShaders
:CordovaLib:generateReleaseAssets
:CordovaLib:mergeReleaseAssets

:CordovaLib:mergeReleaseProguardFiles UP-TO-DATE
:CordovaLib:packageReleaseRenderscript UP-TO-DATE
:CordovaLib:compileReleaseRenderscript

:CordovaLib:generateReleaseResValues
:CordovaLib:generateReleaseResources
:CordovaLib:packageReleaseResources

:CordovaLib:processReleaseManifest

:CordovaLib:generateReleaseBuildConfig

:CordovaLib:processReleaseResources

:CordovaLib:generateReleaseSources
:CordovaLib:incrementalReleaseJavaCompilationSafeguard
:CordovaLib:compileReleaseJavaWithJavac

:CordovaLib:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:CordovaLib:processReleaseJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForRelease

:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease

:CordovaLib:mergeReleaseJniLibFolders
:CordovaLib:transformNative_libsWithMergeJniLibsForRelease
:CordovaLib:transformNative_libsWithSyncJniLibsForRelease
:CordovaLib:bundleRelease

:prepareComAndroidSupportAnimatedVectorDrawable2531Library

:prepareComAndroidSupportAppcompatV72531Library

:prepareComAndroidSupportCardviewV72531Library

:prepareComAndroidSupportCustomtabs2531Library

:prepareComAndroidSupportSupportCompat2531Library

:prepareComAndroidSupportSupportCoreUi2531Library

:prepareComAndroidSupportSupportCoreUtils2531Library

:prepareComAndroidSupportSupportFragment2531Library

:prepareComAndroidSupportSupportMediaCompat2531Library

:prepareComAndroidSupportSupportV132340Library

:prepareComAndroidSupportSupportV42531Library

:prepareComAndroidSupportSupportVectorDrawable2531Library

:prepareComFacebookAndroidFacebookAndroidSdk4260Library

:prepareComGoogleAndroidGmsPlayServicesBase1104Library

:prepareComGoogleAndroidGmsPlayServicesBasement1104Library

:prepareComGoogleAndroidGmsPlayServicesGcm1104Library

:prepareComGoogleAndroidGmsPlayServicesIid1104Library

:prepareComGoogleAndroidGmsPlayServicesLocation1104Library

:prepareComGoogleAndroidGmsPlayServicesTasks1104Library

:prepareComOnesignalOneSignal357Library

:prepareMeLeolinShortcutBadger1114Library

:prepareOrgApacheCordovaCordovaLib623DebugLibrary

:prepareDebugDependencies

:compileDebugAidl

:compileDebugRenderscript

:generateDebugBuildConfig

:generateDebugResValues

:generateDebugResources
:mergeDebugResources

:processDebugManifest
C:\Users\Nuria\Iamvo2\myApp\platforms\android\AndroidManifest.xml:43:184-243 Error:
        Attribute activity#com.facebook.FacebookActivity@theme value=(@android:style/Theme.Translucent.NoTitleBar) from AndroidManifest.xml:43:184-243
        is also present at [com.facebook.android:facebook-android-sdk:4.26.0] AndroidManifest.xml:32:13-63 value=(@style/com_facebook_activity_theme).
        Suggestion: add 'tools:replace="android:theme"' to <activity> element at AndroidManifest.xml:43:9-246 to override.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugManifest'.
> Manifest merger failed : Attribute activity#com.facebook.FacebookActivity@theme value=(@android:style/Theme.Translucent.NoTitleBar) from AndroidManifest.xml:43:184-243
        is also present at [com.facebook.android:facebook-android-sdk:4.26.0] AndroidManifest.xml:32:13-63 value=(@style/com_facebook_activity_theme).
        Suggestion: add 'tools:replace="android:theme"' to <activity> element at AndroidManifest.xml:43:9-246 to override.

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

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

:processDebugManifest FAILED

BUILD FAILED

Total time: 12.163 secs
Error: cmd: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
C:\Users\Nuria\Iamvo2\myApp\platforms\android\AndroidManifest.xml:43:184-243 Error:
        Attribute activity#com.facebook.FacebookActivity@theme value=(@android:style/Theme.Translucent.NoTitleBar) from AndroidManifest.xml:43:184-243
        is also present at [com.facebook.android:facebook-android-sdk:4.26.0] AndroidManifest.xml:32:13-63 value=(@style/com_facebook_activity_theme).
        Suggestion: add 'tools:replace="android:theme"' to <activity> element at AndroidManifest.xml:43:9-246 to override.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugManifest'.
> Manifest merger failed : Attribute activity#com.facebook.FacebookActivity@theme value=(@android:style/Theme.Translucent.NoTitleBar) from AndroidManifest.xml:43:184-243
        is also present at [com.facebook.android:facebook-android-sdk:4.26.0] AndroidManifest.xml:32:13-63 value=(@style/com_facebook_activity_theme).
        Suggestion: add 'tools:replace="android:theme"' to <activity> element at AndroidManifest.xml:43:9-246 to override.

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

```

And this is m plugin list:

cordova-plugin-cocoapod-support 1.3.0 "Cordova CocoaPods Dependency Support"  
cordova-plugin-compat 1.0.0 "Compat"  
cordova-plugin-console 1.0.5 "Console"  
cordova-plugin-device 1.1.4 "Device"  
cordova-plugin-facebook4 1.7.0 "Facebook Connect"  
cordova-plugin-geolocation 2.4.3 "Geolocation"  
cordova-plugin-splashscreen 4.0.3 "Splashscreen"  
cordova-plugin-statusbar 2.2.2 "StatusBar"  
cordova-plugin-whitelist 1.3.1 "Whitelist"  
cordova.plugins.diagnostic 3.6.6 "Diagnostic"  
ionic-plugin-keyboard 2.2.1 "Keyboard"  
onesignal-cordova-plugin 2.1.2 "OneSignal Push Notifications"  
phonegap-plugin-push 1.10.5 “PushPlugin”

---

<div class="post-metadata">

**Author:** ![dpa99c1](https://avatars.discourse-cdn.com/v4/letter/d/f1d935/32.png) [@dpa99c1](https://forum.ionicframework.com/u/dpa99c1)\
**Post date:** [September 20, 2017, 1:07pm UTC](https://forum.ionicframework.com/t/dont-run-app-on-a-device-after-installed-onesignal/105791/5 "2017-09-20T13:07:15Z")

</div>

try:  
`cordova plugin add cordova-android-support-gradle-release --variable ANDROID_SUPPORT_VERSION=24.+`

See [https://github.com/dpa99c/cordova-diagnostic-plugin/issues/232](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/232)

---

<div class="post-metadata">

**Author:** ![NurGuz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nurguz/32/111671_2.png) [@NurGuz](https://forum.ionicframework.com/u/NurGuz)\
**Post date:** [September 20, 2017, 1:24pm UTC](https://forum.ionicframework.com/t/dont-run-app-on-a-device-after-installed-onesignal/105791/7 "2017-09-20T13:24:42Z")

</div>

THx!!! Run!!! What is it???

---

<div class="post-metadata">

**Author:** ![dpa99c1](https://avatars.discourse-cdn.com/v4/letter/d/f1d935/32.png) [@dpa99c1](https://forum.ionicframework.com/u/dpa99c1)\
**Post date:** [September 20, 2017, 1:41pm UTC](https://forum.ionicframework.com/t/dont-run-app-on-a-device-after-installed-onesignal/105791/8 "2017-09-20T13:41:05Z")

</div>

> **[dpa99c/cordova-android-support-gradle-release](https://github.com/dpa99c/cordova-android-support-gradle-release)**
>
> cordova-android-support-gradle-release - Cordova/Phonegap plugin to align various versions of the Android Support libraries specified by other plugins to a specific version

---

<div class="post-metadata">

**Author:** ![NurGuz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nurguz/32/111671_2.png) [@NurGuz](https://forum.ionicframework.com/u/NurGuz)\
**Post date:** [September 20, 2017, 1:57pm UTC](https://forum.ionicframework.com/t/dont-run-app-on-a-device-after-installed-onesignal/105791/9 "2017-09-20T13:57:01Z")

</div>

Fu\*\*, now in device AngularFireAuth not run. Have an error when I will try to login:

A network error (such as timeout, interrupted connection or unreachable host) has ocurred,

On web run correctly
