build fails with ant

  • 1
  • Problem
  • Updated 4 years ago
Hi all;
I have a build which fails with ant but succeeds with gradle.
my app id is 544921
can you please explain?
below is my config xml and log from the ant build after it fails:


<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
xmlns:android = "http://schemas.android.com/apk/res/android"
id = "..."
versionCode="..."
version = "...">
<name>...</name>
<description>...</description>
<author href="..." email="...">...</author>
<gap:platform name="ios" />
<gap:platform name="android" />

<preference name="permissions" value="none"/>
<preference name="android-build-tool" value="ant" />
<preference name='phonegap-version' value='cli-6.0.0'/>
<preference name="orientation" value="portrait" />
<preference name="target-device" value="universal" />
<preference name="fullscreen" value="true" />
<preference name="webviewbounce" value="true" />
<preference name="prerendered-icon" value="true" />
<preference name="stay-in-webview" value="false" />
<preference name="ios-statusbarstyle" value="default" />
<preference name="detect-data-types" value="true" />
<preference name="exit-on-suspend" value="false" />
<preference name="show-splash-screen-spinner" value="true" />
<preference name="auto-hide-splash-screen" value="false" />
<preference name="disable-cursor" value="true" />
<!-- splash screen /-->
<preference name="AutoHideSplashScreen" value="false" />
<preference name="SplashScreenDelay" value="4000" />

<gap:config-file platform="ios" parent="CFBundleShortVersionString">
<string>218</string>
</gap:config-file>
<gap:config-file platform="ios" parent="UIStatusBarHidden">
<true/>
</gap:config-file>
<gap:config-file platform="ios" parent="UIViewControllerBasedStatusBarAppearance">
<false/>
</gap:config-file>
<!--gap:config-file platform="android" parent="/manifest" mode="merge">
<uses-permission name="android.permission.READ_EXTERNAL_STORAGE" />
</gap:config-file-->

<!--feature name="http://api.phonegap.com/1.0/file"/-->
<!--feature name="http://api.phonegap.com/1.0/network"/-->
<icon src="configGap/icons/29x29.png" gap:platform="ios" width="29" height="29" />
<!-- many more icons... -->
<icon src="configGap/icons/64x64.png" />
<gap:splash src="configGap/splashscreens/320x480.png" width="320" height="480" />
<!-- many more splash screens... -->
<gap:splash src="splash.png" />

<gap:plugin name="cordova-plugin-whitelist" source="npm" version="1.2.1"/>
<gap:plugin name="cordova-plugin-device" source="npm" version="1.1.1"/>
<gap:plugin name="cordova-plugin-vibration" source="npm" version="2.1.0"/>
<gap:plugin name="cordova-plugin-dialogs" source="npm" version="1.2.0"/>
<gap:plugin name="cordova-plugin-splashscreen" source="npm" version="3.0.0"/>
<gap:plugin name="cordova-plugin-statusbar" source="npm" version="2.1.1"/>
<gap:plugin name="phonegap-plugin-push" source="npm" version="1.5.3"/>

<allow-navigation href="*" />
<allow-intent href="*" />
<access origin="*" />
</widget>



Build Date: 2016-03-10 09:34:25 +0000
:preBuild UP-TO-DATE
:preReleaseBuild UP-TO-DATE
:checkReleaseManifest
:preDebugBuild UP-TO-DATE
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugRenderscript
:CordovaLib:generateDebugResValues
:CordovaLib:generateDebugResources
:CordovaLib:packageDebugResources
:CordovaLib:compileDebugAidl
:CordovaLib:generateDebugBuildConfig
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets
:CordovaLib:processDebugManifest
:CordovaLib:processDebugResources
:CordovaLib:generateDebugSources
:CordovaLib:compileDebugJavaWithJavacNote: 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:compileReleaseNdk UP-TO-DATE
:CordovaLib:copyReleaseLint UP-TO-DATE
:CordovaLib:mergeReleaseProguardFiles
:CordovaLib:packageReleaseRenderscript UP-TO-DATE
:CordovaLib:checkReleaseManifest
:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseRenderscript
:CordovaLib:generateReleaseResValues
:CordovaLib:generateReleaseResources
:CordovaLib:packageReleaseResources
:CordovaLib:compileReleaseAidl
:CordovaLib:generateReleaseBuildConfig
:CordovaLib:generateReleaseAssets UP-TO-DATE
:CordovaLib:mergeReleaseAssets
:CordovaLib:processReleaseManifest
:CordovaLib:processReleaseResources
:CordovaLib:generateReleaseSources
:CordovaLib:compileReleaseJavaWithJavacNote: 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
:prepareComAndroidSupportSupportV132310Library
:prepareComAndroidSupportSupportV42310Library
:prepareComGoogleAndroidGmsPlayServicesBase840Library
:prepareComGoogleAndroidGmsPlayServicesBasement840Library
:prepareComGoogleAndroidGmsPlayServicesGcm840Library
:prepareComGoogleAndroidGmsPlayServicesMeasurement840Library
:prepareProjectCordovaLibUnspecifiedReleaseLibrary
:prepareReleaseDependencies
:compileReleaseAidl
:compileReleaseRenderscript
:generateReleaseBuildConfig
:generateReleaseAssets UP-TO-DATE
:mergeReleaseAssets
:generateReleaseResValues
:generateReleaseResources
:mergeReleaseResources
:processReleaseManifest
:processReleaseResources
:generateReleaseSources
:compileReleaseJavaWithJavacNote: 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.

:compileReleaseNdk UP-TO-DATE
:compileReleaseSources
:lintVitalRelease
:transformClassesWithDexForRelease
:mergeReleaseJniLibFolders
:transformNative_libsWithMergeJniLibsForRelease
:processReleaseJavaRes UP-TO-DATE
:transformResourcesWithMergeJavaResForRelease
:packageRelease
:assembleRelease
:cdvBuildRelease

BUILD SUCCESSFUL

Total time: 47.789 secs
Built the following apk(s):
/project/build/outputs/apk/project-release-unsigned.apk
Photo of gkatz

gkatz

  • 186 Posts
  • 5 Reply Likes

Posted 4 years ago

  • 1
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
It doesn't fail, but project-release-unsigned.apk is strange.
How did you sign this build version? Is the certificate still valid?
Photo of gkatz

gkatz

  • 186 Posts
  • 5 Reply Likes
if I remove the ant preference and build with gradle everything works fine.
certificate is valid...
again, the PGB portal shows that the build fails (red button of error) and the log is attached.
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
You have 'phonegap-plugin-push', which requires the gradle engine.
Photo of gkatz

gkatz

  • 186 Posts
  • 5 Reply Likes
well thats a bummer.
so what am I to do?
i have to update my google app...
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Have you considered using a previous version of the plugin, or an entirely different plugin?
Photo of gkatz

gkatz

  • 186 Posts
  • 5 Reply Likes
well the plugin is a completely different saga.
it took me a long time to find it an understand that it is the de-facto push plugin at the moment...
so this is the one I use...
PGB guys please help with a bypass. or at least provide a doc that explains the outcome of whats going on.