Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Target a specific version of Android with Meteor

Yes, I have read the Meteor Cordova PhoneGap Integration Guide but I couldn't find any information on this issue.

I am trying to set up Meteor to develop for Android. My phone runs Android 4.2.something and a lot of our potential users probably run some JellyBean (4.1.x-4.3.x), ICS (4.0.x) or Gingerbread (2.3.x) - but probably not KitKat (4.4.x).

Meteor by default targets only android-19 (4.4.x), un-installing this target even makes it think that the ADK is not installed at all. (I used meteor configure-android for that, which appearantly only configures the ADK and not Meteor itself.)

How can I make both my emulator and my builds target older/different versions of Android?

like image 697
neo post modern Avatar asked Oct 28 '25 08:10

neo post modern


1 Answers

This is a bit outdated but if anyone else runs into this this same question, The answer by Mário is valid, but if like myself one does not use Android Studio this can also help.

Add this line to your mobile-config.js:

App.setPreference('android-targetSdkVersion', '17');

replace 17 with your desired version.

This might also help: https://github.com/meteor/meteor/issues/3434#issuecomment-97953738

like image 167
samaelinfernus Avatar answered Oct 29 '25 22:10

samaelinfernus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!