- This topic has 6 replies, 5 voices, and was last updated 8 years ago by support-swapna.
-
AuthorPosts
-
kenshinlinParticipanthi,
I use PhoneGap 5.3.8 to build android app, but happen “signing application failed : cannot locate the PhoneGap build output TOMOE-debug.apk”see log as below
=======================================================================
Build of TOMOE started for android
executing ‘cordova platform add –save android’…
Adding android project…Running command: cmd “/s /c “”C:\Documents and Settings\kenshinlin\.cordova\lib\npm_cache\cordova-android\4.1.1\package\bin\create.bat” “C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\android” tomoe.id TOMOE –cli””
Creating Cordova project for the Android platform:
Path: platforms\android
Package: tomoe.id
Name: TOMOE
Activity: MainActivity
Android target: android-22Copying template files…
Android project created with cordova-android@4.1.1
–save flag or autosave detected
Saving android@~4.1.1 into config.xml file …
Running command: “C:\Program Files\nodejs\node.exe” “C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\hooks\after_platform_add\copy_icons_splash.js” “C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE”
source : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\www\splash.png
destdir : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\android\res\drawable
source : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\www\splash.png
destdir : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\ios\TOMOE\Resources\splash
source : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\www\icon.png
destdir : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\android\res\drawable
source : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\www\icon.png
destdir : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\ios\TOMOE\Resources\icons
source : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\www\res\icon\android\icon-36-ldpi.png
destdir : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\android\res\drawable-ldpi
source : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\www\res\icon\android\icon-48-mdpi.png
destdir : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\android\res\drawable-mdpi
source : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\www\res\icon\android\icon-72-hdpi.png
destdir : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\android\res\drawable-hdpi
source : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\www\res\icon\android\icon-96-xhdpi.png
destdir : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\android\res\drawable-xhdpisource : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\www\res\screen\android\screen-ldpi-portrait.png
destdir : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\android\res\drawable-port-ldpi
source : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\www\res\screen\android\screen-mdpi-portrait.png
destdir : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\android\res\drawable-port-mdpi
source : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\www\res\screen\android\screen-hdpi-portrait.png
destdir : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\android\res\drawable-port-hdpi
source : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\www\res\screen\android\screen-xhdpi-portrait.png
destdir : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\android\res\drawable-port-xhdpi
source : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\www\res\icon\ios\icon-57.png
destdir : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\ios\TOMOE\Resources\icons
source : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\www\res\icon\ios\icon-72.png
destdir : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\ios\TOMOE\Resources\icons
source : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\www\res\icon\ios\icon-57-2x.png
destdir : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\ios\TOMOE\Resources\icons
source : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\www\res\icon\ios\icon-72-2x.png
destdir : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\ios\TOMOE\Resources\icons
source : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\www\res\screen\ios\screen-iphone-portrait.png
destdir : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\ios\TOMOE\Resources\splash
source : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\www\res\screen\ios\screen-iphone-portrait-2x.png
destdir : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\ios\TOMOE\Resources\splash
source : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\www\res\screen\ios\screen-iphone-portrait-568h-2x.png
destdir : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\ios\TOMOE\Resources\splash
source : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\www\res\screen\ios\screen-ipad-portrait.png
destdir : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\ios\TOMOE\Resources\splash
source : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\www\res\screen\ios\screen-ipad-landscape.png
destdir : C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\ios\TOMOE\Resources\splash
completed ‘cordova platform add –save android’
executing ‘cordova build android –debug –verbose’…
Executing “before_build” hook for all plugins.Running command: “C:\Program Files\nodejs\node.exe” “C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\hooks\before_build\androidmanifestmapper.js” “C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE”
It’s saved!
Command finished with error code 0: C:\Program Files\nodejs\node.exe C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\hooks\before_build\androidmanifestmapper.js,C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE
Executing “before_prepare” hook for all plugins.
Generating config.xml from defaults for platform “android”
Wrote out Android application name to “TOMOE”
deleted: C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\android\res\drawable-hdpi\icon.png
deleted: C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\android\res\drawable-ldpi\icon.png
deleted: C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\android\res\drawable-mdpi\icon.png
deleted: C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\android\res\drawable-xhdpi\icon.png
deleted: C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\android\res\drawable-xxhdpi\icon.png
more than one default icon: {“src”:”www/res/icon/android/icon-36-ldpi.png”,”platform”:null}
more than one default icon: {“src”:”www/res/icon/android/icon-48-mdpi.png”,”platform”:null}
more than one default icon: {“src”:”www/res/icon/android/icon-72-hdpi.png”,”platform”:null}
more than one default icon: {“src”:”www/res/icon/android/icon-96-xhdpi.png”,”platform”:null}
copying image from C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\www\res\icon\ios\icon-72.png to C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\android\res\drawable-hdpi\icon.png
copying image from C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\www\res\icon\ios\icon-72-2x.png to C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\android\res\drawable-xxhdpi\icon.png
copying image from C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\www\icon.png to C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\android\res\drawable-mdpi\icon.png
Wrote out Android package name to “tomoe.id”
Executing “after_prepare” hook for all plugins.
Executing “before_compile” hook for all plugins.
Running command: cmd “/s /c “”C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\android\cordova\build.bat” –debug””
ANDROID_HOME=D:\Mobile App Develop\android-sdk-windows
JAVA_HOME=C:\Documents and Settings\kenshinlin\MyEclipse 2015 CI\binary\com.sun.java.jdk7.win32.x86_1.7.0.u45
Running: C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\android\gradlew cdvBuildDebug -b C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\android\build.gradle -Dorg.gradle.daemon=true
:preBuild
:compileDebugNdk
:preDebugBuild
:checkDebugManifest
:CordovaLib:compileLint
:CordovaLib:copyDebugLint
UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles
:CordovaLib:preBuild
:CordovaLib:preDebugBuild
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl
:CordovaLib:compileDebugRenderscript
:CordovaLib:generateDebugBuildConfig
:CordovaLib:generateDebugAssets
UP-TO-DATE
:CordovaLib:mergeDebugAssets
:CordovaLib:generateDebugResValues
:CordovaLib:generateDebugResources
:CordovaLib:packageDebugResources
:CordovaLib:processDebugManifest
:CordovaLib:processDebugResources
:CordovaLib:generateDebugSources
:CordovaLib:compileDebugJava
Note: Some input files use or override a deprecated API.Note: Recompile with -Xlint:deprecation for details.
:CordovaLib:processDebugJavaRes
UP-TO-DATE
:CordovaLib:packageDebugJar:CordovaLib:compileDebugNdk
:CordovaLib:packageDebugJniLibs
UP-TO-DATE
:CordovaLib:packageDebugLocalJar
UP-TO-DATE
:CordovaLib:packageDebugRenderscript
UP-TO-DATE
:CordovaLib:bundleDebug
:prepareAndroidCordovaLibUnspecifiedDebugLibrary
:prepareDebugDependencies
:compileDebugAidl
:compileDebugRenderscript
:generateDebugBuildConfig
:generateDebugAssets
UP-TO-DATE
:mergeDebugAssets
:generateDebugResValues
:generateDebugResources
:mergeDebugResources
:processDebugManifest
:processDebugResources
Warning: AndroidManifest.xml already defines debuggable (in http://schemas.android.com/apk/res/android); using existing value in manifest.:generateDebugSources
:compileDebugJava
:preDexDebug
:dexDebug
:processDebugJavaRes
UP-TO-DATE
:validateDebugSigning
:packageDebug
:zipalignDebug
:assembleDebug
:cdvBuildDebug
BUILD SUCCESSFUL
Total time: 17.235 secs
Built the following apk(s):
C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\android\build\outputs\apk\android-debug.apk
Command finished with error code 0: cmd /s /c “”C:\Documents and Settings\kenshinlin\Workspaces\MyEclipse 2015 CI\TOMOE\platforms\android\cordova\build.bat” –debug”
Executing “after_compile” hook for all plugins.
Executing “after_build” hook for all plugins.
completed ‘cordova build android –debug –verbose’
signing application
signing application failed : cannot locate the PhoneGap build output TOMOE-debug.apk
support-tonyKeymasterkenshinlin,
Sorry that you’re seeing this issue. We can replicate it with phonegap 5.3.9 but not with the inbuilt phonegap runtime (which is 3.x). It looks like the build worked fine but the post-build debug signing failed because the phonegap build produced the apk fine with a name that wasn’t expected. From trying this with the phonegap command line, phonegap always seems to produce the same named file, regardless of the project name.
We’re looking into this now and I’ll keep you updated with any further information.
Brian FernandesModeratorkenshinlin,
As Tony stated earlier, both the name and the location of the file created by PhoneGap 5.3.9 are different from what MyEclipse expects. As a result, it can’t find the APK produced by the build to proceed. I’m afraid a “real” fix will require a new version of MyEclipse and we can look at fixing this in MyEclipse 2015 CI 18.
For now, I can only suggest this workaround. I’m afraid it is a bit convoluted, but that’s the best we can do pre-build:
1) Run a clean local build. Allow it to fail.
2) But we have the result build in \platforms\android\build\outputs\apk\ as android-debug.apk
3) Now create a folder named “ant-build” under platforms/android. Copy this android-debug.apk and RENAME as “CordovaApp-debug.apk”.
4) Now run a NON-CLEAN build, so that we dont clear platforms folder.
5) I see build successful and .apk file copied to binSorry for the inconvenience caused & thank you for bringing this to our attention.
kenshinlinParticipantBrian,
I try the workaround, and it works.
Hope it can be fixed in MyEclipse 2015 CI 18.Thank you .
support-swapnaModeratorkenshinlin,
The fix is out with our latest CI release, CI 18. Please update to CI 18 from Help > Check for Updates.
Let us know how it works.–Swapna
MyEclipse Support
SeaFriendsParticipantHi all,
Same issue for me. Except that the directory platforms\android\build\outputs\apk\ is not created so I’m able to copy the apk file into new folder “ant-build”…
I’m running Version: 2015 CI 19 Build id: 13.0.0-20160113.
PhoneGap release is cli-6.3.0your help will be appreciated.
+++- This reply was modified 8 years ago by SeaFriends.
support-swapnaModeratorSeaFriends,
Sorry that you are seeing this issue.
Can you please share with us the contents logged in the Console view once you invoke the Local Build?
Please also let us know what exact changes you made to MyEclipse and the project to support PhoneGap CLI 6.3.0.Apologies for inconvenience caused.
–Swapna
MyEclipse Support -
AuthorPosts