mobile-config.js中的流星图标和启动画面

时间:2016-04-20 11:17:33

标签: javascript cordova meteor icons

我正在更改图标和启动画面,当我尝试在Android上运行时出现大错误:

  

警告:iphone:App.icons配置中的未知密钥。关键可能   被弃用。警告:android.ldpi:App.icons中的未知密钥   组态。该密钥可能已被弃用。警告:iphone:未知密钥   在App.launchScreens配置中。该密钥可能已被弃用。   警告:android_ldpi_portrait:App.launchScreens中的未知密钥   组态。该密钥可能已被弃用。警告:   android_ldpi_landscape:App.launchScreens中的未知密钥   组态。密钥可能已被弃用。

     

C:\用户\ FS399777 \应用程序数据\ Local.meteor \包\流星工具\ 1.3.1 \ MT-os.windows.x86_32 \同步信息包\科尔多瓦支撑\ NPM \ node_modules \流星\承诺\ node_modules \流星许\ promise_server.js:116         抛出错误;               ^错误:ENOENT,没有这样的文件或目录'D:\ defaultApp \ resources \ iOS \ Resources \ icons \ icon-120.png'       at Object.fs.statSync(fs.js:696:18)       at Object.wrapper [as stat](C:\ tools \ fs \ files.js:1368:35)       at Object.files.copyFile(C:\ tools \ fs \ files.js:560:23)       在C:\ tools \ cordova \ builder.js:343:13       在函数。 .each。 .forEach(C:\ Users \ FS399777 \ AppData \ Local.meteor \ packages \ meteor-tool \ 1.3.1 \ mt-os.windows.x86_32 \ dev_bundle \ lib \ node_modules \下划线\ underscore.js:87:22)       在CordovaBuilder.configureAndCopyImages(C:\ tools \ cordova \ builder.js:323:7)       在CordovaBuilder.writeConfigXmlAndCopyResources(C:\ tools \ cordova \ builder.js:291:12)       在CordovaProject.prepareFromAppBundle(C:\ tools \ cordova \ project.js:189:13)       在C:\ tools \ cordova \ runner.js:78:27       在C:\ tools \ utils \ buildmessage.js:359:18       at [object Object] .withValue(C:\ tools \ utils \ fiber-helpers.js:89:14)       在C:\ tools \ utils \ buildmessage.js:352:34       at [object Object] .withValue(C:\ tools \ utils \ fiber-helpers.js:89:14)       在C:\ tools \ utils \ buildmessage.js:350:23       at [object Object] .withValue(C:\ tools \ utils \ fiber-helpers.js:89:14)       在Object.enterJob(C:\ tools \ utils \ buildmessage.js:324:26)       在CordovaRunner.prepareProject(C:\ tools \ cordova \ runner.js:77:18)       在C:\ tools \ runners \ run-app.js:682:25       在C:\ tools \ utils \ buildmessage.js:271:13       at [object Object] .withValue(C:\ tools \ utils \ fiber-helpers.js:89:14)       在C:\ tools \ utils \ buildmessage.js:264:29       at [object Object] .withValue(C:\ tools \ utils \ fiber-helpers.js:89:14)       在C:\ tools \ utils \ buildmessage.js:262:18       at [object Object] .withValue(C:\ tools \ utils \ fiber-helpers.js:89:14)       在C:\ tools \ utils \ buildmessage.js:253:23       at [object Object] .withValue(C:\ tools \ utils \ fiber-helpers.js:89:14)       at Object.capture(C:\ tools \ utils \ buildmessage.js:252:19)       在C:\ tools \ runners \ run-app.js:681:39       在C:\ tools \ runners \ run-app.js:693:9       在AppRunner._runOnce(C:\ tools \ runners \ run-app.js:679:7)       在AppRunner._fiber(C:\ tools \ runners \ run-app.js:887:28)       在C:\ tools \ runners \ run-app.js:411:12

这是我的mobile-config.js

App.icons({
  // iOS
  'iphone': 'resources/iOS/Resources/icons/Icon-60.png',
  'iphone_2x': 'resources/iOS/Resources/icons/Icon-120.png',
  'iphone_3x': 'resources/iOS/Resources/icons/Icon-180.png',
  'ipad': 'resources/iOS/Resources/icons/Icon-76.png',
  'ipad_2x': 'resources/iOS/Resources/icons/Icon-152.png',

  // Android
  'android_ldpi': 'resources/Android/res/drawable-ldpi/icon.png',
  'android_mdpi': 'resources/Android/res/drawable-mdpi/icon.png',
  'android_hdpi': 'resources/Android/res/drawable-hdpi/icon.png',
  'android_xhdpi': 'resources/Android/res/drawable-xhdpi/icon.png'
});

App.launchScreens({
  // iOS
  'iphone': 'resources/iOS/Resources/splash/Default~iphone.png',
  'iphone_2x': 'resources/iOS/Resources/splash/Default@2x~iphone_640x960.png',
  'iphone5': 'resources/iOS/Resources/splash/Default-568h@2x~iphone_640x1136.png',
  'iphone6': 'resources/iOS/Resources/splash/Default-750@2x~iphone6-portrait_750x1334.png',
  'iphone6p_portrait': 'resources/iOS/Resources/splash/Default-1242@3x~iphone6s-portrait_1242x2208.png',
  'iphone6p_landscape': 'resources/iOS/Resources/splash/Default-1242@3x~iphone6s-landscape_2208x1242.png',

  'ipad_portrait': 'resources/iOS/Resources/splash/Default-Portrait~ipad_768x1024.png',
  'ipad_portrait_2x': 'resources/iOS/Resources/splash/Default-Portrait@2x~ipad_1536x2048.png',
  'ipad_landscape': 'resources/iOS/Resources/splash/Default-Landscape~ipad_1024x768.png',
  'ipad_landscape_2x': 'resources/iOS/Resources/splash/Default-Landscape@2x~ipad_2048x1536.png',

  // Android
  'android_ldpi_portrait': 'resources/Android/res/drawable-ldpi/splash.png',
  'android_ldpi_landscape': 'resources/Android/res/drawable-land-ldpi/splash.png',
  'android_mdpi_portrait': 'resources/Android/res/drawable-mdpi/splash.png',
  'android_mdpi_landscape': 'resources/Android/res/drawable-land-mdpi/splash.png',
  'android_hdpi_portrait': 'resources/Android/res/drawable-hdpi/splash.png',
  'android_hdpi_landscape': 'resources/Android/res/drawable-land-hdpi/splash.png',
  'android_xhdpi_portrait': 'resources/Android/res/drawable-xhdpi/splash.png',
  'android_xhdpi_landscape': 'resources/Android/res/drawable-land-xhdpi/splash.png'
  'android_xxhdpi_portrait': 'resources/Android/res/drawable-xxhdpi/splash.png',
  'android_xxhdpi_landscape': 'resources/Android/res/drawable-land-xxhdpi/splash.png'
  'android_xxxhdpi_portrait': 'resources/Android/res/drawable-xxxhdpi/splash.png',
  'android_xxxhdpi_landscape': 'resources/Android/res/drawable-land-xxxhdpi/splash.png'
});

尝试构建应用后会发生什么。出现此错误,“resources”文件夹中的所有文件都会消失。我不明白为什么会这样。

0 个答案:

没有答案