m0dch3n / vue-cli-plugin-cordova

Vue Cli 3 Cordova Plugin
MIT License
417 stars 63 forks source link

Cant install the app-release-unsigned.apk #16

Closed aglopes-monitar closed 5 years ago

aglopes-monitar commented 5 years ago

Created new and clean build.

donne 0 coding just the default cli template 1) 'npm run cordova-build-android' -> 'cli project folder' 2) cordova build android --release -> 'inside src-cordova folder' 3) after download apk in cellphone; gave permissions and it didnt install

aglopes-monitar commented 5 years ago

Can open the scr-codova/plataforms/android In android studio, and run on device... i can allways sign the apk.

m0dch3n commented 5 years ago

Did you read the README ? There is no need to execute cordova build android --release

In Production mode Adding cordova.js to your index.html Defining process.env.CORDOVA_PLATFORM to android, ios or browser Pointing the cordova config.xml to index.html Building the app, output to /cordovaPath/www Executing 'cordova clean' Executing 'cordova build platform --release' Please note You need to manually sign and publish the app in the app store

Please google for jarsign and zipalign an android release apk

Once you have jarsigned and zipaligned your apk, you can run adb install nameofapp.apk

m0dch3n commented 5 years ago

https://developer.android.com/studio/publish/app-signing

m0dch3n commented 5 years ago

c.f. Sign your app manually from the command line

aglopes-monitar commented 5 years ago

Nice thanks

m0dch3n notifications@github.com escreveu no dia terça, 2/10/2018 à(s) 10:55:

c.f. Sign your app manually from the command line

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/m0dch3n/vue-cli-plugin-cordova/issues/16#issuecomment-426216797, or mute the thread https://github.com/notifications/unsubscribe-auth/AgfTbjWAEV53VZQfGTG1f_lVBkD_WHM3ks5ugzgcgaJpZM4XDq54 .