Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/204.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 调整.png图像大小后出现Filenotfound异常_Java_Android_Image_Cocos2d Iphone_Cocos2d Android - Fatal编程技术网

Java 调整.png图像大小后出现Filenotfound异常

Java 调整.png图像大小后出现Filenotfound异常,java,android,image,cocos2d-iphone,cocos2d-android,Java,Android,Image,Cocos2d Iphone,Cocos2d Android,我有一个.png图像,所以根据我的要求更改了大小,但现在在logcat中,我得到了filenotfound异常,即使图像在asset文件夹中,而且图像之间没有大写字母和空格。我搞不懂为什么会发生这种情况,有什么想法吗 // background layer: another image CCSprite background = CCSprite.sprite("shipe150.png"); // scale the image (optiona

我有一个.png图像,所以根据我的要求更改了大小,但现在在logcat中,我得到了filenotfound异常,即使图像在asset文件夹中,而且图像之间没有大写字母和空格。我搞不懂为什么会发生这种情况,有什么想法吗

// 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)

你能发布相关的代码片段吗?给我们看一些代码…………更新了我的代码@blackbeltI从未使用过Cocos2d。logcat正在讨论资产问题。资产文件夹中是否有shipe150.png?请尝试
Project->Clean
(或)重新启动eclipse!