Don't run app on a device after installed OneSignal

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”

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.

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)

Don’t run with this man :frowning:

This is the error:

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”

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

See https://github.com/dpa99c/cordova-diagnostic-plugin/issues/232

1 Like

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

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