Push Notification and Build Failed


#1

Hi,
I have enabled phonegap-plugin-push and tried to export the Android apk in debug mode. I got the following error. Please help.

Your Package build for AppNotch Prev failed (build ID 2). The error the Package service returned was:
ANDROID_HOME=/opt/android-sdk JAVA_HOME=/usr/lib/jvm/java-8-oracle :wrapper BUILD SUCCESSFUL Total time: 1.005 secs Subproject Path: CordovaLib 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_102n67sc6351a4un8rkuo5z1u.run(/home/package/workspace/creator-0bb70ce008d4-2/cordova/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. :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 :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 :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 :prepareComAndroidSupportSupportCompat2520Library :prepareComAndroidSupportSupportCoreUi2520Library :prepareComAndroidSupportSupportCoreUtils2520Library :prepareComAndroidSupportSupportFragment2520Library :prepareComAndroidSupportSupportMediaCompat2520Library :prepareComAndroidSupportSupportV132340Library :prepareComAndroidSupportSupportV42520Library :prepareComGoogleAndroidGmsPlayServicesBase1100Library :prepareComGoogleAndroidGmsPlayServicesBasement1100Library :prepareComGoogleAndroidGmsPlayServicesGcm1100Library :prepareComGoogleAndroidGmsPlayServicesIid1100Library :prepareComGoogleAndroidGmsPlayServicesTasks1100Library :prepareComGoogleFirebaseFirebaseAnalytics1100Library :prepareComGoogleFirebaseFirebaseAnalyticsImpl1100Library :prepareComGoogleFirebaseFirebaseCommon1100Library :prepareComGoogleFirebaseFirebaseConfig1100Library :prepareComGoogleFirebaseFirebaseCore1100Library :prepareComGoogleFirebaseFirebaseCrash1100Library :prepareComGoogleFirebaseFirebaseIid1100Library :prepareComGoogleFirebaseFirebaseMessaging1100Library :prepareMeLeolinShortcutBadger1114Library :prepareOrgApacheCordovaCordovaLib623DebugLibrary :prepareDebugDependencies :compileDebugAidl :compileDebugRenderscript :generateDebugBuildConfig :generateDebugResValues :generateDebugResources :mergeDebugResources /home/package/workspace/creator-0bb70ce008d4-2/cordova/platforms/android/res/values/strings.xml: Error: Found item String/google_app_id more than one time :mergeDebugResources FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:mergeDebugResources’. > /home/package/workspace/creator-0bb70ce008d4-2/cordova/platforms/android/res/values/strings.xml: Error: Found item String/google_app_id more than one time * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 5.072 secs Error: /home/package/workspace/creator-0bb70ce008d4-2/cordova/platforms/android/gradlew: 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. FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:mergeDebugResources’. > /home/package/workspace/creator-0bb70ce008d4-2/cordova/platforms/android/res/values/strings.xml: Error: Found item String/google_app_id more than one time * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Thank You

~Muthu


#2

Please edit your post and use the </> button above the post input field to format your code or error message or wrap it in ``` (“code fences”) manually. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.

Is this the output of Ionic Package? If so, please add that to your title and description please - right now this is missing crucial context needed to understand what is happening.

Please also post you ionic info output.