2016-12-15 108 views
0

長時間不成功的搜索後,我決定在這裏發佈我的問題。我正在嘗試在我的Meteor應用程序中使用Cordova Crosswalk插件。我用包從大氣科爾多瓦人行橫道插件 - 使用流星1.4.2.2不工作

meteor add crosswalk

以及科爾多瓦包從GitHub

meteor add cordova:[email protected]

當我在我的應用程序安裝包,一切都運行得很好,但如果我建我的應用程序(Android的apk文件)它不包含人行橫道(apk大小約爲10 MB,無論是否插件)。

我得到,當我構建應用程序如下

Crosswalk info:dova app for Android   | 
    After much discussion and analysis of the market, 
    we have decided to discontinue support for Android 4.0 (ICS) in Crosswalk starting with version 20, 
    so the minSdkVersion of Cordova project is configured to 16 by default. 

但是,這聽起來更像是一個信息的唯一線索。我還添加以下行到我的移動config.js文件,但沒有成功

app.setPreference('android-minSdkVersion', '16');

缺少什麼我在這裏?

提前致謝!

+0

我正在[email protected]如流星包的方式很少,但不是插件(不是必要的?)嘗試刪除它 – Mikkel

+0

嗨@Mikkel,謝謝您響應。正如我所描述的,我試圖使用流星包,但沒有成功,構建的apk仍然只有10 MB大小,這意味着不添加人行橫道。你能描述你的構建過程嗎?包含人行橫道的apk是否在其他文件夾中? – RainerWahnsinn

+0

@mikkel還有一個問題,請問您可以發佈您的mobile-config.js配置嗎?這對我很有幫助!提前致謝 – RainerWahnsinn

回答

0

這是我的手機配置。有一個在祕訣這裏

// mobile-config.js 
// This section sets up some basic app metadata, 
// the entire section is optional. 
App.info({ 
    id: 'com.senecto.amba.mcduck', 
    version: '1.1.10', 
    name: 'Amba.McDuck', 
    description: 'Amba tablet - mcduck version', 
    author: 'Mike King', 
    email: '[email protected]', 
    website: 'http://senecto.com' 
}); 
// Set up resources such as icons and launch screens. 
App.icons({ 
// 'iphone_2x  // (120x120) 
// 'iphone_3x  // (180x180) 
// 'ipad    // (76x76) 
// 'ipad_2x   // (152x152) 
// 'ipad_pro   // (167x167) 
// 'ios_settings  // (29x29) 
// 'ios_settings_2x // (58x58) 
// 'ios_settings_3x // (87x87) 
// 'ios_spotlight // (40x40) 
// 'ios_spotlight_2x // (80x80) 
'android_mdpi' : 'public/res/icon/mipmap-mdpi/ic_launcher.png',  // (48x48) 
'android_hdpi' : 'public/res/icon/mipmap-hdpi/ic_launcher.png', // (72x72) 
'android_xhdpi' : 'public/res/icon/mipmap-xhdpi/ic_launcher.png', // (96x96) 
'android_xxhdpi' : 'public/res/icon/mipmap-xxhdpi/ic_launcher.png', // (144x144) 
'android_xxxhdpi' : 'public/res/icon/mipmap-xxxhdpi/ic_launcher.png' // (192x192)// 
}); 
App.launchScreens({ 
// 'iphone_2x': 'public/res/screen.png', 
// 'iphone5': 'public/res/screen.png', 
// 'iphone6': 'public/res/screen.png', 
// 'iphone6p_portrait': 'public/res/screen.png', 
// 'iphone6p_landscape': 'public/res/screen.png', 
// 'ipad_portrait': 'public/res/screen.png', 
// 'ipad_portrait_2x': 'public/res/screen.png', 
// 'ipad_landscape': 'public/res/screen.png', 
// 'ipad_landscape_2x': 'public/res/screen.png', 
'android_mdpi_portrait': 'public/res/screen.png', 
'android_mdpi_landscape': 'public/res/screen.png', 
'android_hdpi_portrait': 'public/res/screen.png', 
'android_hdpi_landscape': 'public/res/screen.png', 
'android_xhdpi_portrait': 'public/res/screen.png', 
'android_xhdpi_landscape': 'public/res/screen.png', 
'android_xxhdpi_portrait': 'public/res/screen.png', 
'android_xxhdpi_landscape': 'public/res/screen.png' 
    // 'iphone': 'splash/Default~iphone.png', 
    // 'iphone_2x': 'splash/[email protected]~iphone.png', 
    // ... more screen sizes and platforms ... 
}); 
// Set PhoneGap/Cordova preferences 
//App.setPreference('BackgroundColor', '0xff0000ff'); 
App.setPreference('HideKeyboardFormAccessoryBar', true); 
// App.setPreference('Orientation', 'landscape'); 
// App.setPreference('Orientation', 'landscape', 'android'); 
// App.setPreference('Orientation', 'landscape', 'ios'); 
App.setPreference('Fullscreen', 'true', 'android'); 
App.setPreference('Fullscreen', 'true', 'ios'); 
App.setPreference('android-targetSdkVersion', '23'); 
App.setPreference('WebAppStartupTimeout', 60000); 
App.setPreference('AndroidPersistentFileLocation','Compatibility') 

// Pass preferences for a particular PhoneGap/Cordova plugin 
// App.configurePlugin('com.phonegap.plugins.facebookconnect', { 
// APP_ID: '1234567890', 
// API_KEY: 'supersecretapikey' 
// }); 
// Add custom tags for a particular PhoneGap/Cordova plugin 
// to the end of generated config.xml. 
// Universal Links is shown as an example here. 
// App.appendToConfig(` 
// <universal-links> 
//  <host name="localhost:3000" /> 
// </universal-links> 
// `); 

App.accessRule('blob:*'); 
App.accessRule('file:*'); 
App.accessRule('*'); 
App.accessRule('skype:*',{launchExternal: true}); 
相關問題