Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Drawable resource could not be opened error

$
0
0

Hi guys.

I have an app that runs perfectly on low-res phones (480800) and perfectly on my Galaxy S5 (full HD)...but it throws a Drawable Resource not found" error when I try run it on my Nexus 7 (8001280).

At first I thought it was because I was missing the splash screen at a specific resolution so I put the splash screen in all of the image folders but I'm still getting the error for some reason.

Here's the full stack trace...

[ERROR] :  TiDrawableReference: (main) [784,784] Drawable resource could not be opened. Are you sure you have the resource for the current device configuration (orientation, screen size, etc.)?
[DEBUG] :  AndroidRuntime: Shutting down VM
[WARN] :   dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41831ba8)
[ERROR] :  TiApplication: (main) [1,785] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{mosaic.mobile.driver/org.appcelerator.titanium.TiActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x7f02005c; Titanium 3.4.1,2014/11/13 13:33,5982e8f
[ERROR] :  TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{mosaic.mobile.driver/org.appcelerator.titanium.TiActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x7f02005c
[INFO] :   lication:    at android.app.Activity.performCreate(Activity.java:5231)
[ERROR] :  TiApplication:   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184)
[ERROR] :  TiApplication:   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
[ERROR] :  TiApplication:   at android.app.ActivityThread.access$800(ActivityThread.java:135)
[ERROR] :  TiApplication:   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
[ERROR] :  TiApplication:   at android.os.Handler.dispatchMessage(Handler.java:102)
[ERROR] :  TiApplication:   at android.os.Looper.loop(Looper.java:136)
[ERROR] :  TiApplication:   at android.app.ActivityThread.main(ActivityThread.java:5001)
[ERROR] :  TiApplication:   at java.lang.reflect.Method.invokeNative(Native Method)
[ERROR] :  TiApplication:   at java.lang.reflect.Method.invoke(Method.java:515)
[ERROR] :  TiApplication:   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
[ERROR] :  TiApplication:   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
[ERROR] :  TiApplication:   at dalvik.system.NativeStart.main(Native Method)
[ERROR] :  TiApplication: Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f02005c
[ERROR] :  TiApplication:   at android.content.res.Resources.getValue(Resources.java:1123)
[ERROR] :  TiApplication:   at android.content.res.Resources.openRawResource(Resources.java:1038)
[ERROR] :  TiApplication:   at android.content.res.Resources.openRawResource(Resources.java:1015)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.view.TiDrawableReference.getInputStream(TiDrawableReference.java:809)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:301)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:285)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.view.TiDrawableReference.getDrawable(TiDrawableReference.java:441)
[ERROR] :  TiApplication:   at ti.modules.titanium.ui.widget.TiUIButton.processProperties(TiUIButton.java:74)
[ERROR] :  TiApplication:   at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1185)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:500)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:491)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:469)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:507)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:491)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:469)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:670)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:564)
[ERROR] :  TiApplication:   at ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:232)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:32)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:442)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:524)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:18)
[ERROR] :  TiApplication:   at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
[ERROR] :  TiApplication:   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
[ERROR] :  TiApplication:   ... 11 more

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>