35 Replies Latest reply on Jul 6, 2018 5:29 AM by Ritz.Meritz

    phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi

    pixellet5 Level 1

      Just three days back...all of a sudden all my directory structure has changed inside the phonegap project...the build folder disappeared (appeared automatically today) ...all build commands don't show any errors (except --verbose) ....verbose shows a lot of errors which are totally a rocket science to understand atm as no resources available online on the internet.... is this due to the latest phonegap update?? I am stuck....please help....many thanks in advance

        • 1. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
          jcesarmobile_ Adobe Community Professional

          cordova-android 7.x.x uses a different folder structure, so if you have updated the Phonegap CLI to 8.0.0 you will get that cordova-android version.
          The build folder also changed the location, so your app is probably on the new folder, just search for the .apk inside your project, it should be there.

          • 2. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
            pixellet5 Level 1

            many thanks for your reply sire...

             

            Surprisingly...just after getting your reply ...i can see the build being generated....but it is no longer working in my phone lol....perhaps some other issue....

             

            many thanks once again for taking time....and the apk got generated in the same folder as previously...not any different folder...

            • 3. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
              pixellet5 Level 1

              btw....other projects/apps are still showing me errors as under

               

               

              BUILD FAILED in 1s

               

               

              23 actionable tasks: 1 executed, 22 up-to-date

               

               

              Command finished with error code 1: cmd /s /c "E:\phonegap\amyindiafinal\platfor

              ms\android\gradlew.bat cdvBuildDebug -b E:\phonegap\amyindiafinal\platforms\andr

              oid\build.gradle -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m -Pandro

              id.useDeprecatedNdk=true"

               

               

              (node:8100) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with ex

              it code 1 Error output:

              E:\phonegap\amyindiafinal\platforms\android\app\src\main\AndroidManifest.xml:25:

              5-74 Error:

                      uses-sdk:minSdkVersion 14 cannot be smaller than version 16 declared in

              library [:CordovaLib] E:\phonegap\amyindiafinal\platforms\android\CordovaLib\bui

              ld\intermediates\manifests\full\debug\AndroidManifest.xml as the library might b

              e using APIs not available in 14

                      Suggestion: use a compatible library with a minSdk of at most 14,

                              or increase this project's minSdk version to at least 16,

                              or use tools:overrideLibrary="org.apache.cordova" to force usage

              (may lead to runtime failures)

               

               

              FAILURE: Build failed with an exception.

               

               

              * What went wrong:

              Execution failed for task ':app:processDebugManifest'.

              > Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than vers

              ion 16 declared in library [:CordovaLib] E:\phonegap\amyindiafinal\platforms\and

              roid\CordovaLib\build\intermediates\manifests\full\debug\AndroidManifest.xml as

              the library might be using APIs not available in 14

                      Suggestion: use a compatible library with a minSdk of at most 14,

                              or increase this project's minSdk version to at least 16,

                              or use tools:overrideLibrary="org.apache.cordova" to force usage

              (may lead to runtime failures)

               

               

              * Try:

              Run with --stacktrace option to get the stack trace. Run with --info or --debug

              option to get more log output.

               

               

              * Get more help at https://help.gradle.org

               

               

              BUILD FAILED in 1s

                  at ChildProcess.whenDone (E:\phonegap\amyindiafinal\platforms\android\cordov

              a\node_modules\cordova-common\src\superspawn.js:169:23)

                  at ChildProcess.emit (events.js:180:13)

                  at maybeClose (internal/child_process.js:936:16)

                  at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)

               

               

              (node:8100) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This

              error originated either by throwing inside of an async function without a catch

              block, or by rejecting a promise which was not handled with .catch(). (rejection

              id: 1)

              (node:8100) [DEP0018] DeprecationWarning: Unhandled promise rejections are depre

              cated. In the future, promise rejections that are not handled will terminate the

              Node.js process with a non-zero exit code.

               

               

              [phonegap] completed 'cordova build android --verbose --no-telemetry'

               

               

              E:\phonegap\amyindiafinal>phonegap build android --verbose

              [phonegap] executing 'cordova build android --verbose' ...

              No scripts found for hook "before_build".

               

               

               

               

              No scripts found for hook "before_prepare".

               

               

               

               

              Checking config.xml and package.json for saved platforms that haven't been added

              to the project

               

               

               

               

              Config.xml and package.json platforms are the same. No pkg.json modification.

               

               

              Package.json and config.xml platforms are different. Updating config.xml with mo

              st current list of platforms.

               

               

              PlatformApi successfully found for platform android

               

               

               

               

              Android Studio project detected

               

               

               

               

              Checking config.xml for saved plugins that haven't been added to the project

               

               

               

               

              Checking for any plugins added to the project that have not been installed in an

              droid platform

               

               

               

               

              No differences found between plugins added to project and installed in android p

              latform. Continuing...

               

               

               

               

              Generating platform-specific config.xml from defaults for android at E:\phonegap

              \amyindiafinal\platforms\android\app\src\main\res\xml\config.xml

               

               

               

               

              Merging project's config.xml into platform-specific android config.xml

               

               

               

               

              Merging and updating files from [www, platforms\android\platform_www] to platfor

              ms\android\app\src\main\assets\www

               

              Wrote out android application name "amyindia" to E:\phonegap\amyindiafinal\platf

              orms\android\app\src\main\res\values\strings.xml

               

              android-versionCode not found in config.xml. Generating a code based on version

              in config.xml (1.0.0): 10000

               

              Wrote out Android package name "com.amyindia.meritz" to E:\phonegap\amyindiafina

              l\platforms\android\app\src\main\java\com\amyindia\meritz\MainActivity.java

               

              Updating icons at platforms\android\app\src\main\res

               

              Updating splash screens at platforms\android\app\src\main\res

               

              This app does not have additional resource files defined

               

              Prepared android project successfully

               

              Executing script found in plugin cordova-push-notifications for hook "after_prep

              are": plugins\cordova-push-notifications\hooks\after_prepare\999-admobPluginNoti

              ce.js

               

              No scripts found for hook "before_compile".

               

               

              ANDROID_HOME=C:\Users\Ritesh Singh\AppData\Local\Android\sdk

               

              JAVA_HOME=C:\Program Files\java\jdk1.8.0_162

               

              studio

               

              Subproject Path: CordovaLib

              Subproject Path: app

               

              Running command: cmd "/s /c "E:\phonegap\amyindiafinal\platforms\android\gradlew

              .bat cdvBuildDebug -b E:\phonegap\amyindiafinal\platforms\android\build.gradle -

              Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m -Pandroid.useDeprecatedNd

              k=true""

               

               

              publishNonDefault is deprecated and has no effect anymore. All variants are now

              published.

               

              The Task.leftShift(Closure) method has been deprecated and is scheduled to be re

              moved in Gradle 5.0. Please use Task.doLast(Action) instead.

                      at build_15gvrh3427f3g4g9wk3g8zivt.run(E:\phonegap\amyindiafinal\platfor

              ms\android\app\build.gradle:143)

               

               

              Configuration 'compile' in project ':app' is deprecated. Use 'implementation' in

              stead.

               

               

              :CordovaLib:preBuild UP-TO-DATE

              :CordovaLib:preDebugBuild UP-TO-DATE

              :CordovaLib:compileDebugAidl

              UP-TO-DATE

              :CordovaLib:compileDebugRenderscript UP-TO-DATE

              :CordovaLib:checkDebugManifest UP-TO-DATE

               

              :CordovaLib:generateDebugBuildConfig UP-TO-DATE

              :CordovaLib:prepareLintJar UP-TO-DATE

              :CordovaLib:generateDebugResValues UP-TO-DATE

              :CordovaLib:generateDebugResources UP-TO-DATE

              :CordovaLib:packageDebugResources

              UP-TO-DATE

              :CordovaLib:platformAttrExtractor UP-TO-DATE

              :CordovaLib:processDebugManifest

              UP-TO-DATE

              :CordovaLib:processDebugResources

              UP-TO-DATE

              :CordovaLib:generateDebugSources UP-TO-DATE

              :CordovaLib:javaPreCompileDebug UP-TO-DATE

               

              :CordovaLib:compileDebugJavaWithJavac

              UP-TO-DATE

              :CordovaLib:processDebugJavaRes NO-SOURCE

              :CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-T

              O-DATE

              :app:preBuild UP-TO-DATE

              :app:preDebugBuild

              UP-TO-DATE

              :app:compileDebugAidl UP-TO-DATE

              :CordovaLib:packageDebugRenderscript NO-SOURCE

              :app:compileDebugRenderscript

              UP-TO-DATE

              :app:checkDebugManifest

              UP-TO-DATE

              :app:generateDebugBuildConfig UP-TO-DATE

              :app:prepareLintJar UP-TO-DATE

              :app:generateDebugResValues

              UP-TO-DATE

              :app:generateDebugResources UP-TO-DATE

              :app:mergeDebugResources

              UP-TO-DATE

              :app:createDebugCompatibleScreenManifests UP-TO-DATE

              :app:processDebugManifest

              E:\phonegap\amyindiafinal\platforms\android\app\src\main\AndroidManifest.xml:25:

              5-74 Error:

                      uses-sdk:minSdkVersion 14 cannot be smaller than version 16 declared in

              library [:CordovaLib] E:\phonegap\amyindiafinal\platforms\android\CordovaLib\bui

              ld\intermediates\manifests\full\debug\AndroidManifest.xml as the library might b

              e using APIs not available in 14

                      Suggestion: use a compatible library with a minSdk of at most 14,

                              or increase this project's minSdk version to at least 16,

                              or use tools:overrideLibrary="org.apache.cordova" to force usage

              (may lead to runtime failures)

               

               

               

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

              ifest merger.

              :app:processDebugManifest FAILED

               

               

               

               

              FAILURE: Build failed with an exception.

               

               

              * What went wrong:

              Execution failed for task ':app:processDebugManifest'.

              > Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than vers

              ion 16 declared in library [:CordovaLib] E:\phonegap\amyindiafinal\platforms\and

              roid\CordovaLib\build\intermediates\manifests\full\debug\AndroidManifest.xml as

              the library might be using APIs not available in 14

                      Suggestion: use a compatible library with a minSdk of at most 14,

                              or increase this project's minSdk version to at least 16,

                              or use tools:overrideLibrary="org.apache.cordova" to force usage

              (may lead to runtime failures)

               

               

              * Try:

              Run with --stacktrace option to get the stack trace. Run with --info or --debug

              option to get more log output.

               

               

              * Get more help at https://help.gradle.org

               

               

              BUILD FAILED in 1s

               

               

              23 actionable tasks: 1 executed, 22 up-to-date

               

               

              Command finished with error code 1: cmd /s /c "E:\phonegap\amyindiafinal\platfor

              ms\android\gradlew.bat cdvBuildDebug -b E:\phonegap\amyindiafinal\platforms\andr

              oid\build.gradle -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m -Pandro

              id.useDeprecatedNdk=true"

               

               

              (node:7212) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with ex

              it code 1 Error output:

              E:\phonegap\amyindiafinal\platforms\android\app\src\main\AndroidManifest.xml:25:

              5-74 Error:

                      uses-sdk:minSdkVersion 14 cannot be smaller than version 16 declared in

              library [:CordovaLib] E:\phonegap\amyindiafinal\platforms\android\CordovaLib\bui

              ld\intermediates\manifests\full\debug\AndroidManifest.xml as the library might b

              e using APIs not available in 14

                      Suggestion: use a compatible library with a minSdk of at most 14,

                              or increase this project's minSdk version to at least 16,

                              or use tools:overrideLibrary="org.apache.cordova" to force usage

              (may lead to runtime failures)

               

               

              FAILURE: Build failed with an exception.

               

               

              * What went wrong:

              Execution failed for task ':app:processDebugManifest'.

              > Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than vers

              ion 16 declared in library [:CordovaLib] E:\phonegap\amyindiafinal\platforms\and

              roid\CordovaLib\build\intermediates\manifests\full\debug\AndroidManifest.xml as

              the library might be using APIs not available in 14

                      Suggestion: use a compatible library with a minSdk of at most 14,

                              or increase this project's minSdk version to at least 16,

                              or use tools:overrideLibrary="org.apache.cordova" to force usage

              (may lead to runtime failures)

               

               

              * Try:

              Run with --stacktrace option to get the stack trace. Run with --info or --debug

              option to get more log output.

               

               

              * Get more help at https://help.gradle.org

               

               

              BUILD FAILED in 1s

                  at ChildProcess.whenDone (E:\phonegap\amyindiafinal\platforms\android\cordov

              a\node_modules\cordova-common\src\superspawn.js:169:23)

                  at ChildProcess.emit (events.js:180:13)

                  at maybeClose (internal/child_process.js:936:16)

                  at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)

              (node:7212) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This

              error originated either by throwing inside of an async function without a catch

              block, or by rejecting a promise which was not handled with .catch(). (rejection

              id: 1)

              (node:7212) [DEP0018] DeprecationWarning: Unhandled promise rejections are depre

              cated. In the future, promise rejections that are not handled will terminate the

              Node.js process with a non-zero exit code.

               

               

              [phonegap] completed 'cordova build android --verbose --no-telemetry'

               

               

              E:\phonegap\amyindiafinal>

              • 4. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
                jcesarmobile_ Adobe Community Professional

                That error is because you are trying to use the min SDK 14, but latest cordova-android requires 16

                 

                If you have this preference in your config.xml change the value to 16 or remove the whole preference.

                 

                <preference name="android-minSdkVersion"      value="14" />

                • 5. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
                  pixellet5 Level 1

                  oh cool...but what about the emulator? after we type the command phonegap emulate android... it doesn't emulate in the AVD?

                  • 6. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
                    jcesarmobile_ Adobe Community Professional

                    No idea about that, I always use real devices to test because I have never been able to launch an emulator properly (not even from Android Studio/Eclipse), it starts bug hangs and never launch the app.

                    • 7. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
                      pixellet5 Level 1

                      so true!...lol...however...just one last question

                       

                      when i run

                      phonegap build android --debug

                      it doesn't work

                       

                      but when i run

                      phonegap build android --verbose

                      it does!

                       

                      you have come as a blessing to our team sir! ....thanks a lot...atleast we can now send the test apk to our client

                      • 8. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
                        pixellet5 Level 1

                        it has stopped working again...what min sdk version should we change it to now?

                        • 9. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
                          jcesarmobile_ Adobe Community Professional

                          That was for that error. What error are you getting now?

                           

                          If you updated to cordova-android 7.1.0, then you have to change the minsdk to 19.

                           

                          Anyway, it's better to just remove that preference if you are going to use the minsdk allowed by cordova-android

                          • 10. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
                            pixellet5 Level 1

                            hi...thanks for replying....the error is as under

                             

                             

                            : java.lang.RuntimeException: com.android.ide.common.process.ProcessException: E

                            rror while executing java process with main class com.google.devtools.build.andr

                            oid.desugar.Desugar with arguments {--input E:\phonegap\cobraPost\platforms\andr

                            oid\app\build\intermediates\transforms\stackFramesFixer\debug\13.jar --output E:

                            \phonegap\cobraPost\platforms\android\app\build\intermediates\transforms\desugar

                            \debug\15.jar --input E:\phonegap\cobraPost\platforms\android\app\build\intermed

                            iates\transforms\stackFramesFixer\debug\11.jar --output E:\phonegap\cobraPost\pl

                            atforms\android\app\build\intermediates\transforms\desugar\debug\13.jar --input

                            E:\phonegap\cobraPost\platforms\android\app\build\intermediates\transforms\stack

                            FramesFixer\debug\6.jar --output E:\phonegap\cobraPost\platforms\android\app\bui

                            ld\intermediates\transforms\desugar\debug\8.jar --input E:\phonegap\cobraPost\pl

                            atforms\android\app\build\intermediates\transforms\stackFramesFixer\debug\27.jar

                            --output E:\phonegap\cobraPost\platforms\android\app\build\intermediates\transf

                            orms\desugar\debug\29.jar --input E:\phonegap\cobraPost\platforms\android\app\bu

                            ild\intermediates\transforms\stackFramesFixer\debug\3.jar --output E:\phonegap\c

                            obraPost\platforms\android\app\build\intermediates\transforms\desugar\debug\5.ja

                            r --input E:\phonegap\cobraPost\platforms\android\app\build\intermediates\transf

                            orms\stackFramesFixer\debug\1.jar --output E:\phonegap\cobraPost\platforms\andro

                            id\app\build\intermediates\transforms\desugar\debug\3.jar --input E:\phonegap\co

                            braPost\platforms\android\app\build\intermediates\transforms\stackFramesFixer\de

                            bug\20.jar --output E:\phonegap\cobraPost\platforms\android\app\build\intermedia

                            tes\transforms\desugar\debug\22.jar --input E:\phonegap\cobraPost\platforms\andr

                            oid\app\build\intermediates\transforms\stackFramesFixer\debug\25.jar --output E:

                            \phonegap\cobraPost\platforms\android\app\build\intermediates\transforms\desugar

                            \debug\27.jar --input E:\phonegap\cobraPost\platforms\android\app\build\intermed

                            iates\transforms\stackFramesFixer\debug\21.jar --output E:\phonegap\cobraPost\pl

                            atforms\android\app\build\intermediates\transforms\desugar\debug\23.jar --input

                            E:\phonegap\cobraPost\platforms\android\app\build\intermediates\transforms\stack

                            FramesFixer\debug\17.jar --output E:\phonegap\cobraPost\platforms\android\app\bu

                            ild\intermediates\transforms\desugar\debug\19.jar --input E:\phonegap\cobraPost\

                            platforms\android\app\build\intermediates\transforms\stackFramesFixer\debug\32.j

                            ar --output E:\phonegap\cobraPost\platforms\android\app\build\intermediates\tran

                            sforms\desugar\debug\34.jar --input E:\phonegap\cobraPost\platforms\android\app\

                            build\intermediates\transforms\stackFramesFixer\debug\30.jar --output E:\phonega

                            p\cobraPost\platforms\android\app\build\intermediates\transforms\desugar\debug\3

                            2.jar --input E:\phonegap\cobraPost\platforms\android\app\build\intermediates\tr

                            ansforms\stackFramesFixer\debug\19.jar --output E:\phonegap\cobraPost\platforms\

                            android\app\build\intermediates\transforms\desugar\debug\21.jar --classpath_entr

                            y E:\phonegap\cobraPost\platforms\android\CordovaLib\build\intermediates\interme

                            diate-jars\debug\classes.jar --classpath_entry E:\phonegap\cobraPost\platforms\a

                            ndroid\app\build\intermediates\classes\debug --classpath_entry E:\phonegap\cobra

                            Post\platforms\android\app\build\intermediates\transforms\stackFramesFixer\debug

                            \0.jar --classpath_entry E:\phonegap\cobraPost\platforms\android\app\build\inter

                            mediates\transforms\stackFramesFixer\debug\1.jar --classpath_entry E:\phonegap\c

                            obraPost\platforms\android\app\build\intermediates\transforms\stackFramesFixer\d

                            ebug\2.jar --classpath_entry E:\phonegap\cobraPost\platforms\android\app\build\i

                            ntermediates\transforms\stackFramesFixer\debug\3.jar --classpath_entry E:\phoneg

                            ap\cobraPost\platforms\android\app\build\intermediates\transforms\stackFramesFix

                            er\debug\4.jar --classpath_entry E:\phonegap\cobraPost\platforms\android\app\bui

                            ld\intermediates\transforms\stackFramesFixer\debug\5.jar --classpath_entry E:\ph

                            onegap\cobraPost\platforms\android\app\build\intermediates\transforms\stackFrame

                            sFixer\debug\6.jar --classpath_entry E:\phonegap\cobraPost\platforms\android\app

                            \build\intermediates\transforms\stackFramesFixer\debug\7.jar --classpath_entry E

                            :\phonegap\cobraPost\platforms\android\app\build\intermediates\transforms\stackF

                            ramesFixer\debug\8.jar --classpath_entry E:\phonegap\cobraPost\platforms\android

                            \app\build\intermediates\transforms\stackFramesFixer\debug\9.jar --classpath_ent

                            ry E:\phonegap\cobraPost\platforms\android\app\build\intermediates\transforms\st

                            ackFramesFixer\debug\10.jar --classpath_entry E:\phonegap\cobraPost\platforms\an

                            droid\app\build\intermediates\transforms\stackFramesFixer\debug\11.jar --classpa

                            th_entry E:\phonegap\cobraPost\platforms\android\app\build\intermediates\transfo

                            rms\stackFramesFixer\debug\12.jar --classpath_entry E:\phonegap\cobraPost\platfo

                            rms\android\app\build\intermediates\transforms\stackFramesFixer\debug\13.jar --c

                            lasspath_entry E:\phonegap\cobraPost\platforms\android\app\build\intermediates\t

                            ransforms\stackFramesFixer\debug\14.jar --classpath_entry E:\phonegap\cobraPost\

                            platforms\android\app\build\intermediates\transforms\stackFramesFixer\debug\15.j

                            ar --classpath_entry E:\phonegap\cobraPost\platforms\android\app\build\intermedi

                            ates\transforms\stackFramesFixer\debug\16.jar --classpath_entry E:\phonegap\cobr

                            aPost\platforms\android\app\build\intermediates\transforms\stackFramesFixer\debu

                            g\17.jar --classpath_entry E:\phonegap\cobraPost\platforms\android\app\build\int

                            ermediates\transforms\stackFramesFixer\debug\18.jar --classpath_entry E:\phonega

                            p\cobraPost\platforms\android\app\build\intermediates\transforms\stackFramesFixe

                            r\debug\19.jar --classpath_entry E:\phonegap\cobraPost\platforms\android\app\bui

                            ld\intermediates\transforms\stackFramesFixer\debug\20.jar --classpath_entry E:\p

                            honegap\cobraPost\platforms\android\app\build\intermediates\transforms\stackFram

                            esFixer\debug\21.jar --classpath_entry E:\phonegap\cobraPost\platforms\android\a

                            pp\build\intermediates\transforms\stackFramesFixer\debug\22.jar --classpath_entr

                            y E:\phonegap\cobraPost\platforms\android\app\build\intermediates\transforms\sta

                            ckFramesFixer\debug\23.jar --classpath_entry E:\phonegap\cobraPost\platforms\and

                            roid\app\build\intermediates\transforms\stackFramesFixer\debug\24.jar --classpat

                            h_entry E:\phonegap\cobraPost\platforms\android\app\build\intermediates\transfor

                            ms\stackFramesFixer\debug\25.jar --classpath_entry E:\phonegap\cobraPost\platfor

                            ms\android\app\build\intermediates\transforms\stackFramesFixer\debug\26.jar --cl

                            asspath_entry E:\phonegap\cobraPost\platforms\android\app\build\intermediates\tr

                            ansforms\stackFramesFixer\debug\27.jar --classpath_entry E:\phonegap\cobraPost\p

                            latforms\android\app\build\intermediates\transforms\stackFramesFixer\debug\28.ja

                            r --classpath_entry E:\phonegap\cobraPost\platforms\android\app\build\intermedia

                            tes\transforms\stackFramesFixer\debug\29.jar --classpath_entry E:\phonegap\cobra

                            Post\platforms\android\app\build\intermediates\transforms\stackFramesFixer\debug

                            \30.jar --classpath_entry E:\phonegap\cobraPost\platforms\android\app\build\inte

                            rmediates\transforms\stackFramesFixer\debug\31.jar --classpath_entry E:\phonegap

                            \cobraPost\platforms\android\app\build\intermediates\transforms\stackFramesFixer

                            \debug\32.jar --classpath_entry E:\phonegap\cobraPost\platforms\android\app\buil

                            d\intermediates\transforms\stackFramesFixer\debug\33.jar --classpath_entry E:\ph

                            onegap\cobraPost\platforms\android\app\build\intermediates\transforms\stackFrame

                            sFixer\debug\34.jar --classpath_entry E:\phonegap\cobraPost\platforms\android\ap

                            p\build\intermediates\transforms\stackFramesFixer\debug\35.jar --classpath_entry

                            E:\phonegap\cobraPost\platforms\android\app\build\intermediates\transforms\stac

                            kFramesFixer\debug\36.jar --bootclasspath_entry C:\Users\Ritesh Singh\AppData\Lo

                            cal\Android\sdk\platforms\android-26\android.jar --bootclasspath_entry C:\Users\

                            Ritesh Singh\AppData\Local\Android\sdk\platforms\android-26\optional\org.apache.

                            http.legacy.jar --bootclasspath_entry C:\Program Files\Java\jdk1.8.0_162\jre\lib

                            \resources.jar --bootclasspath_entry C:\Program Files\Java\jdk1.8.0_162\jre\lib\

                            rt.jar --bootclasspath_entry C:\Program Files\Java\jdk1.8.0_162\jre\lib\jsse.jar

                            --bootclasspath_entry C:\Program Files\Java\jdk1.8.0_162\jre\lib\jce.jar --boot

                            classpath_entry C:\Program Files\Java\jdk1.8.0_162\jre\lib\charsets.jar --bootcl

                            asspath_entry C:\Program Files\Java\jdk1.8.0_162\jre\lib\jfr.jar --min_sdk_versi

                            on 16 --desugar_try_with_resources_if_needed --desugar_try_with_resources_omit_r

                            untime_classes}

                             

                             

                            * Try:

                            Run with --stacktrace option to get the stack trace. Run with --info

                            36 actionable tasks: 3 executed, 33 up-to-date

                             

                             

                            or --debug option to get more log output.

                             

                             

                            * Get more help at https://help.gradle.org

                             

                             

                            BUILD FAILED in 5s

                             

                             

                            Command finished with error code 1: cmd /s /c "E:\phonegap\cobraPost\platforms\a

                            ndroid\gradlew.bat cdvBuildDebug -b E:\phonegap\cobraPost\platforms\android\buil

                            d.gradle -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m -Pandroid.useDe

                            precatedNdk=true"

                             

                             

                             

                             

                            (node:3500) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with ex

                            it code 1 Error output:

                            Exception in thread "main" java.lang.IllegalArgumentException

                                    at com.google.common.base.Preconditions.checkArgument(Preconditions.java

                            :108)

                                    at com.google.devtools.build.android.desugar.DefaultMethodClassFixer$Def

                            aultMethodFinder.visit(DefaultMethodClassFixer.java:471)

                                    at org.objectweb.asm.ClassReader.accept(Unknown Source)

                                    at org.objectweb.asm.ClassReader.accept(Unknown Source)

                                    at com.google.devtools.build.android.desugar.DefaultMethodClassFixer.def

                            aultMethodsDefined(DefaultMethodClassFixer.java:319)

                                    at com.google.devtools.build.android.desugar.DefaultMethodClassFixer.vis

                            itEnd(DefaultMethodClassFixer.java:88)

                                    at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source)

                                    at com.google.devtools.build.android.desugar.InterfaceDesugaring.visitEn

                            d(InterfaceDesugaring.java:85)

                                    at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source)

                                    at com.google.devtools.build.android.desugar.LambdaDesugaring.visitEnd(L

                            ambdaDesugaring.java:150)

                                    at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source)

                                    at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source)

                                    at org.objectweb.asm.ClassReader.accept(Unknown Source)

                                    at org.objectweb.asm.ClassReader.accept(Unknown Source)

                                    at com.google.devtools.build.android.desugar.Desugar.desugarClassesInInp

                            ut(Desugar.java:401)

                                    at com.google.devtools.build.android.desugar.Desugar.desugarOneInput(Des

                            ugar.java:326)

                                    at com.google.devtools.build.android.desugar.Desugar.desugar(Desugar.jav

                            a:280)

                                    at com.google.devtools.build.android.desugar.Desugar.main(Desugar.java:5

                            84)

                             

                             

                             

                             

                            FAILURE: Build failed with an exception.

                             

                             

                            * What went wrong:

                            Execution failed for task ':app:transformClassesWithDesugarForDebug'.

                            > com.android.build.api.transform.TransformException: java.lang.RuntimeException

                            : java.lang.RuntimeException: com.android.ide.common.process.ProcessException: E

                            rror while executing java process with main class com.google.devtools.build.andr

                            oid.desugar.Desugar with arguments {--input E:\phonegap\cobraPost\platforms\andr

                            oid\app\build\intermediates\transforms\stackFramesFixer\debug\13.jar --output E:

                            \phonegap\cobraPost\platforms\android\app\build\intermediates\transforms\desugar

                            \debug\15.jar --input E:\phonegap\cobraPost\platforms\android\app\build\intermed

                            iates\transforms\stackFramesFixer\debug\11.jar --output E:\phonegap\cobraPost\pl

                            atforms\android\app\build\intermediates\transforms\desugar\debug\13.jar --input

                            E:\phonegap\cobraPost\platforms\android\app\build\intermediates\transforms\stack

                            FramesFixer\debug\6.jar --output E:\phonegap\cobraPost\platforms\android\app\bui

                            ld\intermediates\transforms\desugar\debug\8.jar --input E:\phonegap\cobraPost\pl

                            atforms\android\app\build\intermediates\transforms\stackFramesFixer\debug\27.jar

                            --output E:\phonegap\cobraPost\platforms\android\app\build\intermediates\transf

                            orms\desugar\debug\29.jar --input E:\phonegap\cobraPost\platforms\android\app\bu

                            ild\intermediates\transforms\stackFramesFixer\debug\3.jar --output E:\phonegap\c

                            obraPost\platforms\android\app\build\intermediates\transforms\desugar\debug\5.ja

                            r --input E:\phonegap\cobraPost\platforms\android\app\build\intermediates\transf

                            orms\stackFramesFixer\debug\1.jar --output E:\phonegap\cobraPost\platforms\andro

                            id\app\build\intermediates\transforms\desugar\debug\3.jar --input E:\phonegap\co

                            braPost\platforms\android\app\build\intermediates\transforms\stackFramesFixer\de

                            bug\20.jar --output E:\phonegap\cobraPost\platforms\android\app\build\intermedia

                            tes\transforms\desugar\debug\22.jar --input E:\phonegap\cobraPost\platforms\andr

                            oid\app\build\intermediates\transforms\stackFramesFixer\debug\25.jar --output E:

                            \phonegap\cobraPost\platforms\android\app\build\intermediates\transforms\desugar

                            \debug\27.jar --input E:\phonegap\cobraPost\platforms\android\app\build\intermed

                            iates\transforms\stackFramesFixer\debug\21.jar --output E:\phonegap\cobraPost\pl

                            atforms\android\app\build\intermediates\transforms\desugar\debug\23.jar --input

                            E:\phonegap\cobraPost\platforms\android\app\build\intermediates\transforms\stack

                            FramesFixer\debug\17.jar --output E:\phonegap\cobraPost\platforms\android\app\bu

                            ild\intermediates\transforms\desugar\debug\19.jar --input E:\phonegap\cobraPost\

                            platforms\android\app\build\intermediates\transforms\stackFramesFixer\debug\32.j

                            ar --output E:\phonegap\cobraPost\platforms\android\app\build\intermediates\tran

                            sforms\desugar\debug\34.jar --input E:\phonegap\cobraPost\platforms\android\app\

                            build\intermediates\transforms\stackFramesFixer\debug\30.jar --output E:\phonega

                            p\cobraPost\platforms\android\app\build\intermediates\transforms\desugar\debug\3

                            2.jar --input E:\phonegap\cobraPost\platforms\android\app\build\intermediates\tr

                            ansforms\stackFramesFixer\debug\19.jar --output E:\phonegap\cobraPost\platforms\

                            android\app\build\intermediates\transforms\desugar\debug\21.jar --classpath_entr

                            y E:\phonegap\cobraPost\platforms\android\CordovaLib\build\intermediates\interme

                            diate-jars\debug\classes.jar --classpath_entry E:\phonegap\cobraPost\platforms\a

                            ndroid\app\build\intermediates\classes\debug --classpath_entry E:\phonegap\cobra

                            Post\platforms\android\app\build\intermediates\transforms\stackFramesFixer\debug

                            \0.jar --classpath_entry E:\phonegap\cobraPost\platforms\android\app\build\inter

                            mediates\transforms\stackFramesFixer\debug\1.jar --classpath_entry E:\phonegap\c

                            obraPost\platforms\android\app\build\intermediates\transforms\stackFramesFixer\d

                            ebug\2.jar --classpath_entry E:\phonegap\cobraPost\platforms\android\app\build\i

                            ntermediates\transforms\stackFramesFixer\debug\3.jar --classpath_entry E:\phoneg

                            ap\cobraPost\platforms\android\app\build\intermediates\transforms\stackFramesFix

                            er\debug\4.jar --classpath_entry E:\phonegap\cobraPost\platforms\android\app\bui

                            ld\intermediates\transforms\stackFramesFixer\debug\5.jar --classpath_entry E:\ph

                            onegap\cobraPost\platforms\android\app\build\intermediates\transforms\stackFrame

                            sFixer\debug\6.jar --classpath_entry E:\phonegap\cobraPost\platforms\android\app

                            \build\intermediates\transforms\stackFramesFixer\debug\7.jar --classpath_entry E

                            :\phonegap\cobraPost\platforms\android\app\build\intermediates\transforms\stackF

                            ramesFixer\debug\8.jar --classpath_entry E:\phonegap\cobraPost\platforms\android

                            \app\build\intermediates\transforms\stackFramesFixer\debug\9.jar --classpath_ent

                            ry E:\phonegap\cobraPost\platforms\android\app\build\intermediates\transforms\st

                            ackFramesFixer\debug\10.jar --classpath_entry E:\phonegap\cobraPost\platforms\an

                            droid\app\build\intermediates\transforms\stackFramesFixer\debug\11.jar --classpa

                            th_entry E:\phonegap\cobraPost\platforms\android\app\build\intermediates\transfo

                            rms\stackFramesFixer\debug\12.jar --classpath_entry E:\phonegap\cobraPost\platfo

                            rms\android\app\build\intermediates\transforms\stackFramesFixer\debug\13.jar --c

                            lasspath_entry E:\phonegap\cobraPost\platforms\android\app\build\intermediates\t

                            ransforms\stackFramesFixer\debug\14.jar --classpath_entry E:\phonegap\cobraPost\

                            platforms\android\app\build\intermediates\transforms\stackFramesFixer\debug\15.j

                            ar --classpath_entry E:\phonegap\cobraPost\platforms\android\app\build\intermedi

                            ates\transforms\stackFramesFixer\debug\16.jar --classpath_entry E:\phonegap\cobr

                            aPost\platforms\android\app\build\intermediates\transforms\stackFramesFixer\debu

                            g\17.jar --classpath_entry E:\phonegap\cobraPost\platforms\android\app\build\int

                            ermediates\transforms\stackFramesFixer\debug\18.jar --classpath_entry E:\phonega

                            p\cobraPost\platforms\android\app\build\intermediates\transforms\stackFramesFixe

                            r\debug\19.jar --classpath_entry E:\phonegap\cobraPost\platforms\android\app\bui

                            ld\intermediates\transforms\stackFramesFixer\debug\20.jar --classpath_entry E:\p

                            honegap\cobraPost\platforms\android\app\build\intermediates\transforms\stackFram

                            esFixer\debug\21.jar --classpath_entry E:\phonegap\cobraPost\platforms\android\a

                            pp\build\intermediates\transforms\stackFramesFixer\debug\22.jar --classpath_entr

                            y E:\phonegap\cobraPost\platforms\android\app\build\intermediates\transforms\sta

                            ckFramesFixer\debug\23.jar --classpath_entry E:\phonegap\cobraPost\platforms\and

                            roid\app\build\intermediates\transforms\stackFramesFixer\debug\24.jar --classpat

                            h_entry E:\phonegap\cobraPost\platforms\android\app\build\intermediates\transfor

                            ms\stackFramesFixer\debug\25.jar --classpath_entry E:\phonegap\cobraPost\platfor

                            ms\android\app\build\intermediates\transforms\stackFramesFixer\debug\26.jar --cl

                            asspath_entry E:\phonegap\cobraPost\platforms\android\app\build\intermediates\tr

                            ansforms\stackFramesFixer\debug\27.jar --classpath_entry E:\phonegap\cobraPost\p

                            latforms\android\app\build\intermediates\transforms\stackFramesFixer\debug\28.ja

                            r --classpath_entry E:\phonegap\cobraPost\platforms\android\app\build\intermedia

                            tes\transforms\stackFramesFixer\debug\29.jar --classpath_entry E:\phonegap\cobra

                            Post\platforms\android\app\build\intermediates\transforms\stackFramesFixer\debug

                            \30.jar --classpath_entry E:\phonegap\cobraPost\platforms\android\app\build\inte

                            rmediates\transforms\stackFramesFixer\debug\31.jar --classpath_entry E:\phonegap

                            \cobraPost\platforms\android\app\build\intermediates\transforms\stackFramesFixer

                            \debug\32.jar --classpath_entry E:\phonegap\cobraPost\platforms\android\app\buil

                            d\intermediates\transforms\stackFramesFixer\debug\33.jar --classpath_entry E:\ph

                            onegap\cobraPost\platforms\android\app\build\intermediates\transforms\stackFrame

                            sFixer\debug\34.jar --classpath_entry E:\phonegap\cobraPost\platforms\android\ap

                            p\build\intermediates\transforms\stackFramesFixer\debug\35.jar --classpath_entry

                            E:\phonegap\cobraPost\platforms\android\app\build\intermediates\transforms\stac

                            kFramesFixer\debug\36.jar --bootclasspath_entry C:\Users\Ritesh Singh\AppData\Lo

                            cal\Android\sdk\platforms\android-26\android.jar --bootclasspath_entry C:\Users\

                            Ritesh Singh\AppData\Local\Android\sdk\platforms\android-26\optional\org.apache.

                            http.legacy.jar --bootclasspath_entry C:\Program Files\Java\jdk1.8.0_162\jre\lib

                            \resources.jar --bootclasspath_entry C:\Program Files\Java\jdk1.8.0_162\jre\lib\

                            rt.jar --bootclasspath_entry C:\Program Files\Java\jdk1.8.0_162\jre\lib\jsse.jar

                            --bootclasspath_entry C:\Program Files\Java\jdk1.8.0_162\jre\lib\jce.jar --boot

                            classpath_entry C:\Program Files\Java\jdk1.8.0_162\jre\lib\charsets.jar --bootcl

                            asspath_entry C:\Program Files\Java\jdk1.8.0_162\jre\lib\jfr.jar --min_sdk_versi

                            on 16 --desugar_try_with_resources_if_needed --desugar_try_with_resources_omit_r

                            untime_classes}

                             

                             

                            * Try:

                            Run with --stacktrace option to get the stack trace. Run with --info or --debug

                            option to get more log output.

                             

                             

                            * Get more help at https://help.gradle.org

                             

                             

                            BUILD FAILED in 5s

                                at ChildProcess.whenDone (E:\phonegap\cobraPost\platforms\android\cordova\no

                            de_modules\cordova-common\src\superspawn.js:169:23)

                                at ChildProcess.emit (events.js:180:13)

                                at maybeClose (internal/child_process.js:936:16)

                                at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)

                             

                             

                            (node:3500) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This

                            error originated either by throwing inside of an async function without a catch

                            block, or by rejecting a promise which was not handled with .catch(). (rejection

                            id: 1)

                            (node:3500) [DEP0018] DeprecationWarning: Unhandled promise rejections are depre

                            cated. In the future, promise rejections that are not handled will terminate the

                            Node.js process with a non-zero exit code.

                             

                             

                            [phonegap] completed 'cordova build android --verbose --no-telemetry'

                             

                             

                            E:\phonegap\cobraPost>phonegap emulate android

                            [phonegap] executing 'cordova emulate android' ...

                            [phonegap] completed 'cordova emulate android --no-telemetry'

                             

                             

                            E:\phonegap\cobraPost>

                            • 14. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
                              jcesarmobile_ Adobe Community Professional

                              Sorry, I have no idea what the problem is now.
                              Try deleting android platform and adding it again.

                              • 15. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
                                pixellet5 Level 1

                                Yet, I am thankful that you took time out to reply me. I have figured out the problem tho. It's because of the push plugin. By changing the minsdkversion to 16 in any new apps created I am able to compile the build file, however once I install the plugin cordova-push-notifications everything stops. It doesn't work even after removing the plugin. Please can you share any online resource or any other best plugin for push notifications? this would be my last question and I won't bother you again. I promise jcesarmobile_

                                • 16. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
                                  jcesarmobile_ Adobe Community Professional

                                  I use phonega-plugin-push and it works fine, but current version doesn't work on PGB yet as it requires cordova-android 7.1.0
                                  There is also cordova-plugin-fcm

                                   

                                  I have sample apps for both of them

                                   

                                   

                                  GitHub - jcesarmobile/phonegap-plugin-push-sample

                                  GitHub - jcesarmobile/fcm-pgb-sample

                                  • 17. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
                                    pixellet5 Level 1

                                    hi,

                                     

                                    when u say PGB it means Phonegap Build (build.phonegap.com) or Phonegam Command Line?

                                    • 18. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
                                      jcesarmobile_ Adobe Community Professional

                                      Phonegap Build.

                                       

                                      Ah, you were using the CLI, so it shouldn't affect you, but you will have to add cordova-android 7.1.0 manually as the CLI will install 7.0.0 by default.

                                      • 20. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
                                        jcesarmobile_ Adobe Community Professional

                                        That's the CLI version, I mean the cordova-android version (the platform)

                                         

                                        Do a

                                        cordova platform rm android

                                        and then

                                        cordova platform add android@7.1.0

                                         

                                        If using Phonegap CLI, the command might need to start with phonegap (i.e. phonegap cordova rm android)

                                        • 21. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
                                          Ritz.Meritz Level 1

                                          Hi there! @jcesarmobile_

                                           

                                          I tried with both of your plugins and code samples...right after I have installed the plugin the app stops building.

                                           

                                          the errors .....

                                           

                                           

                                          FAILURE: Build failed with an exception.

                                           

                                           

                                          * What went wrong:

                                          Execution failed for task ':app:processDebugGoogleServices'.

                                          > File google-services.json is missing. The Google Services Plugin cannot functi

                                          on without it.

                                             Searched Location:

                                            E:\phonegap\cobraFinal\platforms\android\app\src\debug\google-services.json

                                            E:\phonegap\cobraFinal\platforms\android\app\google-services.json

                                           

                                           

                                          * Try:

                                          Run with --stacktrace option to get the stack trace. Run with --info or --debug

                                          option to get more log output.

                                           

                                           

                                          * Get more help at https://help.gradle.org

                                           

                                           

                                          BUILD FAILED in 1s

                                              at ChildProcess.whenDone (E:\phonegap\cobraFinal\platforms\android\cordova\n

                                          ode_modules\cordova-common\src\superspawn.js:169:23)

                                              at ChildProcess.emit (events.js:180:13)

                                              at maybeClose (internal/child_process.js:936:16)

                                              at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)

                                           

                                           

                                          (node:2464) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This

                                          error originated either by throwing inside of an async function without a catch

                                          block, or by rejecting a promise which was not handled with .catch(). (rejection

                                          id: 1)

                                          (node:2464) [DEP0018] DeprecationWarning: Unhandled promise rejections are depre

                                          cated. In the future, promise rejections that are not handled will terminate the

                                          Node.js process with a non-zero exit code.

                                           

                                           

                                          [phonegap] completed 'cordova build android --verbose --no-telemetry'

                                           

                                           

                                          E:\phonegap\cobraFinal>phonegap build android --verbose

                                          [phonegap] executing 'cordova build android --verbose' ...

                                          No scripts found for hook "before_build".

                                           

                                           

                                           

                                           

                                          No scripts found for hook "before_prepare".

                                           

                                           

                                           

                                           

                                          Checking config.xml and package.json for saved platforms that haven't been added

                                          to the project

                                           

                                           

                                           

                                           

                                          Config.xml and package.json platforms are the same. No pkg.json modification.

                                           

                                           

                                          Package.json and config.xml platforms are different. Updating config.xml with mo

                                          st current list of platforms.

                                           

                                           

                                          PlatformApi successfully found for platform android

                                           

                                           

                                           

                                           

                                          Android Studio project detected

                                           

                                           

                                           

                                           

                                          Checking config.xml for saved plugins that haven't been added to the project

                                           

                                           

                                           

                                           

                                          Checking for any plugins added to the project that have not been installed in an

                                          droid platform

                                           

                                           

                                           

                                           

                                          No differences found between plugins added to project and installed in android p

                                          latform. Continuing...

                                           

                                           

                                           

                                           

                                          Generating platform-specific config.xml from defaults for android at E:\phonegap

                                          \cobraFinal\platforms\android\app\src\main\res\xml\config.xml

                                           

                                           

                                           

                                           

                                          Merging project's config.xml into platform-specific android config.xml

                                           

                                           

                                           

                                           

                                          Merging and updating files from [www, platforms\android\platform_www] to platfor

                                          ms\android\app\src\main\assets\www

                                           

                                           

                                           

                                           

                                          Wrote out android application name "CobraPost" to E:\phonegap\cobraFinal\platfor

                                          ms\android\app\src\main\res\values\strings.xml

                                           

                                           

                                           

                                           

                                          android-versionCode not found in config.xml. Generating a code based on version

                                          in config.xml (1.0.0): 10000

                                           

                                           

                                           

                                           

                                          Wrote out Android package name "com.izone.cobrapost" to E:\phonegap\cobraFinal\p

                                          latforms\android\app\src\main\java\com\izone\cobrapost\MainActivity.java

                                           

                                           

                                           

                                           

                                          Updating icons at platforms\android\app\src\main\res

                                           

                                           

                                           

                                           

                                          Updating splash screens at platforms\android\app\src\main\res

                                           

                                           

                                           

                                           

                                          This app does not have additional resource files defined

                                           

                                           

                                          Prepared android project successfully

                                           

                                           

                                          No scripts found for hook "after_prepare".

                                           

                                           

                                           

                                           

                                          No scripts found for hook "before_compile".

                                           

                                           

                                           

                                           

                                          ANDROID_HOME=C:\Users\Ritesh Singh\AppData\Local\Android\sdk

                                           

                                           

                                          JAVA_HOME=C:\Program Files\java\jdk1.8.0_162

                                           

                                           

                                          studio

                                           

                                           

                                          Subproject Path: CordovaLib

                                           

                                           

                                          Subproject Path: app

                                           

                                           

                                          Running command: cmd "/s /c "E:\phonegap\cobraFinal\platforms\android\gradlew.ba

                                          t cdvBuildDebug -b E:\phonegap\cobraFinal\platforms\android\build.gradle -Dorg.g

                                          radle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m -Pandroid.useDeprecatedNdk=true

                                          ""

                                           

                                           

                                           

                                           

                                          publishNonDefault is deprecated and has no effect anymore. All variants are now

                                          published.

                                           

                                           

                                          The Task.leftShift(Closure) method has been deprecated and is scheduled to be re

                                          moved in Gradle 5.0. Please use Task.doLast(Action) instead.

                                                  at build_4uwrcpdeqkfkxxykfqvbn9ysv.run(E:\phonegap\cobraFinal\platforms\

                                          android\app\build.gradle:144)

                                           

                                           

                                          Configuration 'compile' in project ':app' is deprecated. Use 'implementation' in

                                          stead.

                                           

                                           

                                          registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollec

                                          tion)

                                           

                                           

                                          registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollec

                                          tion)

                                           

                                           

                                          :CordovaLib:preBuild UP-TO-DATE

                                          :CordovaLib:preDebugBuild UP-TO-DATE

                                          :CordovaLib:compileDebugAidl UP-TO-DATE

                                          :CordovaLib:compileDebugRenderscript

                                          UP-TO-DATE

                                          :CordovaLib:checkDebugManifest UP-TO-DATE

                                          :CordovaLib:generateDebugBuildConfig UP-TO-DATE

                                          :CordovaLib:prepareLintJar UP-TO-DATE

                                          :CordovaLib:generateDebugResValues UP-TO-DATE

                                          :CordovaLib:generateDebugResources UP-TO-DATE

                                          :CordovaLib:packageDebugResources UP-TO-DATE

                                          :CordovaLib:platformAttrExtractor UP-TO-DATE

                                          :CordovaLib:processDebugManifest UP-TO-DATE

                                           

                                           

                                          :CordovaLib:processDebugResources UP-TO-DATE

                                          :CordovaLib:generateDebugSources UP-TO-DATE

                                          :CordovaLib:javaPreCompileDebug UP-TO-DATE

                                          :CordovaLib:compileDebugJavaWithJavac UP-TO-DATE

                                          :CordovaLib:processDebugJavaRes NO-SOURCE

                                          :CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-T

                                          O-DATE

                                          :app:preBuild UP-TO-DATE

                                           

                                           

                                          :app:preDebugBuild

                                          UP-TO-DATE

                                          :app:compileDebugAidl UP-TO-DATE

                                          :CordovaLib:packageDebugRenderscript NO-SOURCE

                                           

                                           

                                          :app:compileDebugRenderscript UP-TO-DATE

                                          :app:checkDebugManifest UP-TO-DATE

                                          :app:generateDebugBuildConfig

                                          UP-TO-DATE

                                          :app:prepareLintJar UP-TO-DATE

                                          :app:generateDebugResValues UP-TO-DATE

                                          :app:generateDebugResources UP-TO-DATE

                                          :app:processDebugGoogleServices

                                          Parsing json file: E:\phonegap\cobraFinal\platforms\android\app\google-services.

                                          json

                                           

                                           

                                          :app:mergeDebugResources

                                           

                                           

                                          :app:createDebugCompatibleScreenManifests UP-TO-DATE

                                          :app:processDebugManifest

                                           

                                           

                                          :app:splitsDiscoveryTaskDebug UP-TO-DATE

                                          :app:processDebugResources

                                           

                                           

                                          :app:generateDebugSources

                                          :app:javaPreCompileDebug

                                           

                                           

                                           

                                           

                                          :app:compileDebugJavaWithJavac

                                          Note: Some input files use or override a deprecated API.

                                          Note: Recompile with -Xlint:deprecation for details.

                                          Note: Some input files use unchecked or unsafe operations.

                                          Note: Recompile with -Xlint:unchecked for details.

                                           

                                           

                                           

                                           

                                          :app:compileDebugNdk

                                          NO-SOURCE

                                          :app:compileDebugSources

                                          :CordovaLib:mergeDebugShaders UP-TO-DATE

                                           

                                           

                                          :CordovaLib:compileDebugShaders UP-TO-DATE

                                           

                                           

                                          :CordovaLib:generateDebugAssets UP-TO-DATE

                                           

                                           

                                          :CordovaLib:mergeDebugAssets UP-TO-DATE

                                          :app:mergeDebugShaders UP-TO-DATE

                                           

                                           

                                          :app:compileDebugShaders UP-TO-DATE

                                           

                                           

                                          :app:generateDebugAssets UP-TO-DATE

                                          :app:mergeDebugAssets

                                           

                                           

                                           

                                           

                                          :app:extractTryWithResourcesSupportJarDebug UP-TO-DATE

                                          :app:transformClassesWithStackFramesFixerForDebug

                                           

                                           

                                          :app:transformClassesWithDesugarForDebug

                                           

                                           

                                           

                                           

                                          :app:transformClassesWithDexBuilderForDebug

                                           

                                           

                                           

                                           

                                          :app:transformClassesWithMultidexlistForDebug

                                          FAILED

                                           

                                           

                                           

                                           

                                           

                                           

                                          FAILURE: Build failed with an exception.

                                           

                                           

                                           

                                           

                                          * What went wrong:

                                          Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.

                                          > java.io.IOException: Can't write [E:\phonegap\cobraFinal\platforms\android\app

                                          \build\intermediates\multi-dex\debug\componentClasses.jar] (Can't read [E:\phone

                                          gap\cobraFinal\platforms\android\app\build\intermediates\transforms\desugar\debu

                                          g\17.jar(;;;;;;**.class)] (Duplicate zip entry [17.jar:android/support/v4/media/

                                          RatingCompat$1.class]))

                                           

                                           

                                           

                                           

                                          39 actionable tasks: 11 executed, 28 up-to-date

                                           

                                           

                                          * Try:

                                          Run with --stacktrace option to get the stack trace. Run with --info or --debug

                                          option to get more log output.

                                           

                                           

                                          * Get more help at https://help.gradle.org

                                           

                                           

                                          BUILD FAILED in 19s

                                           

                                           

                                          Command finished with error code 1: cmd /s /c "E:\phonegap\cobraFinal\platforms\

                                          android\gradlew.bat cdvBuildDebug -b E:\phonegap\cobraFinal\platforms\android\bu

                                          ild.gradle -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m -Pandroid.use

                                          DeprecatedNdk=true"

                                           

                                           

                                           

                                           

                                          (node:3560) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with ex

                                          it 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 unchecked or unsafe operations.

                                          Note: Recompile with -Xlint:unchecked for details.

                                           

                                           

                                          FAILURE: Build failed with an exception.

                                           

                                           

                                          * What went wrong:

                                          Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.

                                          > java.io.IOException: Can't write [E:\phonegap\cobraFinal\platforms\android\app

                                          \build\intermediates\multi-dex\debug\componentClasses.jar] (Can't read [E:\phone

                                          gap\cobraFinal\platforms\android\app\build\intermediates\transforms\desugar\debu

                                          g\17.jar(;;;;;;**.class)] (Duplicate zip entry [17.jar:android/support/v4/media/

                                          RatingCompat$1.class]))

                                           

                                           

                                          * Try:

                                          Run with --stacktrace option to get the stack trace. Run with --info or --debug

                                          option to get more log output.

                                           

                                           

                                          * Get more help at https://help.gradle.org

                                           

                                           

                                          BUILD FAILED in 19s

                                              at ChildProcess.whenDone (E:\phonegap\cobraFinal\platforms\android\cordova\n

                                          ode_modules\cordova-common\src\superspawn.js:169:23)

                                              at ChildProcess.emit (events.js:180:13)

                                              at maybeClose (internal/child_process.js:936:16)

                                              at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)

                                           

                                           

                                          (node:3560) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This

                                          error originated either by throwing inside of an async function without a catch

                                          block, or by rejecting a promise which was not handled with .catch(). (rejection

                                          id: 1)

                                          (node:3560) [DEP0018] DeprecationWarning: Unhandled promise rejections are depre

                                          cated. In the future, promise rejections that are not handled will terminate the

                                          Node.js process with a non-zero exit code.

                                           

                                           

                                          [phonegap] completed 'cordova build android --verbose --no-telemetry'

                                           

                                           

                                          E:\phonegap\cobraFinal>

                                           

                                           

                                          E:\phonegap\cobraFinal>

                                          • 22. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
                                            jcesarmobile_ Adobe Community Professional

                                            You are building locally, right?

                                            Which CLI version are you using?
                                            looks like the resource-file tag I have in the config.xml for copying the google-services.json files is not working for you, so you might have an old CLI that doesn't support it.

                                            • 23. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
                                              Ritz.Meritz Level 1

                                              yup...building locally

                                               

                                              CLI version (phonegap) = 8.0

                                              Android version = 7.0

                                              • 24. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
                                                jcesarmobile_ Adobe Community Professional

                                                No idea why you don't get the files then, with that version it should work.

                                                • 25. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
                                                  Ritz.Meritz Level 1

                                                  a funny thing just happened...i removed phonegap and reinstalled it using the following command

                                                   

                                                  npm install -g phonegap@latest

                                                   

                                                  After that i created a new project. Then i deleted the following line from the config file

                                                  <preference name="android-minSdkVersion" value="14" />

                                                   

                                                  And i ran the build command....It did not work

                                                   

                                                  Then i added the line back changed the minSdkVersion value to 16 (as it was working fine previously before uninstalling)

                                                  guess what...it did not work either

                                                   

                                                  Then i Changed the value to 19 ...and it worked!

                                                   

                                                  Now with the push notifications...i am trying your samples and those plugins once again....i hope it works now... Thanks for your help

                                                  • 26. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
                                                    Ritz.Meritz Level 1

                                                    wow...now i am getting the following errors after successfully installing the plugin cordova-plugin-fcm

                                                     

                                                    For more details visit https://github.com/fechanique/cordova-plugin-fcm

                                                    Saved plugin info for "cordova-plugin-fcm" to config.xml

                                                     

                                                    E:\phonegap\cobra2>phonegap build android --verbose

                                                    [phonegap] executing 'cordova build android --verbose' ...

                                                    No scripts found for hook "before_build".

                                                    No scripts found for hook "before_prepare".

                                                     

                                                    Checking config.xml and package.json for saved platforms that haven't been added to the project

                                                     

                                                    Config.xml and package.json platforms are the same. No pkg.json modification.

                                                     

                                                    Package.json and config.xml platforms are different. Updating config.xml with mo

                                                    st current list of platforms.

                                                     

                                                    PlatformApi successfully found for platform android

                                                     

                                                    Android Studio project detected

                                                     

                                                    Checking config.xml for saved plugins that haven't been added to the project

                                                     

                                                    Checking for any plugins added to the project that have not been installed in android platform

                                                     

                                                    No differences found between plugins added to project and installed in android platform. Continuing...

                                                     

                                                    Generating platform-specific config.xml from defaults for android at E:\phonegap\cobra2\platforms\android\app\src\main\res\xml\config.xml

                                                     

                                                    Merging project's config.xml into platform-specific android config.xml

                                                     

                                                    Merging and updating files from [www, platforms\android\platform_www] to platforms\android\app\src\main\assets\www

                                                     

                                                    Wrote out android application name "cobra2" to E:\phonegap\cobra2\platforms\android\app\src\main\res\values\strings.xml

                                                     

                                                    android-versionCode not found in config.xml. Generating a code based on version in config.xml (1.0.0): 10000

                                                     

                                                    Wrote out Android package name "com.izone.cobrapost" to E:\phonegap\cobra2\platforms\android\app\src\main\java\com\izone\cobrapost\MainActivity.j ava

                                                     

                                                    Updating icons at platforms\android\app\src\main\res

                                                    Updating splash screens at platforms\android\app\src\main\res

                                                     

                                                    This app does not have additional resource files defined

                                                    Prepared android project successfully

                                                    Executing script found in plugin cordova-plugin-fcm for hook "after_prepare": pl

                                                    ugins\cordova-plugin-fcm\scripts\fcm_config_files_process.js

                                                     

                                                     

                                                    (node:1016) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]:

                                                    The "chunk" argument must be one of type string or Buffer

                                                        at validChunk (_stream_writable.js:253:10)

                                                        at Socket.Writable.write (_stream_writable.js:288:21)

                                                        at Socket.stream.write (C:\Users\Ritesh Singh\AppData\Roaming\npm\node_modules\phonegap\node_modules\ansi\lib\newlines.js:36:21)

                                                        at Object.<anonymous> (E:\phonegap\cobra2\plugins\cordova-plugin-fcm\scripts

                                                    \fcm_config_files_process.js:80:24)

                                                        at Module._compile (module.js:649:30)

                                                        at Object.Module._extensions..js (module.js:660:10)

                                                        at Module.load (module.js:561:32)

                                                        at tryModuleLoad (module.js:501:12)

                                                        at Function.Module._load (module.js:493:3)

                                                        at Module.require (module.js:593:17)

                                                     

                                                    (node:1016) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This

                                                    error originated either by throwing inside of an async function without a catch

                                                    block, or by rejecting a promise which was not handled with .catch(). (rejection

                                                    id: 1)

                                                    (node:1016) [DEP0018] DeprecationWarning: Unhandled promise rejections are depre

                                                    cated. In the future, promise rejections that are not handled will terminate the

                                                    Node.js process with a non-zero exit code.

                                                     

                                                    [phonegap] completed 'cordova build android --verbose --no-telemetry'

                                                    • 27. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
                                                      Ritz.Meritz Level 1

                                                      hi,

                                                       

                                                      thanks for helping me so far... I am using your sample code and the plugin phonegap-plugin-push and it seems to be working

                                                       

                                                      -I am able to build the apk

                                                      -I am also able to get the token which is (from one of the devices)

                                                      fScLbvQvneU:APA91bGTzHMBOtO8DtDRH3We38etNSaz5rPvX4B2-IdjtxcvIJSr1zeGRtCPDlmaV1sWkG-twYqj8u Yfs6y7T_i7lcf9Us7SCFrtQxrGt7QfbYAIyZSMEx8uX6ZstWN9u-RJw8PydVF5

                                                       

                                                      but I am not able to send the notification to this token it shows me the below error

                                                      The request's Authentication (Server-) Key contained an invalid or malformed FCM-Token (a.k.a. IID-Token).

                                                      Error 401

                                                       

                                                      also, below is my code

                                                       

                                                       

                                                      receivedEvent: function(id) {

                                                              console.log('Received Event: ' + id);

                                                              var push = PushNotification.init({

                                                                  android: {

                                                                  },

                                                                  ios: {

                                                                      alert: "true",

                                                                      badge: true,

                                                                      sound: 'false'

                                                                  }

                                                              });

                                                       

                                                       

                                                              push.on('registration', function (data) {

                                                      alert(data.registrationId);

                                                                  $("#registration").val(data.registrationId);

                                                                  console.log(data.registrationType);

                                                                  var regId = document.getElementById("registration").appendChild(document.createTextNode(data.registra tionId));

                                                      //navigator.notification.alert(regId);

                                                      //regFcmId(regId);

                                                      regFcmId(regId);

                                                              });

                                                       

                                                       

                                                      function regFcmId(reg){

                                                       

                                                      var unid = device.uuid;

                                                       

                                                      var regId = $("#registration").val();

                                                       

                                                      //alert(regId);

                                                      $.ajax({

                                                         type: "POST",

                                                         url: "http://cobrapost1.adhocteam.com/app_data/regFcm.php",

                                                         dataType:'json',

                                                         data:{unid:unid,fcm:regId}, // serializes the form's elements.

                                                         success: function(response)

                                                         {

                                                        

                                                         }

                                                        

                                                         });

                                                       

                                                      }

                                                       

                                                       

                                                              push.on('notification', function (data) {

                                                                  var ul = document.getElementById("pushList");

                                                                  var li = document.createElement("li");

                                                                  li.appendChild(document.createTextNode(data.message));

                                                                  ul.appendChild(li);

                                                                  console.log(data.message);

                                                                  console.log(data.title);

                                                                  console.log(data.count);

                                                                  console.log(data.sound);

                                                                  console.log(data.image);

                                                                  console.log(data.additionalData);

                                                              });

                                                          }

                                                      };

                                                       

                                                       

                                                      app.initialize();

                                                       

                                                       

                                                       

                                                       

                                                      what am i doing wrong?

                                                      • 28. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
                                                        jcesarmobile_ Adobe Community Professional

                                                        Try removing the fScLbvQvneU: part

                                                         

                                                        Also, make sure you are using your own google-services.json and GoogleService-Info.plist instead of mine

                                                        • 29. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
                                                          Ritz.Meritz Level 1

                                                          Hi...thanks for replying

                                                           

                                                          Yes I did that..I have been trying all sort of ways... I am using my own google-services.json file and my project does not have GoogleService-Info.plist file ...I tried the token with and without fScLbvQvneU: yet it shows me the same error...

                                                           

                                                          I am glad tho as now atleast the plugin is getting installed and even the build is compiling... I think the server API key that I am using isn't correct or from the same project so today I will be trying that once I reach my desk. Will update you once I am through

                                                          • 30. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
                                                            jcesarmobile_ Adobe Community Professional

                                                            Try sending the push message from firebase console, so you make sure the API key isn't the problem.
                                                            I got a different error when I removed that part (but it's because I used your token, not one of mine, and the error is related to not registered token)

                                                            1 person found this helpful
                                                            • 31. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
                                                              Ritz.Meritz Level 1

                                                              it's working fine now!!

                                                               

                                                              the token was fine...fKQEy7rWKhA:APA91bEWRP9H9EDoKrS-tqcMj0fNdEchrrkeX3R05kdxzciSQ3w0Dx_pdvjb9ugOP9l7WF Lwcs4AFE80lBHRJ7iR8mAowWqqrfgTPWkrzsh-4UcWjrrM8DKTlNqIARDmxao-eUy2QvTj

                                                               

                                                              the problem was with the api key i replaced it with Legacy Server Key (earlier it was server key) from my firebase console...

                                                               

                                                              now the only problem is how do i wrap the text in the notification body text...as beyond certain characters of the notification body it hides...i cant type 100 characters as notification body? do you have any link whether how do I open a specific html page inside my app once the notification is clicked?

                                                               

                                                              Thanks a lot!

                                                              • 32. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
                                                                Ritz.Meritz Level 1

                                                                I just upgraded my JDK from 8 to 10 and now the build won't compile please can you help?

                                                                 

                                                                 

                                                                it shows the following error

                                                                 

                                                                 

                                                                E:\phonegap\amy3>phonegap build android --verbose

                                                                [phonegap] executing 'cordova build android --verbose' ...

                                                                No scripts found for hook "before_build".

                                                                 

                                                                 

                                                                 

                                                                 

                                                                No scripts found for hook "before_prepare".

                                                                 

                                                                 

                                                                 

                                                                 

                                                                Checking config.xml and package.json for saved platforms that haven't been added

                                                                to the project

                                                                 

                                                                 

                                                                 

                                                                 

                                                                Config.xml and package.json platforms are the same. No pkg.json modification.

                                                                 

                                                                 

                                                                Package.json and config.xml platforms are different. Updating config.xml with mo

                                                                st current list of platforms.

                                                                 

                                                                 

                                                                PlatformApi successfully found for platform android

                                                                 

                                                                 

                                                                 

                                                                 

                                                                Android Studio project detected

                                                                 

                                                                 

                                                                 

                                                                 

                                                                Checking config.xml for saved plugins that haven't been added to the project

                                                                 

                                                                 

                                                                 

                                                                 

                                                                Checking for any plugins added to the project that have not been installed in an

                                                                droid platform

                                                                 

                                                                 

                                                                 

                                                                 

                                                                No differences found between plugins added to project and installed in android p

                                                                latform. Continuing...

                                                                 

                                                                 

                                                                 

                                                                 

                                                                Generating platform-specific config.xml from defaults for android at E:\phonegap

                                                                \amy3\platforms\android\app\src\main\res\xml\config.xml

                                                                 

                                                                 

                                                                 

                                                                 

                                                                Merging project's config.xml into platform-specific android config.xml

                                                                 

                                                                 

                                                                 

                                                                 

                                                                Merging and updating files from [www, platforms\android\platform_www] to platfor

                                                                ms\android\app\src\main\assets\www

                                                                 

                                                                 

                                                                 

                                                                 

                                                                Wrote out android application name "amy3" to E:\phonegap\amy3\platforms\android\

                                                                app\src\main\res\values\strings.xml

                                                                 

                                                                 

                                                                 

                                                                 

                                                                android-versionCode not found in config.xml. Generating a code based on version

                                                                in config.xml (1.0.0): 10000

                                                                 

                                                                 

                                                                 

                                                                 

                                                                Wrote out Android package name "com.meritz.AMYINDIA" to E:\phonegap\amy3\platfor

                                                                ms\android\app\src\main\java\com\meritz\AMYINDIA\MainActivity.java

                                                                 

                                                                 

                                                                 

                                                                 

                                                                Updating icons at platforms\android\app\src\main\res

                                                                 

                                                                 

                                                                 

                                                                 

                                                                Updating splash screens at platforms\android\app\src\main\res

                                                                 

                                                                 

                                                                 

                                                                 

                                                                This app does not have additional resource files defined

                                                                 

                                                                 

                                                                 

                                                                 

                                                                Prepared android project successfully

                                                                 

                                                                 

                                                                 

                                                                 

                                                                No scripts found for hook "after_prepare".

                                                                 

                                                                 

                                                                 

                                                                 

                                                                No scripts found for hook "before_compile".

                                                                 

                                                                 

                                                                 

                                                                 

                                                                ANDROID_HOME=C:\Users\Ritesh Singh\AppData\Local\Android\sdk

                                                                 

                                                                 

                                                                JAVA_HOME=C:\Program Files\java\jdk-10.0.1

                                                                 

                                                                 

                                                                (node:3876) UnhandledPromiseRejectionWarning: CordovaError: Requirements check f

                                                                ailed for JDK 1.8 or greater

                                                                    at E:\phonegap\amy3\platforms\android\cordova\lib\check_reqs.js:370:19

                                                                    at _fulfilled (E:\phonegap\amy3\platforms\android\cordova\node_modules\q\q.j

                                                                s:854:54)

                                                                    at self.promiseDispatch.done (E:\phonegap\amy3\platforms\android\cordova\nod

                                                                e_modules\q\q.js:883:30)

                                                                    at Promise.promise.promiseDispatch (E:\phonegap\amy3\platforms\android\cordo

                                                                va\node_modules\q\q.js:816:13)

                                                                    at E:\phonegap\amy3\platforms\android\cordova\node_modules\q\q.js:624:44

                                                                    at runSingle (E:\phonegap\amy3\platforms\android\cordova\node_modules\q\q.js

                                                                :137:13)

                                                                    at flush (E:\phonegap\amy3\platforms\android\cordova\node_modules\q\q.js:125

                                                                :13)

                                                                    at process._tickCallback (internal/process/next_tick.js:112:11)

                                                                 

                                                                 

                                                                (node:3876) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This

                                                                error originated either by throwing inside of an async function without a catch

                                                                block, or by rejecting a promise which was not handled with .catch(). (rejection

                                                                id: 1)

                                                                (node:3876) [DEP0018] DeprecationWarning: Unhandled promise rejections are depre

                                                                cated. In the future, promise rejections that are not handled will terminate the

                                                                Node.js process with a non-zero exit code.

                                                                 

                                                                 

                                                                [phonegap] completed 'cordova build android --verbose --no-telemetry'

                                                                 

                                                                 

                                                                E:\phonegap\amy3>

                                                                • 33. Re: phonegap build android --debug shows no errors but generates no build...all of a sudden three days agi
                                                                  jcesarmobile_ Adobe Community Professional

                                                                  Android development requires JDK 8, JDK 10 won't work. Reinstall JDK 8