Meteor android build says: "Application not installed"

I am making an android app in meteor. Its under development. I just tried to build apk for testing purposes. But when I try to install the apk file, the device says "Application not installed." I have tried the following steps.

meteor build ../build --server 192.168.0.5:3000

The above command will generate a file unaligned.apkin the android directory and CordovaApp-release-unsigned.apkin the android / project / ant -build directory. Both apk say "Application is not installed." So I add the following lines

App.info({
  name: 'My App',
  description: 'An Android app built with Meteor',
  version: '0.0.1'
});

in mobile-config.jsthe root directory of the application. But then again I got the same problem "Application not installed."

Is something wrong with my steps? Why is APK not installed? How to build the right apk with meteor?

+4
3

. .

APK

meteor build ~/build-output-directory \
    --server=your-desired-app-hostname.meteor.com

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

apk. meteor.

+9

, , , , - :

I had the same "App not Installed" error, although I was 100% sure that the application was signed and zipalined. Then I tried to install the application through adb:

$ adb install my_app.apk
Error: [INSTALL_FAILED_UPDATE_INCOMPATIBLE]

Then I realized that, probably, my application was not properly removed from my phone, so I deleted it using adb (since I was unable to uninstal using the graphical interface of the phone), and it worked :)

$adb uninstall com.my_app.id

Hope this helps someone.

0
source

All Articles