是的,我已经阅读了 Meteor Cordova PhoneGap Integration Guide但我找不到关于这个问题的任何信息。
我正在尝试设置 Meteor 以针对 Android 进行开发。 我的手机运行 Android 4.2.something,我们的许多潜在用户可能运行一些 JellyBean(4.1.x-4.3.x)、ICS (4.0.x) 或 Gingerbread (2.3.x) - 但可能不是 KitKat (4.4.x)。
Meteor 默认只针对 android-19 (4.4.x),卸载这个目标甚至会认为 ADK 根本没有安装。 (我为此使用了 meteor configure-android
,它显然只配置了 ADK 而不是 Meteor 本身。)
如何让我的模拟器和我的构建同时针对旧版/不同版本的 Android?
最佳答案
这有点过时了,但如果其他人遇到同样的问题,Mário 的回答是有效的,但如果像我一样不使用 Android Studio,这也会有所帮助。
将此行添加到您的mobile-config.js
:
App.setPreference('android-targetSdkVersion', '17');
将 17 替换为您想要的版本。
这也可能有帮助:https://github.com/meteor/meteor/issues/3434#issuecomment-97953738
关于android - 使用 Meteor 定位特定版本的 Android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26885616/