嗨,现在我创建简单的andengine应用程序...现在我的logcat指示错误....我为我的应用程序做了什么错误.....
02-09 13:05:01.560: ERROR/AndEngine(280): Failed loading Bitmap in
AssetTextureSource.AssetPath: ggg
02-09 13:05:01.560: ERROR/AndEngine(280): java.io.FileNotFoundException: ggg
02-09 13:05:01.560: ERROR/AndEngine(280): at android.content.res
.AssetManager.openAsset(Native Method)
02-09 13:05:01.560: ERROR/AndEngine(280): at android.content.res
.AssetManager.open(AssetManager.java:313)
02-09 13:05:01.560: ERROR/AndEngine(280): at android.content.res
.AssetManager.open(AssetManager.java:287)
02-09 13:05:01.560: ERROR/AndEngine(280): at org.anddev.andengine.opengl
.texture.source.AssetTextureSource.<init>(AssetTextureSource.java:46)
02-09 13:05:01.560: ERROR/AndEngine(280): at org.anddev
.andengine.opengl.texture.region.TextureRegionFactory
.createFromAsset(TextureRegionFactory.java:66)
02-09 13:05:01.560: ERROR/AndEngine(280): at org.anddev
.andengine.examples.minimal
.AndEngineMinimalExample.onLoadResources(AndEngineMinimalExample.java:59)
02-09 13:05:01.560: ERROR/AndEngine(280): at org.anddev.andengine.ui.activity
.BaseGameActivity.doResume(BaseGameActivity.java:158)
02-09 13:05:01.560: ERROR/AndEngine(280): at org.anddev.andengine.ui.activity
.BaseGameActivity.onWindowFocusChanged(BaseGameActivity.java:83)
02-09 13:05:01.560: ERROR/AndEngine(280): at com.android.internal.policy.impl
.PhoneWindow$DecorView.onWindowFocusChanged(PhoneWindow.java:1981)
02-09 13:05:01.560: ERROR/AndEngine(280): at android.view.View
.dispatchWindowFocusChanged(View.java:3788)
02-09 13:05:01.560: ERROR/AndEngine(280): at android.view.ViewGroup
. dispatchWindowFocusChanged(ViewGroup.java:658)
02-09 13:05:01.560: ERROR/AndEngine(280): at android.view.ViewRoot
.handleMessage(ViewRoot.java:1921)
02-09 13:05:01.560: ERROR/AndEngine(280): at android.os.Handler
.dispatchMessage(Handler.java:99)
02-09 13:05:01.560: ERROR/AndEngine(280): at android.os.Looper
.loop(Looper.java:123)
02-09 13:05:01.560: ERROR/AndEngine(280): at android.app.ActivityThread
.main(ActivityThread.java:4627)
02-09 13:05:01.560: ERROR/AndEngine(280): at java.lang.reflect.Method
.invokeNative(Native Method)
02-09 13:05:01.560: ERROR/AndEngine(280): at java.lang.reflect.Method
.invoke(Method.java:521)
02-09 13:05:01.560: ERROR/AndEngine(280): at com.android.internal.os
.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
02-09 13:05:01.560: ERROR/AndEngine(280): at com.android.internal.os
.ZygoteInit.main(ZygoteInit.java:626)
02-09 13:05:01.560: ERROR/AndEngine(280): at dalvik.system
.NativeStart.main(Native Method)
02-09 13:05:02.330: ERROR/AndEngine(280): Failed loading Bitmap in
AssetTextureSource. AssetPath: ggg
02-09 13:05:02.330: ERROR/AndEngine(280): java.io.FileNotFoundException: ggg
02-09 13:05:02.330: ERROR/AndEngine(280): at
android.content.res.AssetManager.openAsset(Native Method)
02-09 13:05:02.330: ERROR/AndEngine(280): at android.content.res
.AssetManager.open(AssetManager.java:313)
答案 0 :(得分:0)
您正在尝试加载不存在的资产。没有看到你的代码,很难说更多。您可以向下扫描堆栈跟踪,直到找到与您的代码对应的行。行号将告诉您在哪里寻找问题。