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