When creating a blackberry10 cordova / phonegap project, many files are missing

When you create a blackberry10 cordova / phonegap project, the assembly does not include a number of files. Multiple splash screen and DEFAULT_BAR_NAME.bar images are not included.

However, if the same process is repeated on another device (desktop PC), all files are included. As far as I can tell, both have identical software settings.

C:\Users\USER\hello>cordova emulate blackberry10 [Error: An error occurred while emulating/deploying the blackberry10 project. [BUILD] Populating application source [BUILD] Parsing config.xml [BUILD] Generating output files [WARN] Failed to find debug token. If you have an existing debug token, please copy it to %HOME%/.cordova/blackberry10debugtoken.bar. To generate a new debug token, execute the 'run' command. [ERROR] Error: Attribute image: file cannot be found in the list of packaged files: res/screen/blackberry/splash-1280x768.png [ERROR] Native Packager exception occurred [WARN] Failed to find debug token. If you have an existing debug token, please copy it to %HOME%/.cordova/blackberry10debugtoken.bar. To generate a new debug token, execute the 'run' command. [ERROR] Error: Attribute image: file cannot be found in the list of packaged files: res/screen/blackberry/splash-1280x768.png [ERROR] Native Packager exception occurred [ERROR] Error: File does not exist or not a file or cannot read: C:\Users\USER\hello\PLATFO~1\BLACKB~1\build\simulator\DEFAULT_BAR_NAME.bar 

If you need more information, please ask, thanks!

+4
source share
1 answer

I saw this message a bit late. But I have a solution to this problem.

  • Go to the root of your phone game project (one that combines these folders, platforms, www and plugins).
  • Open the www folder
  • Open the config.xml file
  • Now, carefully remove all splash and badge announcements for platforms that are not added using the add cordova platform command. For example, if you created a project only for a blackberry, delete all the icons and splash ads for ios, android, webos, bada, windows-phone.
  • Now run the cordova. Your Blackberry app should be built without any errors.

I was able to compile the Blackberry 10 app in phone note 3.3

If you encounter any errors regarding the p12 file, you need to follow the rules of signing a blackberry. Or, if you have any doubts, then write me hansolo.amey@gmail.com

+1
source

Source: https://habr.com/ru/post/1499484/


All Articles