0

私は .png 画像を持っているので、要件に応じてサイズを変更しましたが、画像がアセットフォルダーにあり、その間に大文字やスペースがない場合でも、logcat で filenotfound 例外が発生します。なぜこれが発生するのかわかりませんでしたか?

// background layer: another image
            CCSprite background = CCSprite.sprite("shipe150.png");
            // scale the image (optional)
            background.setScale(1.5f);
            // change the transform anchor point (optional)
            background.setAnchorPoint(CGPoint.make(0,0));

logcat エラー

07-13 10:59:07.928: W/System.err(3017): java.io.FileNotFoundException: shipe150.png
07-13 10:59:07.928: W/System.err(3017):     at android.content.res.AssetManager.openAsset(Native Method)
07-13 10:59:07.939: W/System.err(3017):     at android.content.res.AssetManager.open(AssetManager.java:315)
07-13 10:59:07.939: W/System.err(3017):     at android.content.res.AssetManager.open(AssetManager.java:289)
4

0 に答える 0