Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meteor android build says "Application not installed"

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?

like image 244
Ramesh Murugesan Avatar asked Dec 20 '22 05:12

Ramesh Murugesan


2 Answers

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.

like image 181
Ramesh Murugesan Avatar answered Dec 28 '22 07:12

Ramesh Murugesan


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

like image 23
Nickolai Astashonok Avatar answered Dec 28 '22 06:12

Nickolai Astashonok