Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Highlighted
Developer
Posts: 88
Registered: ‎01-05-2013
My Device: BB10
My Carrier: Viettel
Accepted Solution

Cannot add image file to asset folder

2 day ago, my Qde still ok, but now I can copy images to  the asset folde. but my app cant recognize that images and return

 

Invalid asset ...
Image not found ...

error. I think my qde had some problem. Anyone have idea?

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Cannot add image file to asset folder

There are lots of reasons why this could happen.

Could you post your code. How are you qualifying the asset location?

 

Could be a permission setting as well.


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Developer
Posts: 88
Registered: ‎01-05-2013
My Device: BB10
My Carrier: Viettel

Re: Cannot add image file to asset folder

Usually, I can add the image to asset folder and use them without no error. But now I can copy image to asset folder and qde auto complete can recognize them, but I cant use these image. despite I can use image before this error orcurs
Developer
Posts: 1,670
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: Cannot add image file to asset folder

are you working on 10.0, 10.1, 10.2 or switch force and back?

 

perhaps your assets.index is corrupt

try this:

quit Momentics

go to your project from filesystem and delete assets/.assets.index

 

reopen Momentics

do a refresh

and clean the project

 

 

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner http://vimeo.com/ekkescorner/videos
bb10-development: http://appbus.org Twitter: @ekkescorner
Developer
Posts: 88
Registered: ‎01-05-2013
My Device: BB10
My Carrier: Viettel

Re: Cannot add image file to asset folder

Thank you alot, it work. I'm so happy now Smiley Happy
Developer
Posts: 125
Registered: ‎06-19-2012
My Device: PlayBook + Red Z10 + BB10 Dev Alpha C
My Carrier: none

Re: Cannot add image file to asset folder

Same problem for me. Your solution worked.

 

Why is .assets.index not updated correctly during the make proccess??