Tagged: Android Build
- This topic has 12 replies, 2 voices, and was last updated 8 years, 6 months ago by support-swapna.
-
AuthorPosts
-
ariefpnParticipantHi, anyone can help me.
I’m trying to build app on local and will release to play store, but an apk result can not upload to playstore, whats problem.
in this case i’m using .keystore.
Thankspackage:
[apkbuilder] Found Deleted Target File
[apkbuilder] Creating MYAPP-release-unsigned.apk for release…
-post-package:
-release-prompt-for-password:
-release-nosign:
-release-sign:
[echo] Signing final apk…
[zipalign] Running zip align on final apk…
[echo] Release Package: C:\Users\Administrator\Workspaces\MyEclipse 2015 CI\MY APP\platforms\android\ant-build\MYAPP-release.apk
[propertyfile] Updating property file: C:\Users\Administrator\Workspaces\MyEclipse 2015 CI\MY APP\platforms\android\ant-build\build.prop
[propertyfile] Updating property file: C:\Users\Administrator\Workspaces\MyEclipse 2015 CI\MY APP\platforms\android\ant-build\build.prop
[propertyfile] Updating property file: C:\Users\Administrator\Workspaces\MyEclipse 2015 CI\MY APP\platforms\android\ant-build\build.prop
[propertyfile] Updating property file: C:\Users\Administrator\Workspaces\MyEclipse 2015 CI\MY APP\platforms\android\ant-build\build.prop
-post-build:
[move] Moving 1 file to C:\Users\Administrator\Workspaces\MyEclipse 2015 CI\MY APP\platforms\android\ant-build
[move] Moving 1 file to C:\Users\Administrator\Workspaces\MyEclipse 2015 CI\MY APP\platforms\android\CordovaLib\ant-build
release:
BUILD SUCCESSFUL
Total time: 12 secondsUsing apk: C:\Users\Administrator\Workspaces\MyEclipse 2015 CI\MY APP\platforms\android\ant-build\MYAPP-release-unaligned.apk
Command finished with error code 0: cmd /s /c “”C:\Users\Administrator\Workspaces\MyEclipse 2015 CI\MY APP\platforms\android\cordova\build.bat” –release”
completed ‘cordova build android –release –verbose’
signing application
support-swapnaModeratorariefpn,
Sorry that you are seeing this issue.
1. Can you please share with us the exact error message you are seeing when uploading to the Playstore?
2. Please try clearing the browser cache and attempt the upload once again to rule out browser cache issues.
3. Are you trying to upload a debuggable apk? Google is blocking apps that have the debuggable flag set to TRUE on release builds. Be sure to add the android:debuggable=”false” in the application tag of the manifest file.
4. Please also check if any of the suggestions mentioned in this thread help fix the issue at your end :
http://stackoverflow.com/questions/14186917/apk-upload-failedLet us know how it works for you.
–Swapna
MyEclipse Support
ariefpnParticipantThanks swapna,
1. Actualy if the process signing success 100%, it should in {project}/bin/, but the process until 65% i got error status and i only use apk refer to status finish in {project}/platforms/android/ant-build/myapp-release.apk. What’s wrong?
Error while upload to playstore:
Upload failed,You uploaded a debuggable APK. For security reasons you need to disable debugging before it can be published in Google Play…
2. Still error.
3. I change An AndroidManifest.xml with location {project}/platforms/android/AndroidManifest.xml
set the android:debuggable attribute to false for a production release.
but, the android:debuggable became back true…. what’s wrong? how to change it permanent?<manifest xmlns:android=”http://schemas.android.com/apk/res/android”
…
<application android:icon=”@drawable/icon” android:debuggable=”true” …Attachments:
You must be logged in to view attached files.
support-swapnaModeratorariefpn,
Sorry that you are still seeing the issue. Thank you for the details.
It looks like an issue with the signing process. I could not replicate the issue with the PKCS #12 (.p12) format and Release build mode.
Are you working with MyEclipse 2015 Stable 3.0 ? Please share the MyEclipse Build Id and version details from Help > About section.
Can you please check if the issue persists with the remote build as well?
–Swapna
MyEclipse Support
ariefpnParticipantHi Swapna,
I’m working with MyEclipse 2015 :
Version: 2015 CI 19
Build id: 13.0.0-20160113is it stable 3.0 ? if not how to get it?
About check with remote build:
The process are success with myapp-release.apk and store into \bin folder in my project.
But if i uploaded to playstore, i got the same error with “You uploaded a debuggable APK…”.Thanks
Attachments:
You must be logged in to view attached files.
ariefpnParticipantI’m using java keystore with keytool inside jdk installed
ariefpnParticipantHi Swapna, I’ve been tried with PKCS#12, the problem still same.
support-swapnaModeratorariefpn,
Sorry that you are still seeing the issue. MyEclipse 2015 CI 19 and Stable 3.0 are the same.
I could not replicate the issue in MyEclipse 2015 CI 19 as well.I see the android:debugging set to true only when I build in Debug mode. Building the app in Release mode does not generate the android:debugging attribute in the .apk file at my end for both local as well as remote builds.
Is the .apk generated using remote build also have the android:debuggable=”true” attribute? Delete and rebuild the app and check if it fixes the issue.
Which version of PG are you working with? Is it possible for you to regenerate the key and check to rule out signing profile issues?
Do you have any concerns sharing your app files with us? You can share the files privately with us to help us investigate further.
–Swapna
MyEclipse Support
ariefpnParticipantYes the .apk also have the android:debuggable=”true” attribute using remote build.
What’s PG?
Which file you need? and what’s your email?
http://docs.build.phonegap.com/en_US/signing_signing-android.md.html#_generating_a_private_key
support-swapnaModeratorariefpn,
PG is PhoneGap.
Is this project created in MyEclipse 2015 CI 19?
Please send us the .settings folder and the config.xml for further investigation.
You can click on my name to view my profile, click ‘Private Message’ and send me the files.Thank you for your patience.
–Swapna
MyEclipse Support
support-swapnaModeratorariefpn,
Thank you for the files.
I see the below code snippet in your config.xml :
<!-- enable PhoneGap Build to create a remotely debuggable app --> <!-- remove the following segment for production ver of app --> <gap:config-file parent="/manifest" platform="android" mode="merge" xmlns:android="http://schemas.android.com/apk/res/android"> <application android:debuggable="true" /> </gap:config-file>
You should set the andriod:debuggable to false or remove the segment completely and build the app in Release mode to not generate the android:debuggable=”true” attribute in the apk file.
Let us know how it works for you.
–Swapna
MyEclipse Support
ariefpnParticipantHi Swapna,
It Works, thanks for your support.
support-swapnaModeratorariefpn,
Glad that it works.
Let us know if you see any issues.–Swapna
MyEclipse Support -
AuthorPosts