I am doing android app in meteor. Its in development stage. I just tried to build apk for testing purpose. But when I try to install apk file, device says "Application not installed". I tried the following steps.
meteor build ../build --server 192.168.0.5:3000
The above command generate unaligned.apk
file in android directory and CordovaApp-release-unsigned.apk
in android/project/ant-build directory. Both apk says "Application not installed". So I add following lines
App.info({
name: 'My App',
description: 'An Android app built with Meteor',
version: '0.0.1'
});
in mobile-config.js
in app root directory. But Again I got the same issue "Application not installed".
Is anything wrong in my steps? Why APK is not installed? How to build right apk with meteor?
Let me answer my question. It works fine for me.
Build APK by
meteor build ~/build-output-directory \
--server=your-desired-app-hostname.meteor.com
Now you can sign your app by
keytool -genkey -alias your-app-name -keyalg RSA \
-keysize 2048 -validity 10000
cd ~/build-output-directory/android/
jarsigner -digestalg SHA1 unaligned.apk your-app-name
After signed I can able to install and share my apk file. More detail from meteor.
Looks like there is a bug in meteor. You should sign in your application. Please, check the following thread: Meteor cordova on Android building app
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With