Hi all,
I am new to Ionic, I have an ionic app.
I have created build for that ionic build android
and i got debug.apk
now I need Singed apk so that i can use it on play store.
I found this tutorial but it wont help me a lot.
What i have-
Now i have issue as-
Reading build config file: /Users/some/project/files/build.json
Error: Unexpected token / in JSON at position 0
Don’t know how to solve this and get signed apk for my app.
From the error description it seems like something is wrong with the json file. Try an json verifier to make sure your json file correct.
Otherwise you can always use adb to manully sign your app
> cordova build android --release (To create a release version of the application)
> keytool -genkey -v -keystore app.keystore -alias app -keyalg RSA -keysize 2048 -validity 10000 (To generate the keystore to sign the app. Use a single keystore for all versions)
> jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore app.keystore app-release-unsigned.apk app(To sign the application with the give keystore. Here the keystore file is app.keystore. Ruin this command in ant-build folder where release apk is present.)
> zipalign -v app-release-unsigned.apk App.apk