1 Reply Latest reply on Apr 5, 2017 12:04 PM by ryanskihead

    Faild compling Andriod IP

    rawanda70877183

        Dears,

       

      I purchased an APP, which i made some minor changes.  After compiling on PhoneGap i get following error result.  can you please help me to resolve this issue?

       

      Build Date: 2017-04-05 09:32:06 +0000

      Subproject Path: CordovaLib

      Configuration on demand is an incubating feature.

      Incremental java compilation is an incubating feature.

      :preBuild UP-TO-DATE

      :preReleaseBuild UP-TO-DATE

      :checkReleaseManifest

      :preDebugBuild UP-TO-DATE

      :CordovaLib:preBuild UP-TO-DATE

      :CordovaLib:preDebugBuild UP-TO-DATE

      :CordovaLib:checkDebugManifest

      :CordovaLib:prepareDebugDependencies

      :CordovaLib:compileDebugAidl

      :CordovaLib:compileDebugNdk UP-TO-DATE

      :CordovaLib:compileLint

      :CordovaLib:copyDebugLint UP-TO-DATE

      :CordovaLib:mergeDebugShaders

      :CordovaLib:compileDebugShaders

      :CordovaLib:generateDebugAssets

      :CordovaLib:mergeDebugAssets

      :CordovaLib:mergeDebugProguardFiles

      :CordovaLib:packageDebugRenderscript UP-TO-DATE

      :CordovaLib:compileDebugRenderscript

      :CordovaLib:generateDebugResValues

      :CordovaLib:generateDebugResources

      :CordovaLib:packageDebugResources

      :CordovaLib:processDebugManifest

      :CordovaLib:generateDebugBuildConfig

      :CordovaLib:processDebugResources

      :CordovaLib:generateDebugSources

      :CordovaLib:incrementalDebugJavaCompilationSafeguard

      :CordovaLib:compileDebugJavaWithJavac

      :CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

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

      Note: Recompile with -Xlint:deprecation for details.

      :CordovaLib:processDebugJavaRes UP-TO-DATE

      :CordovaLib:transformResourcesWithMergeJavaResForDebug

      :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug

      :CordovaLib:mergeDebugJniLibFolders

      :CordovaLib:transformNative_libsWithMergeJniLibsForDebug

      :CordovaLib:transformNative_libsWithSyncJniLibsForDebug

      :CordovaLib:bundleDebug

      :CordovaLib:preReleaseBuild UP-TO-DATE

      :CordovaLib:checkReleaseManifest

      :CordovaLib:prepareReleaseDependencies

      :CordovaLib:compileReleaseAidl

      :CordovaLib:compileReleaseNdk UP-TO-DATE

      :CordovaLib:copyReleaseLint UP-TO-DATE

      :CordovaLib:mergeReleaseShaders

      :CordovaLib:compileReleaseShaders

      :CordovaLib:generateReleaseAssets

      :CordovaLib:mergeReleaseAssets

      :CordovaLib:mergeReleaseProguardFiles

      :CordovaLib:packageReleaseRenderscript UP-TO-DATE

      :CordovaLib:compileReleaseRenderscript

      :CordovaLib:generateReleaseResValues

      :CordovaLib:generateReleaseResources

      :CordovaLib:packageReleaseResources

      :CordovaLib:processReleaseManifest

      :CordovaLib:generateReleaseBuildConfig

      :CordovaLib:processReleaseResources

      :CordovaLib:generateReleaseSources

      :CordovaLib:incrementalReleaseJavaCompilationSafeguard

      :CordovaLib:compileReleaseJavaWithJavac

      :CordovaLib:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

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

      Note: Recompile with -Xlint:deprecation for details.

      :CordovaLib:processReleaseJavaRes UP-TO-DATE

      :CordovaLib:transformResourcesWithMergeJavaResForRelease

      :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease

      :CordovaLib:mergeReleaseJniLibFolders

      :CordovaLib:transformNative_libsWithMergeJniLibsForRelease

      :CordovaLib:transformNative_libsWithSyncJniLibsForRelease

      :CordovaLib:bundleRelease

      :prepareComAndroidSupportSupportV132340Library

      :prepareComAndroidSupportSupportV42400Library

      :prepareComGoogleAndroidGmsPlayServicesBase1020Library

      :prepareComGoogleAndroidGmsPlayServicesBasement1020Library

      :prepareComGoogleAndroidGmsPlayServicesGcm1020Library

      :prepareComGoogleAndroidGmsPlayServicesIid1020Library

      :prepareComGoogleAndroidGmsPlayServicesLocation980Library

      :prepareComGoogleAndroidGmsPlayServicesMaps980Library

      :prepareComGoogleAndroidGmsPlayServicesTasks1020Library

      :prepareProjectCordovaLibUnspecifiedReleaseLibrary

      :prepareReleaseDependencies

      :compileReleaseAidl

      :compileReleaseRenderscript

      :generateReleaseBuildConfig

      :generateReleaseResValues

      :generateReleaseResources

      :mergeReleaseResources

      :processReleaseManifest

      :processReleaseResources

      :generateReleaseSources

      :incrementalReleaseJavaCompilationSafeguard

      :compileReleaseJavaWithJavac

      :compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

      /project/src/plugin/google/maps/PluginCircle.java:28: error: cannot access AbstractSafeParcelable

        circleOptions.center(new LatLng(center.getDouble("lat"), center.getDouble("lng")));

        ^

        class file for com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable not found

      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.

      1 error

      :compileReleaseJavaWithJavac FAILED

       

      FAILURE: Build failed with an exception.

       

      * What went wrong:

      Execution failed for task ':compileReleaseJavaWithJavac'.

      > Compilation failed; see the compiler error output for details.

       

      * Try:

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

       

      BUILD FAILED

       

      Total time: 3.173 secs

      Error: /project/gradlew: Command failed with exit code 1 Error output:

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

      Note: Recompile with -Xlint:deprecation for details.

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

      Note: Recompile with -Xlint:deprecation for details.

      /project/src/plugin/google/maps/PluginCircle.java:28: error: cannot access AbstractSafeParcelable

        circleOptions.center(new LatLng(center.getDouble("lat"), center.getDouble("lng")));

        ^

        class file for com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable not found

      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.

      1 error

       

      FAILURE: Build failed with an exception.

       

      * What went wrong:

      Execution failed for task ':compileReleaseJavaWithJavac'.

      > Compilation failed; see the compiler error output for details.

       

      * Try:

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

        at ChildProcess.whenDone (/project/cordova/node_modules/cordova-common/src/superspawn.js:169:23)

        at emitTwo (events.js:106:13)

        at ChildProcess.emit (events.js:191:7)

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

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

        • 1. Re: Faild compling Andriod IP
          ryanskihead Adobe Employee

          Looks like cordova-plugin-googlemaps and phonegap-plugin-push are dependent upon different versions of the android play services / android support libraries. Try this combination:

           

          <plugin name="phonegap-plugin-push" source="npm" spec="1.5.3"/>

          <plugin name="cordova-plugin-googlemaps" spec="~1.3.0">

          <param name="API_KEY_FOR_ANDROID" value="XXX"/>

          <param name="API_KEY_FOR_IOS" value="XXX"/>

          </plugin>

           

          Also note the gap: xml namespace is no longer needed on the plugins in your config.xml.